summaryrefslogtreecommitdiffstats
path: root/include/linux/security.h
diff options
context:
space:
mode:
authorEric Paris2009-07-31 18:54:05 +0200
committerJames Morris2009-08-06 01:02:21 +0200
commit84336d1a77ccd2c06a730ddd38e695c2324a7386 (patch)
tree9eeb414eff58e5b7165daa36c2ce3c2e7422632b /include/linux/security.h
parentCapabilities: move cap_file_mmap to commoncap.c (diff)
downloadkernel-qcow2-linux-84336d1a77ccd2c06a730ddd38e695c2324a7386.tar.gz
kernel-qcow2-linux-84336d1a77ccd2c06a730ddd38e695c2324a7386.tar.xz
kernel-qcow2-linux-84336d1a77ccd2c06a730ddd38e695c2324a7386.zip
SELinux: call cap_file_mmap in selinux_file_mmap
Currently SELinux does not check CAP_SYS_RAWIO in the file_mmap hook. This means there is no DAC check on the ability to mmap low addresses in the memory space. This function adds the DAC check for CAP_SYS_RAWIO while maintaining the selinux check on mmap_zero. This means that processes which need to mmap low memory will need CAP_SYS_RAWIO and mmap_zero but will NOT need the SELinux sys_rawio capability. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'include/linux/security.h')
0 files changed, 0 insertions, 0 deletions