Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp30748imm; Wed, 12 Sep 2018 17:26:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYNiIGMVNwA3Ab9Q/uut44DMtbGZNCqRU1C9sx8eU6qrbTq/fGr6KFfM0PN1xBRpjA8RJiG X-Received: by 2002:a63:3741:: with SMTP id g1-v6mr4659302pgn.59.1536798376798; Wed, 12 Sep 2018 17:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536798376; cv=none; d=google.com; s=arc-20160816; b=lxWXkcgLErTNCXbZXiLLzKCgoe+YPYBjdWkChQCbfjgp0MQhffN5bRi8ELRpEcstud 56vdpd60FkXoYqmlFLgT1l4Hud0tWxIB70LwpQKb9xHovCSFE4m9OYUIBM1MuPGMPmL0 sgaubomWB5nh01+JGUVWSSLIh4XQpkfAMaAgbpO/RpBV8TCihP0w3qJVEq4LH3C7t8lK OGaPoS24uW+CQUFHei8F/c1UBBb9lBQ7u3fi05lkvInXoU4WtQ5z9ap9N62SjnC075FQ M9ZMVC64Ikrc+mz5QA1x6T2bh/zQmLP3tSUEdaNQadiHJAfVyhLQz9gD9ScgRJK9caNN c2Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=mJAHqlm195xY72SZ8BF/OuMd7uyk9XT+0JyKb9eX1N0=; b=LA8pleMi3rXHMfl+QnT1OSGXWXbX9+YJYWl5ekbIuCdz3p9PD0d1xgscpBQDJy9joD MNZCeyIKczOIPPeA7IwZnKMW9ZCUC/tUt11I/C0WIJyhk3N+ok5t9JRy810bQK/kYKsH EcoSykWN/L8piDJ6MFsj5CPV+1LNEHEuOtfdsKWZIWRdpXECJLuVWLd8skI4QzT75UuW OH1xo4VKuXwuGIrOfE83ck8WhExdEFTlZ3D3q6U5aiHhq+Lmk++6bXt4ldANmIfPhVO3 ULELX3/4PUDNeMrbCuy8CyNzEc3MyhIZcVIh69M5blSshWQg+oFBoMHkfAK6kYKGvSC+ KqvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dCGkUtqH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n19-v6si2514718pgb.3.2018.09.12.17.26.00; Wed, 12 Sep 2018 17:26:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dCGkUtqH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727348AbeIMFbc (ORCPT + 99 others); Thu, 13 Sep 2018 01:31:32 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:46673 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbeIMFbb (ORCPT ); Thu, 13 Sep 2018 01:31:31 -0400 Received: by mail-yw1-f67.google.com with SMTP id j131-v6so468825ywc.13 for ; Wed, 12 Sep 2018 17:24:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mJAHqlm195xY72SZ8BF/OuMd7uyk9XT+0JyKb9eX1N0=; b=dCGkUtqHqC+oqZ3pUzbtzinHhKU7mzrOnoWT6Qd94WTlqU2YegUB7/COhgNpFh3o+A Ntzq398patr4iH3q/UeQeAAv4Fzu9LL0GD9CsJ/clWS2ZpZzlFr6yGCs//bLJBkPHfnj C2AuypzcTDg8v5hdRBzoN1mmBDBDJ/JhJEGUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mJAHqlm195xY72SZ8BF/OuMd7uyk9XT+0JyKb9eX1N0=; b=ZSGZmzK1BZlUQ2/ftbYFpqdnwsJBDwyhDyOAdTGvMzFqSnPYBg0rOVtyhoqCB9oLsP 7dD7n1qO6Z1yS3FpozwEmtXYHAFywHloiJfuTzumSozDYR8cO2PI2/6FjDTfHe51cQgI ADUP83n/T7tShuZ/ysEShC91t8gvgnOy+MmKKzjwZQXZ5GmhkE/FoU+Xh+FJc84/BIKn 5Pk3CfjZssFdXLf1iqnSZ39sZV6YTSaLfDOBABHqt1YVgF4aj7Tj8ntR3TCH8jLRRWPo uKlI1z93AIobxgv8TEO4ghgZuIzaWJQ+EYuV2dng9hNxJBJgC8z4Ahv/kFeXFPCtxcEi 9UbA== X-Gm-Message-State: APzg51BL62WaspxZ6pqbdiVC9QbNZBfn6r4BnguxQ1YmTBknf0Fofscu 2KLpvh48Nlip2X75bOnsdbyrgwyVjf4= X-Received: by 2002:a0d:cfc2:: with SMTP id r185-v6mr2300169ywd.337.1536798274114; Wed, 12 Sep 2018 17:24:34 -0700 (PDT) Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com. [209.85.219.171]) by smtp.gmail.com with ESMTPSA id r3-v6sm3037169ywr.80.2018.09.12.17.24.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 17:24:32 -0700 (PDT) Received: by mail-yb1-f171.google.com with SMTP id v10-v6so2559484ybm.8 for ; Wed, 12 Sep 2018 17:24:32 -0700 (PDT) X-Received: by 2002:a25:dd82:: with SMTP id u124-v6mr2228417ybg.171.1536798272201; Wed, 12 Sep 2018 17:24:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Wed, 12 Sep 2018 17:24:31 -0700 (PDT) In-Reply-To: <70b7f8cf-bfb1-1ec3-e4d4-5d2da632b52b@schaufler-ca.com> References: <70b7f8cf-bfb1-1ec3-e4d4-5d2da632b52b@schaufler-ca.com> From: Kees Cook Date: Wed, 12 Sep 2018 17:24:31 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 08/10] Smack: Abstract use of inode security blob To: Casey Schaufler Cc: LSM , James Morris , LKLM , SE Linux , John Johansen , Tetsuo Handa , Paul Moore , Stephen Smalley , "linux-fsdevel@vger.kernel.org" , Alexey Dobriyan , "Schaufler, Casey" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 11, 2018 at 9:42 AM, Casey Schaufler wrote: > Don't use the inode->i_security pointer directly. > Provide a helper function that provides the security blob pointer. > > Signed-off-by: Casey Schaufler Reviewed-by: Kees Cook -Kees -- Kees Cook Pixel Security