summaryrefslogtreecommitdiffstats
path: root/fs/compat.c
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2008-01-12 22:05:48 +1100
committerJames Morris <jmorris@namei.org>2008-01-25 11:29:52 +1100
commitc43e259cc756ece387faae849af0058b56d78466 (patch)
tree1f1541560256b9fe2eeda5b07100baa14f39df59 /fs/compat.c
parentbced95283e9434611cbad8f2ff903cd396eaea72 (diff)
downloadlinux-c43e259cc756ece387faae849af0058b56d78466.tar.bz2
security: call security_file_permission from rw_verify_area
All instances of rw_verify_area() are followed by a call to security_file_permission(), so just call the latter from the former. Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'fs/compat.c')
-rw-r--r--fs/compat.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/compat.c b/fs/compat.c
index 15078ce4c04a..5216c3fd7517 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -1104,10 +1104,6 @@ static ssize_t compat_do_readv_writev(int type, struct file *file,
if (ret < 0)
goto out;
- ret = security_file_permission(file, type == READ ? MAY_READ:MAY_WRITE);
- if (ret)
- goto out;
-
fnv = NULL;
if (type == READ) {
fn = file->f_op->read;