summaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
authorKees Cook2009-11-08 18:37:00 +0100
committerJames Morris2009-11-08 22:34:22 +0100
commit0e1a6ef2dea88101b056b6d9984f3325c5efced3 (patch)
treebef312c242dd472ca00f0dc8bcebee4f094a85e3 /security/security.c
parenttpm: autoload tpm_tis based on system PnP IDs (diff)
downloadkernel-qcow2-linux-0e1a6ef2dea88101b056b6d9984f3325c5efced3.tar.gz
kernel-qcow2-linux-0e1a6ef2dea88101b056b6d9984f3325c5efced3.tar.xz
kernel-qcow2-linux-0e1a6ef2dea88101b056b6d9984f3325c5efced3.zip
sysctl: require CAP_SYS_RAWIO to set mmap_min_addr
Currently the mmap_min_addr value can only be bypassed during mmap when the task has CAP_SYS_RAWIO. However, the mmap_min_addr sysctl value itself can be adjusted to 0 if euid == 0, allowing a bypass without CAP_SYS_RAWIO. This patch adds a check for the capability before allowing mmap_min_addr to be changed. Signed-off-by: Kees Cook <kees.cook@canonical.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/security.c')
0 files changed, 0 insertions, 0 deletions