diff options
author | Eric Paris <eparis@redhat.com> | 2008-03-30 21:17:33 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-04-18 06:26:11 -0400 |
commit | 64dbf07474d011540ca479a2e87fe998f570d6e3 (patch) | |
tree | 364ae3f3a29f06246dd2097674586fe508c4445f /security/selinux/ss/policydb.h | |
parent | 0356357c5158c71d4cbf20196b2f784435dd916c (diff) |
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>
Diffstat (limited to 'security/selinux/ss/policydb.h')
-rw-r--r-- | security/selinux/ss/policydb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/selinux/ss/policydb.h b/security/selinux/ss/policydb.h index c4ce996e202c..ba593a3da877 100644 --- a/security/selinux/ss/policydb.h +++ b/security/selinux/ss/policydb.h | |||
@@ -243,6 +243,8 @@ struct policydb { | |||
243 | 243 | ||
244 | struct ebitmap policycaps; | 244 | struct ebitmap policycaps; |
245 | 245 | ||
246 | struct ebitmap permissive_map; | ||
247 | |||
246 | unsigned int policyvers; | 248 | unsigned int policyvers; |
247 | 249 | ||
248 | unsigned int reject_unknown : 1; | 250 | unsigned int reject_unknown : 1; |