From: Andreas Gruenbacher Date: Sun, 23 Oct 2011 17:43:30 +0000 (+0530) Subject: vfs: indicate that the permission functions take all the MAY_* flags X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=8fd90c8d1dacb5ff0f372217c97f57a9e61559cd;p=openwrt%2Fstaging%2Fblogic.git vfs: indicate that the permission functions take all the MAY_* flags Acked-by: J. Bruce Fields Acked-by: David Howells Signed-off-by: Andreas Gruenbacher Signed-off-by: Aneesh Kumar K.V Signed-off-by: Christoph Hellwig --- diff --git a/fs/namei.c b/fs/namei.c index 0b3138de2a3b..2a4574f48001 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -257,7 +257,7 @@ other_perms: /** * 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, ...) * * Used to check for read/write/execute permissions on a file. * We use "fsuid" for this, letting us set arbitrary permissions @@ -331,7 +331,7 @@ static inline int do_inode_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