mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
split cap_mmap_addr() out of cap_file_mmap()
... switch callers. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
cf74d14c4f
commit
d007794a18
5 changed files with 28 additions and 13 deletions
|
|
@ -3104,7 +3104,7 @@ static int selinux_file_mmap(struct file *file, unsigned long reqprot,
|
|||
}
|
||||
|
||||
/* do DAC check on address space usage */
|
||||
rc = cap_file_mmap(file, reqprot, prot, flags, addr, addr_only);
|
||||
rc = cap_mmap_addr(addr);
|
||||
if (rc || addr_only)
|
||||
return rc;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue