From: Kees Cook Date: Sun, 8 Nov 2009 17:37:00 +0000 (-0800) Subject: sysctl: require CAP_SYS_RAWIO to set mmap_min_addr X-Git-Tag: v2.6.33-rc1~411^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e1a6ef2dea88101b056b6d9984f3325c5efced3;p=pandora-kernel.git 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 Acked-by: Serge Hallyn Signed-off-by: James Morris --- Reading git-diff-tree failed