]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: introduce permissive types
authorEric Paris <eparis@redhat.com>
Mon, 31 Mar 2008 01:17:33 +0000 (12:17 +1100)
committerJames Morris <jmorris@namei.org>
Fri, 18 Apr 2008 10:26:11 +0000 (20:26 +1000)
commitffd527f1b8eb9902ddf9206d6969a87d8d85522d
tree364ae3f3a29f06246dd2097674586fe508c4445f
parent41212af8525b7b3b696e8265bade21e05c9fef78
selinux: introduce permissive types

Introduce the concept of a permissive type.  A new ebitmap is introduced to
the policy database which indicates if a given type has the permissive bit
set or not.  This bit is tested for the scontext of any denial.  The bit is
meaningless on types which only appear as the target of a decision and never
the source.  A domain running with a permissive type will be allowed to
perform any action similarly to when the system is globally set permissive.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/Kconfig
security/selinux/avc.c
security/selinux/include/security.h
security/selinux/ss/policydb.c
security/selinux/ss/policydb.h
security/selinux/ss/services.c