Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3329681ima; Tue, 23 Oct 2018 04:19:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV62PB+nJuByhIhk/DqmmVg8LBrsTKrMn7utcjXBd3TovWnmvwPVJzkL9GOxqCt4S41gp6o/k X-Received: by 2002:a62:3641:: with SMTP id d62-v6mr40423816pfa.97.1540293552616; Tue, 23 Oct 2018 04:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540293552; cv=none; d=google.com; s=arc-20160816; b=OtqibVPt/SkK4SJdaI6xS0oHjBGLbYP3SjB9lwqgd41ixkMKPecrEHEVw2AQy0HRKg bczRaTw0bac5RMTVt0zYyjQ2gXg7GvGw75znEjHmyhRv8u3rifxWilRWEQw2wVbFbduH cCw7fuzv6AbbyQX6j88GWAA2D3/AoPVemy3e8eR6jCzIsYy3v6iqfAq5j7Tk31IP7Qqq 7r5Mv04hNNIJn7uZ44ngDMtFpJETyQp4GF+G0KFnFwmuTTjmX3Y/Rf2/7VTVwnqgN6gt 0b6LKcACHOa9CbnPw9vtv9daAdigdEAJzlhr/rQj9m1lLrPROvXa+bZF8Bbi8JfPp9y5 2fUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=YQlIoQEvZV2c0KzstEoIq+zMWcSi8VGplQrKjXZ4Yr0=; b=hjP4Chca1X4I91mg6IMWKnmeVHSWLtuPpWVsQvtTvQHkVUe46RjXE+M1wQ3XaGhzT4 lppCGebxHryBM2s/uor5mXoxYvSllgILJ+ZJneuEH0HaWYRpVDkD+gx997XUXwQhNq9c wk53oJMRqkN1fC8i7n4akGD6g6MqWhX7ngFEsvufEcaX/zVnAYL/6yx1qH0mEAF0o3TD cqU+9fjLd9o2LZs03HcQShZFq5P1Ib5iigK7uo0NeZR/IwXOKJymD2fmzJEKi+nwpfar 91pLcXwQtkMgLsEMPtVl0L7++B+sncmvVgj/5Cxokc/seXh4ygAUsK9sRj3tHJKBd6HC azZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ce19-v6si1011288plb.162.2018.10.23.04.18.57; Tue, 23 Oct 2018 04:19:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728099AbeJWTjo (ORCPT + 99 others); Tue, 23 Oct 2018 15:39:44 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36866 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727568AbeJWTjo (ORCPT ); Tue, 23 Oct 2018 15:39:44 -0400 Received: by mail-ed1-f65.google.com with SMTP id c15-v6so1228737eds.4 for ; Tue, 23 Oct 2018 04:16:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YQlIoQEvZV2c0KzstEoIq+zMWcSi8VGplQrKjXZ4Yr0=; b=MCHEow8hN+hLdQUg0Fbl0gdtjDGO96NcVlXM7ZIv/CEtG+mnOGbi+NrxEDUFrc0zkQ fVdErUnTP4Q/aD+MdlFVQNf43itLQDTPbbWnBXBMosFfyS/qf+bFVpkbiRCl5IMDYAkY Jgj+pMJ+9JaSmcY5nCJ280E4Yw5N9PwjBJo8Ih3IBWy2ZfpSHriKQN9xE0gywaWuLdJc 2dPEvbydEsMqza75Kurdik7bnGoX4Fi2p0oYMkLVhytA2bY9ttXN3QyLJvK736jWohYW WTktIT8Fbmio8V3Dqb1+4X+EP3UbPvq7XU4zYBR4z7Lt/7skJMfwLx0fGSGBlZbzzpuG iQMQ== X-Gm-Message-State: ABuFfogmr12sx5Ig00eXQukUP66mWIk1SG6qKKVplrMK+w12zEy9pAzq gqZRi3jR3PqDMVgB86E9K1s= X-Received: by 2002:a17:906:4591:: with SMTP id t17-v6mr724921ejq.84.1540293402524; Tue, 23 Oct 2018 04:16:42 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id t15-v6sm305298ejf.27.2018.10.23.04.16.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Oct 2018 04:16:41 -0700 (PDT) From: efremov@linux.com To: Al Viro Cc: Denis Efremov , James Morris , "Serge E. Hallyn" , Eric Paris , Paul Moore , Kees Cook , John Johansen , linux-kernel@vger.kernel.org Subject: [PATCH] security: fix documentation for the path_chmod hook Date: Tue, 23 Oct 2018 14:16:33 +0300 Message-Id: <20181023111633.490-1-efremov@linux.com> X-Mailer: git-send-email 2.17.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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