Smack: Abstract use of cred security blob
authorCasey Schaufler <casey@schaufler-ca.com>
Sat, 10 Nov 2018 00:12:56 +0000 (16:12 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 8 Jan 2019 21:18:44 +0000 (13:18 -0800)
commitb17103a8b8ae9c9ecc5e1e6501b1478ee2dc6fe4
treee080e34cf17f616e24f44bc1c1f25e285bf9857a
parent6d9c939dbe4d0bcea09cd4b410f624cde1acb678
Smack: 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/smack/smack.h
security/smack/smack_access.c
security/smack/smack_lsm.c
security/smack/smackfs.c