From: Eric Paris Date: Fri, 31 Jul 2009 16:54:05 +0000 (-0400) Subject: SELinux: call cap_file_mmap in selinux_file_mmap X-Git-Tag: v2.6.32-rc1~737^2^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84336d1a77ccd2c06a730ddd38e695c2324a7386;p=pandora-kernel.git 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 Signed-off-by: James Morris --- Reading git-diff-tree failed