[PATCH -V4 01/11] vfs: Indicate that the permission functions take all the MAY_* flags

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aneesh Kumar K.V
Date: Friday, September 24, 2010 - 5:48 am

From: Andreas Gruenbacher <agruen@suse.de>

Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
 fs/namei.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/namei.c b/fs/namei.c
index 24896e8..c5920b5 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -200,7 +200,7 @@ static int acl_permission_check(struct inode *inode, int mask,
 /**
  * generic_permission  -  check for access rights on a Posix-like filesystem
  * @inode:	inode to check access rights for
- * @mask:	right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)
+ * @mask:	right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC, ...)
  * @check_acl:	optional callback to check for Posix ACLs
  *
  * Used to check for read/write/execute permissions on a file.
@@ -242,7 +242,7 @@ int generic_permission(struct inode *inode, int mask,
 /**
  * inode_permission  -  check for access rights to a given inode
  * @inode:	inode to check permission on
- * @mask:	right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)
+ * @mask:	right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC, ...)
  *
  * Used to check for read/write/execute permissions on an inode.
  * We use "fsuid" for this, letting us set arbitrary permissions
@@ -288,7 +288,7 @@ int inode_permission(struct inode *inode, int mask)
 /**
  * file_permission  -  check for additional access rights to a given file
  * @file:	file to check access rights for
- * @mask:	right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)
+ * @mask:	right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC, ...)
  *
  * Used to check for read/write/execute permissions on an already opened
  * file.
-- 
1.7.0.4

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -V4 00/11] New ACL format for better NFSv4 acl int ..., Aneesh Kumar K.V, (Fri Sep 24, 5:48 am)
[PATCH -V4 01/11] vfs: Indicate that the permission functi ..., Aneesh Kumar K.V, (Fri Sep 24, 5:48 am)
[PATCH -V4 03/11] vfs: Add a comment to inode_permission(), Aneesh Kumar K.V, (Fri Sep 24, 5:48 am)
Re: [PATCH -V4 07/11] vfs: Make acl_permission_check() wor ..., Aneesh Kumar K. V, (Fri Sep 24, 11:55 am)
Re: [PATCH -V4 08/11] vfs: Add new file and directory crea ..., Aneesh Kumar K. V, (Fri Sep 24, 12:16 pm)
Re: [PATCH -V4 07/11] vfs: Make acl_permission_check() wor ..., Andreas Gruenbacher, (Mon Sep 27, 6:03 am)
Re: [PATCH -V4 08/11] vfs: Add new file and directory crea ..., Andreas Gruenbacher, (Mon Sep 27, 6:14 am)
Re: [PATCH -V4 00/11] New ACL format for better NFSv4 acl ..., Aneesh Kumar K. V, (Tue Oct 12, 12:17 am)
Re: [PATCH -V4 00/11] New ACL format for better NFSv4 acl ..., J. Bruce Fields, (Mon Oct 25, 12:09 pm)
Re: [PATCH -V4 00/11] New ACL format for better NFSv4 acl ..., Aneesh Kumar K. V, (Mon Oct 25, 9:35 pm)