diff options
author | James Morris <jmorris@namei.org> | 2008-01-12 22:05:48 +1100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-01-25 11:29:52 +1100 |
commit | c43e259cc756ece387faae849af0058b56d78466 (patch) | |
tree | 1f1541560256b9fe2eeda5b07100baa14f39df59 /fs/compat.c | |
parent | bced95283e9434611cbad8f2ff903cd396eaea72 (diff) |
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.c | 4 |
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; |