From: Eric Paris Date: Mon, 26 Nov 2007 23:47:46 +0000 (-0500) Subject: Security: allow capable check to permit mmap or low vm space X-Git-Tag: v2.6.24-rc5~63^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab5a91a8364c3d6fc617abc47cc81d162c01d90a;p=pandora-kernel.git Security: allow capable check to permit mmap or low vm space On a kernel with CONFIG_SECURITY but without an LSM which implements security_file_mmap it is impossible for an application to mmap addresses lower than mmap_min_addr. Based on a suggestion from a developer in the openwall community this patch adds a check for CAP_SYS_RAWIO. It is assumed that any process with this capability can harm the system a lot more easily than writing some stuff on the zero page and then trying to get the kernel to trip over itself. It also means that programs like X on i686 which use vm86 emulation can work even with mmap_min_addr set. Signed-off-by: Eric Paris Signed-off-by: James Morris --- Reading git-diff-tree failed