freebsd-skq/sys/security/mac
Robert Watson 2555374c4f Introduce p_label, extensible security label storage for the MAC framework
in struct proc.  While the process label is actually stored in the
struct ucred pointed to by p_ucred, there is a need for transient
storage that may be used when asynchronous (deferred) updates need to
be performed on the "real" label for locking reasons.  Unlike other
label storage, this label has no locking semantics, relying on policies
to provide their own protection for the label contents, meaning that
a policy leaf mutex may be used, avoiding lock order issues.  This
permits policies that act based on historical process behavior (such
as audit policies, the MAC Framework port of LOMAC, etc) can update
process properties even when many existing locks are held without
violating the lock order.  No currently committed policies implement use
of this label storage.

Approved by:	re
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2002-11-20 15:41:25 +00:00
..
mac_framework.c Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_framework.h Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_internal.h Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_net.c Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_pipe.c Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_policy.h Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_process.c Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_syscalls.c Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_system.c Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00
mac_vfs.c Introduce p_label, extensible security label storage for the MAC framework 2002-11-20 15:41:25 +00:00