]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: Permit bounded transitions under NO_NEW_PRIVS or NOSUID.
authorStephen Smalley <sds@tycho.nsa.gov>
Mon, 4 Aug 2014 17:36:49 +0000 (13:36 -0400)
committerPaul Moore <pmoore@redhat.com>
Thu, 28 Aug 2014 15:37:12 +0000 (11:37 -0400)
commit53e24e676979f830dea71b86e6f7798952267c1b
treeab2fa10cfd86c0db24135b34bcaf7cbff8674c75
parent47f732fcb9a8ce08e3970a0716123fd75ad4fc3f
selinux: Permit bounded transitions under NO_NEW_PRIVS or NOSUID.

If the callee SID is bounded by the caller SID, then allowing
the transition to occur poses no risk of privilege escalation and we can
therefore safely allow the transition to occur.  Add this exemption
for both the case where a transition was explicitly requested by the
application and the case where an automatic transition is defined in
policy.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Reviewed-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/hooks.c