diff options
author | James Morris <jmorris@namei.org> | 2008-02-25 17:52:58 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-04-18 06:26:04 -0400 |
commit | 98e9894650455426f67c2157db4f39bd14fac2f6 (patch) | |
tree | bee5205f20c4d1faa6ec80f05d708eecad2959b3 /security/selinux/include/objsec.h | |
parent | f74af6e816c940c678c235d49486fe40d7e49ce9 (diff) |
SELinux: remove unused backpointers from security objects
Remove unused backpoiters from security objects.
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/include/objsec.h')
-rw-r--r-- | security/selinux/include/objsec.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/security/selinux/include/objsec.h b/security/selinux/include/objsec.h index 0b74077eed4f..020a8754b809 100644 --- a/security/selinux/include/objsec.h +++ b/security/selinux/include/objsec.h | |||
@@ -28,7 +28,6 @@ | |||
28 | #include "avc.h" | 28 | #include "avc.h" |
29 | 29 | ||
30 | struct task_security_struct { | 30 | struct task_security_struct { |
31 | struct task_struct *task; /* back pointer to task object */ | ||
32 | u32 osid; /* SID prior to last execve */ | 31 | u32 osid; /* SID prior to last execve */ |
33 | u32 sid; /* current SID */ | 32 | u32 sid; /* current SID */ |
34 | u32 exec_sid; /* exec SID */ | 33 | u32 exec_sid; /* exec SID */ |
@@ -50,7 +49,6 @@ struct inode_security_struct { | |||
50 | }; | 49 | }; |
51 | 50 | ||
52 | struct file_security_struct { | 51 | struct file_security_struct { |
53 | struct file *file; /* back pointer to file object */ | ||
54 | u32 sid; /* SID of open file description */ | 52 | u32 sid; /* SID of open file description */ |
55 | u32 fown_sid; /* SID of file owner (for SIGIO) */ | 53 | u32 fown_sid; /* SID of file owner (for SIGIO) */ |
56 | u32 isid; /* SID of inode at the time of file open */ | 54 | u32 isid; /* SID of inode at the time of file open */ |
@@ -73,18 +71,15 @@ struct superblock_security_struct { | |||
73 | }; | 71 | }; |
74 | 72 | ||
75 | struct msg_security_struct { | 73 | struct msg_security_struct { |
76 | struct msg_msg *msg; /* back pointer */ | ||
77 | u32 sid; /* SID of message */ | 74 | u32 sid; /* SID of message */ |
78 | }; | 75 | }; |
79 | 76 | ||
80 | struct ipc_security_struct { | 77 | struct ipc_security_struct { |
81 | struct kern_ipc_perm *ipc_perm; /* back pointer */ | ||
82 | u16 sclass; /* security class of this object */ | 78 | u16 sclass; /* security class of this object */ |
83 | u32 sid; /* SID of IPC resource */ | 79 | u32 sid; /* SID of IPC resource */ |
84 | }; | 80 | }; |
85 | 81 | ||
86 | struct bprm_security_struct { | 82 | struct bprm_security_struct { |
87 | struct linux_binprm *bprm; /* back pointer to bprm object */ | ||
88 | u32 sid; /* SID for transformed process */ | 83 | u32 sid; /* SID for transformed process */ |
89 | unsigned char set; | 84 | unsigned char set; |
90 | 85 | ||
@@ -110,7 +105,6 @@ struct netnode_security_struct { | |||
110 | }; | 105 | }; |
111 | 106 | ||
112 | struct sk_security_struct { | 107 | struct sk_security_struct { |
113 | struct sock *sk; /* back pointer to sk object */ | ||
114 | u32 sid; /* SID of this object */ | 108 | u32 sid; /* SID of this object */ |
115 | u32 peer_sid; /* SID of peer */ | 109 | u32 peer_sid; /* SID of peer */ |
116 | u16 sclass; /* sock security class */ | 110 | u16 sclass; /* sock security class */ |
@@ -124,7 +118,6 @@ struct sk_security_struct { | |||
124 | }; | 118 | }; |
125 | 119 | ||
126 | struct key_security_struct { | 120 | struct key_security_struct { |
127 | struct key *obj; /* back pointer */ | ||
128 | u32 sid; /* SID of key */ | 121 | u32 sid; /* SID of key */ |
129 | }; | 122 | }; |
130 | 123 | ||