aboutsummaryrefslogtreecommitdiffstats
path: root/security/tomoyo/file.c
diff options
context:
space:
mode:
authorPaul Moore <paul.moore@hp.com>2010-04-22 14:46:19 -0400
committerJames Morris <jmorris@namei.org>2010-08-02 15:34:39 +1000
commit5fb49870e6d48d81d8ca0e1ef979073dc9a820f7 (patch)
tree136fdf4f4181907b89916f24a8e828c00ba3e6bd /security/tomoyo/file.c
parentselinux: Convert socket related access controls to use socket labels (diff)
downloadlinux-dev-5fb49870e6d48d81d8ca0e1ef979073dc9a820f7.tar.xz
linux-dev-5fb49870e6d48d81d8ca0e1ef979073dc9a820f7.zip
selinux: Use current_security() when possible
There were a number of places using the following code pattern: struct cred *cred = current_cred(); struct task_security_struct *tsec = cred->security; ... which were simplified to the following: struct task_security_struct *tsec = current_security(); Signed-off-by: Paul Moore <paul.moore@hp.com> Acked-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/file.c')
0 files changed, 0 insertions, 0 deletions