apparmor: add support for mapping secids and using secctxes
authorJohn Johansen <john.johansen@canonical.com>
Tue, 1 Aug 2017 00:36:45 +0000 (17:36 -0700)
committerJohn Johansen <john.johansen@canonical.com>
Wed, 2 May 2018 07:48:55 +0000 (00:48 -0700)
commitc092921219d227b13cb80dbecd3545ee66ab89b3
tree9047e3ecae86ec35208de3a2f60ed31f3c7a3e1b
parent552c69b36ebd966186573b9c7a286b390935cce1
apparmor: add support for mapping secids and using secctxes

Use a radix tree to provide a map between the secid and the label,
and along with it a basic ability to provide secctx conversion.

Shared/cached secctx will be added later.

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