diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-19 12:55:10 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-20 01:43:11 -0400 |
commit | 3bfa784a6539f91a27d7ffdd408efdb638e3bebd (patch) | |
tree | 2fb293076c98a4bbc18fd2ddad7fdc4cea08c384 /fs/namei.c | |
parent | 1b5d783c94c328d406e801566f161adcfb018dda (diff) |
kill file_permission() completely
convert the last remaining caller to inode_permission()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/fs/namei.c b/fs/namei.c index cf2554635a1c..4ad2b781a65c 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -303,23 +303,6 @@ int inode_permission(struct inode *inode, int mask) | |||
303 | return security_inode_permission(inode, mask); | 303 | return security_inode_permission(inode, mask); |
304 | } | 304 | } |
305 | 305 | ||
306 | /** | ||
307 | * file_permission - check for additional access rights to a given file | ||
308 | * @file: file to check access rights for | ||
309 | * @mask: right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC) | ||
310 | * | ||
311 | * Used to check for read/write/execute permissions on an already opened | ||
312 | * file. | ||
313 | * | ||
314 | * Note: | ||
315 | * Do not use this function in new code. All access checks should | ||
316 | * be done using inode_permission(). | ||
317 | */ | ||
318 | int file_permission(struct file *file, int mask) | ||
319 | { | ||
320 | return inode_permission(file->f_path.dentry->d_inode, mask); | ||
321 | } | ||
322 | |||
323 | /* | 306 | /* |
324 | * get_write_access() gets write permission for a file. | 307 | * get_write_access() gets write permission for a file. |
325 | * put_write_access() releases this write permission. | 308 | * put_write_access() releases this write permission. |
@@ -3405,7 +3388,6 @@ EXPORT_SYMBOL(kern_path_parent); | |||
3405 | EXPORT_SYMBOL(kern_path); | 3388 | EXPORT_SYMBOL(kern_path); |
3406 | EXPORT_SYMBOL(vfs_path_lookup); | 3389 | EXPORT_SYMBOL(vfs_path_lookup); |
3407 | EXPORT_SYMBOL(inode_permission); | 3390 | EXPORT_SYMBOL(inode_permission); |
3408 | EXPORT_SYMBOL(file_permission); | ||
3409 | EXPORT_SYMBOL(unlock_rename); | 3391 | EXPORT_SYMBOL(unlock_rename); |
3410 | EXPORT_SYMBOL(vfs_create); | 3392 | EXPORT_SYMBOL(vfs_create); |
3411 | EXPORT_SYMBOL(vfs_follow_link); | 3393 | EXPORT_SYMBOL(vfs_follow_link); |