2016-12-21 23:33:18

by Mickaël Salaün

[permalink] [raw]
Subject: [PATCH v1] security: Fix inode_getattr documentation

Replace arguments @mnt and @dentry with @path.

Signed-off-by: Mickaël Salaün <[email protected]>
Cc: James Morris <[email protected]>
Cc: Serge E. Hallyn <[email protected]>
---
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 558adfa5c8a8..9cf50ad2fe20 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -352,8 +352,7 @@
* Return 0 if permission is granted.
* @inode_getattr:
* Check permission before obtaining file attributes.
- * @mnt is the vfsmount where the dentry was looked up
- * @dentry contains the dentry structure for the file.
+ * @path contains the path structure for the file.
* Return 0 if permission is granted.
* @inode_setxattr:
* Check permission before setting the extended attributes
--
2.11.0


2016-12-22 00:42:51

by Serge E. Hallyn

[permalink] [raw]
Subject: Re: [PATCH v1] security: Fix inode_getattr documentation

On Thu, Dec 22, 2016 at 12:32:25AM +0100, Micka?l Sala?n wrote:
> Replace arguments @mnt and @dentry with @path.
>
> Signed-off-by: Micka?l Sala?n <[email protected]>
> Cc: James Morris <[email protected]>
> Cc: Serge E. Hallyn <[email protected]>
> ---

Acked-by: Serge Hallyn <[email protected]>

> 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 558adfa5c8a8..9cf50ad2fe20 100644
> --- a/include/linux/lsm_hooks.h
> +++ b/include/linux/lsm_hooks.h
> @@ -352,8 +352,7 @@
> * Return 0 if permission is granted.
> * @inode_getattr:
> * Check permission before obtaining file attributes.
> - * @mnt is the vfsmount where the dentry was looked up
> - * @dentry contains the dentry structure for the file.
> + * @path contains the path structure for the file.
> * Return 0 if permission is granted.
> * @inode_setxattr:
> * Check permission before setting the extended attributes
> --
> 2.11.0