]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
UBUNTU: SAUCE: apparmor: add an apparmorfs entry to access current attrs
authorJohn Johansen <john.johansen@canonical.com>
Mon, 4 Feb 2019 13:42:24 +0000 (05:42 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 26 Mar 2019 14:54:22 +0000 (09:54 -0500)
commit8347e2624d656ce97bb2b43938c6d267f2b225d9
tree6b5ff18d91060f0e19d84aa6fd3ed739ba7cbd53
parent383da54428dfced673044f516b8badfa53e516db
UBUNTU: SAUCE: apparmor: add an apparmorfs entry to access current attrs

There are use cases where the proc filesystem is not available but
access to the apparmor attr interface for change_profile and
change_hat is desired.

Provide an apparmorfs based interface for the current task that
mirrors what is provided in proc.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
security/apparmor/apparmorfs.c
security/apparmor/include/apparmorfs.h
security/apparmor/lsm.c