SELinux: Abstract use of file security blob
authorCasey Schaufler <casey@schaufler-ca.com>
Sat, 22 Sep 2018 00:22:32 +0000 (17:22 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 8 Jan 2019 21:18:44 +0000 (13:18 -0800)
commitbb6c6b02ccb7d76f628c5dc6abe13f1115637cfd
treed8b08890fd9b9c84d6d1a37f182c3441273e6579
parentbbd3662a834813730912a58efb44dd6df6d952e6
SELinux: 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/selinux/hooks.c
security/selinux/include/objsec.h