aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro2012-05-30 12:11:37 -0500
committerAl Viro2012-05-31 12:10:54 -0500
commitd007794a182bc072a7b7479909dbd0d67ba341be (patch)
tree75aa7ccd563a0fe8b60391824c92f64098674dda /security/selinux
parentcf74d14c4fbce9bcc9eb62f52d721d3399a2b87f (diff)
downloadkernel-common-d007794a182bc072a7b7479909dbd0d67ba341be.tar.gz
kernel-common-d007794a182bc072a7b7479909dbd0d67ba341be.tar.xz
kernel-common-d007794a182bc072a7b7479909dbd0d67ba341be.zip
split cap_mmap_addr() out of cap_file_mmap()
... switch callers. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index fa2341b6833..25c125eaa3d 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3104,7 +3104,7 @@ static int selinux_file_mmap(struct file *file, unsigned long reqprot,
3104 } 3104 }
3105 3105
3106 /* do DAC check on address space usage */ 3106 /* do DAC check on address space usage */
3107 rc = cap_file_mmap(file, reqprot, prot, flags, addr, addr_only); 3107 rc = cap_mmap_addr(addr);
3108 if (rc || addr_only) 3108 if (rc || addr_only)
3109 return rc; 3109 return rc;
3110 3110