OSDN Git Service

security: use mmap_min_addr indepedently of security models
authorChristoph Lameter <cl@linux-foundation.org>
Wed, 3 Jun 2009 20:04:31 +0000 (16:04 -0400)
committerNick Pelly <npelly@google.com>
Thu, 13 Aug 2009 22:06:08 +0000 (15:06 -0700)
commit05f6ab599ef820e96070cc66c00953d8506d1026
tree7574471205dea1c3bf237f3cb4fc66e709fda49a
parentc8853459b739e5f43da0badc1605a0a0c0c8195d
security: use mmap_min_addr indepedently of security models

This patch removes the dependency of mmap_min_addr on CONFIG_SECURITY.
It also sets a default mmap_min_addr of 4096.

mmapping of addresses below 4096 will only be possible for processes
with CAP_SYS_RAWIO.

Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Acked-by: Eric Paris <eparis@redhat.com>
Looks-ok-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: James Morris <jmorris@namei.org>
include/linux/mm.h
include/linux/security.h
kernel/sysctl.c
mm/Kconfig
mm/mmap.c
security/Kconfig
security/security.c