SELinux: Add selfattr hooks
authorCasey Schaufler <casey@schaufler-ca.com>
Tue, 12 Sep 2023 20:56:55 +0000 (13:56 -0700)
committerPaul Moore <paul@paul-moore.com>
Mon, 13 Nov 2023 03:54:42 +0000 (22:54 -0500)
commit762c934317e6f4b576eb4aa75e5facf4968a4a8f
treea9d33e19f37057da04fd34a73dfbeda37935c064
parent223981db9bafb80f558162c148f261e2ff043dbe
SELinux: 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.

Cc: selinux@vger.kernel.org
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c