linux/security/apparmor/include
John Johansen fa2ac468db apparmor: update how unconfined is handled
ns->unconfined is being used read side without locking, nor rcu but is
being updated when a namespace is removed. This works for the root ns
which is never removed but has a race window and can cause failures when
children namespaces are removed.

Also ns and ns->unconfined have a circular refcounting dependency that
is problematic and must be broken. Currently this is done incorrectly
when the namespace is destroyed.

Fix this by forward referencing unconfined via the replacedby infrastructure
instead of directly updating the ns->unconfined pointer.

Remove the circular refcount dependency by making the ns and its unconfined
profile share the same refcount.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Seth Arnold <seth.arnold@canonical.com>
2013-08-14 11:42:06 -07:00
..
apparmor.h apparmor: convert profile lists to RCU based locking 2013-08-14 11:42:06 -07:00
apparmorfs.h AppArmor: add "file" details to securityfs 2012-02-27 11:38:18 -08:00
audit.h userns: Convert apparmor to use kuid and kgid where appropriate 2012-09-21 03:13:21 -07:00
capability.h AppArmor: mediation of non file objects 2010-08-02 15:38:35 +10:00
context.h apparmor: change how profile replacement update is done 2013-08-14 11:42:06 -07:00
domain.h AppArmor: functions for domain transitions 2010-08-02 15:35:14 +10:00
file.h apparmor: fix sparse warnings 2013-04-28 00:39:35 -07:00
ipc.h AppArmor: mediation of non file objects 2010-08-02 15:38:35 +10:00
match.h apparmor: move perm defines into policy_unpack 2013-04-28 00:37:04 -07:00
path.h AppArmor: Move path failure information into aa_get_name and rename 2012-03-14 06:15:25 -07:00
policy_unpack.h apparmor: provide base for multiple profiles to be replaced at once 2013-08-14 11:42:06 -07:00
policy.h apparmor: update how unconfined is handled 2013-08-14 11:42:06 -07:00
procattr.h apparmor: remove "permipc" command 2013-04-28 00:36:32 -07:00
resource.h AppArmor: export known rlimit names/value mappings in securityfs 2012-02-27 11:38:19 -08:00
sid.h apparmor: remove sid from profiles 2013-04-28 00:37:13 -07:00