apparmor: refactor code that alloc null profiles
authorJohn Johansen <john.johansen@canonical.com>
Mon, 3 Oct 2022 09:48:24 +0000 (02:48 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Tue, 25 Oct 2022 05:35:36 +0000 (22:35 -0700)
commit58f89ce58bb4f5cf5963b20a19aaa2431b0412d8
treec2d790ece0ee8b71c048c3775a70801e5927acaf
parent1f2bc06a8dbff73957f433b22c6fd35fccfb47a4
apparmor: refactor code that alloc null profiles

Bother unconfined and learning profiles use the null profile as their
base. Refactor so they are share a common base routine. This doesn't
save much atm but will be important when the feature set of the
parent is inherited.

Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/domain.c
security/apparmor/include/policy.h
security/apparmor/policy.c
security/apparmor/policy_ns.c