mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
bced95283e
commit
c43e259cc7
3 changed files with 24 additions and 51 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue