SELinux: Abstract use of cred security blob
authorCasey Schaufler <casey@schaufler-ca.com>
Sat, 22 Sep 2018 00:17:16 +0000 (17:17 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 8 Jan 2019 21:18:44 +0000 (13:18 -0800)
commit0c6cfa622cf57109607f3416b286b6b55561a2ea
treeb19919a635083c0e7dd218e794d78cf536ffb194
parentb17103a8b8ae9c9ecc5e1e6501b1478ee2dc6fe4
SELinux: Abstract use of cred security blob

Don't use the cred->security pointer directly.
Provide a helper function that provides the security blob pointer.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
[kees: adjusted for ordered init series]
Signed-off-by: Kees Cook <keescook@chromium.org>
security/selinux/hooks.c
security/selinux/include/objsec.h
security/selinux/xfrm.c