AppArmor: Add selfattr hooks
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 12 Sep 2023 20:56:54 +0000 (13:56 -0700)
committerPaul Moore <paul@paul-moore.com>
Mon, 13 Nov 2023 03:54:42 +0000 (22:54 -0500)
commit223981db9bafb80f558162c148f261e2ff043dbe
treed37609096f2fb8759238527f9e0b7833cfd0b1ff
parent38b323e5881608b5a229526d9a567df6182255ef
AppArmor: Add selfattr hooks

Add hooks for setselfattr and getselfattr. These hooks are not very
different from their setprocattr and getprocattr equivalents, and
much of the code is shared.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: John Johansen <john.johansen@canonical.com>
[PM: forward ported beyond v6.6 due merge window changes]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/apparmor/include/procattr.h
security/apparmor/lsm.c
security/apparmor/procattr.c