Searched hist:"5 fb49870e6d48d81d8ca0e1ef979073dc9a820f7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/security/selinux/ |
H A D | hooks.c | diff 5fb49870e6d48d81d8ca0e1ef979073dc9a820f7 Thu Apr 22 13:46:19 CDT 2010 Paul Moore <paul.moore@hp.com> 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>
|