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-Tag: v3.2-rc1~131^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fd90c8d1dacb5ff0f372217c97f57a9e61559cd;p=profile%2Fivi%2Fkernel-x86-ivi.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 0b3138d..2a4574f 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