Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3863197ima; Tue, 23 Oct 2018 12:30:28 -0700 (PDT) X-Google-Smtp-Source: AJdET5dbLbCMrKemm91RZcW1G5Q3N9rYhPNvb4wQAdC3n5cIPYsynCcqf1vRKGBn7NA/dz2Q9Qyo X-Received: by 2002:a17:902:684a:: with SMTP id f10-v6mr7855896pln.242.1540323028773; Tue, 23 Oct 2018 12:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540323028; cv=none; d=google.com; s=arc-20160816; b=Wx5scOYF0P4JTqKlJlAwq15U2QLJDskWBaGfRkUUoCaZrhBWAkKsrudxyqeJCflsw8 S9kgGpPl8o69oYxwpuFOF0F7Wo0m2opLJD+FpHy4UWJT4ZZDsT4bi/fUbdJ+oCzQbc/L EWhcSVxm9KGWRW7UiRfQNSXGm4muTz5oj3Krwz/63Q/oNqSfvjeI+qcQEZy1anZeajJN HzEmUo+XuPiJdyEzQWnf9AXrf1dBeA3vCt8q7MxFwGeGhppOoMbfxmZ2yoMPnbJeJ4dX FtvWjt5y8onq7Bjz36SdJeIj8avGhFsCajePQGDVnPqLJJUQPKQds9cuuwB0U9EmlMfT Twtw== 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=iISPVQgqSXIoQN8CzV3IwJaOfFETIsNivH72gPWa6iE=; b=sbRmbcZo33aWUb6A5C3kAeYxPQyldE0H3YbohQ7/Kk/bUVxazmE1L/yVyz6ko+xMkm CdfdmE7HJ/GdqnY75274BmdnnFL+fIH7w4mFXXYe6gsN0cxm3h4JXGUNjfRu0enLLYuf PPE2OvLpJGFms2Poi27jc3LuCTL7dSZoRC+QXnXR+/qooosMCwGlskJwnRyAsfbeJQ7D jrSzonluwgA/JxxzX91WMdknm8vrJo6AnwK5mIoXYGpbfy4owvQwxxskGsuqJv0uLND4 1iOY1fokujy4f3dkB9YpecfJ/HJeAH9QoMSm4mJgIcGnUwZQG6a+gNivnVjOmrlQ1dwu iPYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Np4taQbO; 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 y22-v6si706832plp.371.2018.10.23.12.30.13; Tue, 23 Oct 2018 12:30:28 -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=Np4taQbO; 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 S1728950AbeJXDyN (ORCPT + 99 others); Tue, 23 Oct 2018 23:54:13 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:38489 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727758AbeJXDyN (ORCPT ); Tue, 23 Oct 2018 23:54:13 -0400 Received: by mail-yb1-f193.google.com with SMTP id v92-v6so1070072ybi.5 for ; Tue, 23 Oct 2018 12:29:27 -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=iISPVQgqSXIoQN8CzV3IwJaOfFETIsNivH72gPWa6iE=; b=Np4taQbOHkgFgssaefO1bmT37EZdkS8NKax57gzJ4rFvK8jwIIQ4o2W2NfVEQWmsD6 Xia7CcGhNlj+Rc4g9V/G21hTr50zsW0TdmXxmS5YUSmyIOaWgWnoGpyiad+MRBQevhJM wL/ocziVhY8c7eP1MtkGYuomr4VYw+NKoypts= 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=iISPVQgqSXIoQN8CzV3IwJaOfFETIsNivH72gPWa6iE=; b=SgrT0XBQcLzpF8Gmcre6h7PCOy53BHJ9Bk/OD1COWcJRXS2X8Tj0MGfL1RCRHL8IS7 waazExfHPiCpsWLKMbyAVLk5l7gDPQdpzweAYNQ+tmjx90qhjIj6g8iYQ0t9KfCZiort PMWMD/1Z7R1+ooGQ2eXF9DtsBIYsWPoQYEQKG82A/+g4/z7Cpjw144lfi8sq1W+j2ODf 36n1CreKoBL5/9iXm70vR+mRsiujf+h+bpFGww7JNOF02QK8UA+cCUjR3KrnqXEDi1Zf 8WoHJ2HTF4FP8rv0ILvv5NChQwF6vqOj9MLwc0v6f+/9wje0nSWJbL/Lh6KzJnaWKccY t4UQ== X-Gm-Message-State: ABuFfohwcxd8wBHxnmsKYK6BpOWVly04p+XKi6LhruQuCpkcs7ip9eJu +GDVoS0tqUgECs9NHqgYqX60l77EFxE= X-Received: by 2002:a25:e04:: with SMTP id 4-v6mr36605304ybo.152.1540322966740; Tue, 23 Oct 2018 12:29:26 -0700 (PDT) Received: from mail-yw1-f43.google.com (mail-yw1-f43.google.com. [209.85.161.43]) by smtp.gmail.com with ESMTPSA id x3-v6sm440949ywc.56.2018.10.23.12.29.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 12:29:25 -0700 (PDT) Received: by mail-yw1-f43.google.com with SMTP id y76-v6so1051871ywd.2 for ; Tue, 23 Oct 2018 12:29:25 -0700 (PDT) X-Received: by 2002:a81:2cc3:: with SMTP id s186-v6mr38317625yws.168.1540322964624; Tue, 23 Oct 2018 12:29:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:3990:0:0:0:0:0 with HTTP; Tue, 23 Oct 2018 12:29:23 -0700 (PDT) In-Reply-To: <20181023111633.490-1-efremov@linux.com> References: <20181023111633.490-1-efremov@linux.com> From: Kees Cook Date: Tue, 23 Oct 2018 12:29:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] security: fix documentation for the path_chmod hook To: efremov@linux.com Cc: Al Viro , James Morris , "Serge E. Hallyn" , Eric Paris , Paul Moore , John Johansen , LKML 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, Oct 23, 2018 at 4:16 AM, wrote: > From: Denis Efremov > > The path_chmod hook was changed in the commit > "switch security_path_chmod() to struct path *" (cdcf116d44e7). > The argument @mnt was removed from the hook, @dentry was changed > to @path. This patch updates the documentation accordingly. > > Signed-off-by: Denis Efremov Reviewed-by: Kees Cook -Kees > --- > include/linux/lsm_hooks.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h > index a598e601ccb3..596351f7c3d1 100644 > --- a/include/linux/lsm_hooks.h > +++ b/include/linux/lsm_hooks.h > @@ -304,8 +304,7 @@ > * Return 0 if permission is granted. > * @path_chmod: > * Check for permission to change DAC's permission of a file or directory. > - * @dentry contains the dentry structure. > - * @mnt contains the vfsmnt structure. > + * @path contains the path structure. > * @mode contains DAC's mode. > * Return 0 if permission is granted. > * @path_chown: > -- > 2.17.2 > -- Kees Cook