diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2006-09-26 02:31:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 11:48:52 -0400 |
commit | 62bac0185ad3dfef11d9602980445c54d45199c6 (patch) | |
tree | 8478673a1dccac5f4e7add4ad802a2bf69b269a4 /security/selinux | |
parent | 89fa30242facca249aead2aac03c4c69764f911c (diff) |
[PATCH] selinux: eliminate selinux_task_ctxid
Eliminate selinux_task_ctxid since it duplicates selinux_task_get_sid.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/exports.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/security/selinux/exports.c b/security/selinux/exports.c index 9d7737db5e51..ee0fb47f81ae 100644 --- a/security/selinux/exports.c +++ b/security/selinux/exports.c | |||
@@ -21,15 +21,6 @@ | |||
21 | #include "security.h" | 21 | #include "security.h" |
22 | #include "objsec.h" | 22 | #include "objsec.h" |
23 | 23 | ||
24 | void selinux_task_ctxid(struct task_struct *tsk, u32 *ctxid) | ||
25 | { | ||
26 | struct task_security_struct *tsec = tsk->security; | ||
27 | if (selinux_enabled) | ||
28 | *ctxid = tsec->sid; | ||
29 | else | ||
30 | *ctxid = 0; | ||
31 | } | ||
32 | |||
33 | int selinux_ctxid_to_string(u32 ctxid, char **ctx, u32 *ctxlen) | 24 | int selinux_ctxid_to_string(u32 ctxid, char **ctx, u32 *ctxlen) |
34 | { | 25 | { |
35 | if (selinux_enabled) | 26 | if (selinux_enabled) |