OSDN Git Service

apparmor: Add support for attaching profiles via xattr, presence and value
authorMatthew Garrett <mjg59@google.com>
Thu, 8 Feb 2018 20:37:19 +0000 (12:37 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 9 Feb 2018 19:30:02 +0000 (11:30 -0800)
commit8e51f9087f4024d20f70f4d9831e1f45d8088331
treea466a6dfa9ffd57b9919b89931bc18fbddb1517e
parenta0781209cb894e5115bb00c269b1d94c4b632d6a
apparmor: Add support for attaching profiles via xattr, presence and value

Make it possible to tie Apparmor profiles to the presence of one or more
extended attributes, and optionally their values. An example usecase for
this is to automatically transition to a more privileged Apparmor profile
if an executable has a valid IMA signature, which can then be appraised
by the IMA subsystem.

Signed-off-by: Matthew Garrett <mjg59@google.com>
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_unpack.c