]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] selinux: fix and cleanup mprotect checks
authorStephen Smalley <sds@tycho.nsa.gov>
Wed, 1 Feb 2006 11:05:54 +0000 (03:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:18 +0000 (08:53 -0800)
commitc89738c0675388162b5cfd017bbb1bce0b7cef91
treef3b786a346f0c987d796784e1e08154338263ad3
parent17ec43257d05e8aa42f37478641136aecd0ee59e
[PATCH] selinux: fix and cleanup mprotect checks

Fix the SELinux mprotect checks on executable mappings so that they are not
re-applied when the mapping is already executable as well as cleaning up
the code.  This avoids a situation where e.g.  an application is prevented
from removing PROT_WRITE on an already executable mapping previously
authorized via execmem permission due to an execmod denial.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/hooks.c