SELinux: Abstract use of ipc security blobs
authorCasey Schaufler <casey@schaufler-ca.com>
Sat, 22 Sep 2018 00:19:45 +0000 (17:19 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 8 Jan 2019 21:18:45 +0000 (13:18 -0800)
commit7c6538280ae99eaebd589a5c029e1ed1c063909c
treedc9151bdc921bb93a0a3be3e06a4e93f570e44c5
parentf4ad8f2c40769b3cc9497ba0883bbaf823f7752f
SELinux: Abstract use of ipc security blobs

Don't use the ipc->security pointer directly.
Don't use the msg_msg->security pointer directly.
Provide helper functions that provides the security blob pointers.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
security/selinux/hooks.c
security/selinux/include/objsec.h