summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2006-09-25 23:31:56 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-26 08:48:52 -0700
commit62bac0185ad3dfef11d9602980445c54d45199c6 (patch)
tree8478673a1dccac5f4e7add4ad802a2bf69b269a4 /security
parent89fa30242facca249aead2aac03c4c69764f911c (diff)
downloadlinux-3.10-62bac0185ad3dfef11d9602980445c54d45199c6.tar.gz
linux-3.10-62bac0185ad3dfef11d9602980445c54d45199c6.tar.bz2
linux-3.10-62bac0185ad3dfef11d9602980445c54d45199c6.zip
[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')
-rw-r--r--security/selinux/exports.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/security/selinux/exports.c b/security/selinux/exports.c
index 9d7737db5e5..ee0fb47f81a 100644
--- a/security/selinux/exports.c
+++ b/security/selinux/exports.c
@@ -21,15 +21,6 @@
#include "security.h"
#include "objsec.h"
-void selinux_task_ctxid(struct task_struct *tsk, u32 *ctxid)
-{
- struct task_security_struct *tsec = tsk->security;
- if (selinux_enabled)
- *ctxid = tsec->sid;
- else
- *ctxid = 0;
-}
-
int selinux_ctxid_to_string(u32 ctxid, char **ctx, u32 *ctxlen)
{
if (selinux_enabled)