Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1030056img; Tue, 26 Feb 2019 12:52:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IYipAmUgfGk9RRQqR996aM1WRgLTPNH9q9nzFyn7iePmEtH2mon5ZtNwFf4jHm9woEvIbi+ X-Received: by 2002:a17:902:20ca:: with SMTP id v10mr5415989plg.183.1551214322294; Tue, 26 Feb 2019 12:52:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551214322; cv=none; d=google.com; s=arc-20160816; b=pF2OpWHp42Z4uVOYvYg3YKYY/0vFoZCz+MTFpers9AGhP0lQRaa5QhtwVULhp4e50z dFDkDtJFDirtS4cqzyUnASja+ehYF+7iOmw1Fnlqb4V6iwOCqu48dZsdp/2puh6gZ/Wr zoLV/Vpat1AAgHThnATGJyKFZEjXRP/SYlHvbxC0sS0UL+EBQckgWQiM/S/9Ypq2VoG6 SAM5/fB7e5DtusTDJZMDSas+c+R8Mct2L5d2sAHDZBX+xVMhhH8qncWgGokdzoRVm83Q YjlpJW0a8gOhtPuYXCTr14vtVOBzqJwdw9GBcXCeUoyC9pm4EdWjYbO1JJRywIcQ42nm 2j+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=VBHHNef8b2VPtCwIUy/c8Fvlh0tpigwPnN8OQIJ7mg4=; b=cO1K4386s3ZTOA2UMDLMPAVjAQsM/MNQ2TaRYTtG+YjSAtucwlLwbvE4KPJYvVLJqy CzBRSgyx6+0ZhrT+dBfwnCRX6So2fSy2QFxaaXuIP37Z+lpYA7kwU8vXGNqoH5wNvvmZ HcYmuLhS4Q9/q7+vivG6cvZje7vXxbUCxfyaFIzxHRctrvnfOqxNGD7a5nZjRs5lC1ES JHpp4roXzdHw9nZbIwUHT6X6cgJKUpvoM9Fie/oUfCkGbYCFQX9HZDoTpwETPXHHO0eS Bl3aIuwqmL+u6GuKd8ExTFGn7OWp/MIAYDIsCWPt3uE+mlx0N2x4Qa25qMeqamWYGg1R bqSQ== 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 r3si13584861pgh.392.2019.02.26.12.51.47; Tue, 26 Feb 2019 12:52:02 -0800 (PST) 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 S1729262AbfBZUvE (ORCPT + 99 others); Tue, 26 Feb 2019 15:51:04 -0500 Received: from mail.ispras.ru ([83.149.199.45]:45376 "EHLO mail.ispras.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729255AbfBZUvB (ORCPT ); Tue, 26 Feb 2019 15:51:01 -0500 Received: from green.intra.ispras.ru (pluton2.ispras.ru [83.149.199.44]) by mail.ispras.ru (Postfix) with ESMTPSA id E34F55400DC; Tue, 26 Feb 2019 23:50:58 +0300 (MSK) From: Denis Efremov To: Al Viro Cc: Denis Efremov , Casey Schaufler , "Eric W. Biederman" , Eric Paris , Kees Cook , John Johansen , James Morris , "Serge E. Hallyn" , Paul Moore , Kentaro Takeda , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/11] LSM: fix documentation for the path_chmod hook Date: Tue, 26 Feb 2019 23:49:07 +0300 Message-Id: <50913403d6aefd7e490ddf4315084b2de336cd80.1551213058.git.efremov@ispras.ru> X-Mailer: git-send-email 2.17.2 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index 79011eff9795..feedd03cbd59 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -303,10 +303,11 @@ * @new_dentry contains the dentry structure of the new link. * 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. - * @mode contains DAC's mode. + * Check for permission to change a mode of the file @path. The new + * mode is specified in @mode. + * @path contains the path structure of the file to change the mode. + * @mode contains the new DAC's permission, which is a bitmask of + * constants from * Return 0 if permission is granted. * @path_chown: * Check for permission to change owner/group of a file or directory. -- 2.17.2