Smack: Abstract use of file security blob
authorCasey Schaufler <casey@schaufler-ca.com>
Mon, 12 Nov 2018 17:38:53 +0000 (09:38 -0800)
committerKees Cook <keescook@chromium.org>
Tue, 8 Jan 2019 21:18:44 +0000 (13:18 -0800)
commitf28952ac900822a189fc383a5b73631e72c69356
tree4daaf025cb9fa286cb5b4d76025e3e6b3f7588fa
parentbb6c6b02ccb7d76f628c5dc6abe13f1115637cfd
Smack: Abstract use of file security blob

Don't use the file->f_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>
Signed-off-by: Kees Cook <keescook@chromium.org>
security/smack/smack.h
security/smack/smack_lsm.c