diff mbox

[v1] security: Fix inode_getattr documentation

Message ID 20161221233225.22803-1-mic@digikod.net (mailing list archive)
State New, archived
Headers show

Commit Message

Mickaël Salaün Dec. 21, 2016, 11:32 p.m. UTC
Replace arguments @mnt and @dentry with @path.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: James Morris <james.l.morris@oracle.com>
Cc: Serge E. Hallyn <serge@hallyn.com>
---
 include/linux/lsm_hooks.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Serge Hallyn Dec. 22, 2016, 12:33 a.m. UTC | #1
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 <mic@digikod.net>
> Cc: James Morris <james.l.morris@oracle.com>
> Cc: Serge E. Hallyn <serge@hallyn.com>
> ---

Acked-by: Serge Hallyn <serge@hallyn.com>

>  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
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
James Morris Jan. 10, 2017, 6:13 a.m. UTC | #2
On Thu, 22 Dec 2016, Mickaël Salaün wrote:

> Replace arguments @mnt and @dentry with @path.
> 
> Signed-off-by: Mickaël Salaün <mic@digikod.net>
> Cc: James Morris <james.l.morris@oracle.com>
> Cc: Serge E. Hallyn <serge@hallyn.com>
> ---
>  include/linux/lsm_hooks.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next
diff mbox

Patch

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