commit | d007794a182bc072a7b7479909dbd0d67ba341be | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Wed May 30 13:11:37 2012 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Thu May 31 13:10:54 2012 -0400 |
tree | 75aa7ccd563a0fe8b60391824c92f64098674dda | |
parent | cf74d14c4fbce9bcc9eb62f52d721d3399a2b87f [diff] [blame] |
split cap_mmap_addr() out of cap_file_mmap() ... switch callers. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index 032daab..8430d89 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c
@@ -497,7 +497,7 @@ int rc = 0; /* do DAC check */ - rc = cap_file_mmap(file, reqprot, prot, flags, addr, addr_only); + rc = cap_mmap_addr(addr); if (rc || addr_only) return rc;