projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SELinux: Fix possible NULL pointer dereference in selinux_inode_permission()
[firefly-linux-kernel-4.4.55.git]
/
security
/
selinux
/
include
/
objsec.h
diff --git
a/security/selinux/include/objsec.h
b/security/selinux/include/objsec.h
index b1dfe104945078ead53647c247c46aa6134fac2e..078e553f52f27a03ab83490f20bb2353782d2ef2 100644
(file)
--- a/
security/selinux/include/objsec.h
+++ b/
security/selinux/include/objsec.h
@@
-38,7
+38,10
@@
struct task_security_struct {
struct inode_security_struct {
struct inode *inode; /* back pointer to inode object */
struct inode_security_struct {
struct inode *inode; /* back pointer to inode object */
- struct list_head list; /* list of inode_security_struct */
+ union {
+ struct list_head list; /* list of inode_security_struct */
+ struct rcu_head rcu; /* for freeing the inode_security_struct */
+ };
u32 task_sid; /* SID of creating task */
u32 sid; /* SID of this object */
u16 sclass; /* security class of this object */
u32 task_sid; /* SID of creating task */
u32 sid; /* SID of this object */
u16 sclass; /* security class of this object */