[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>
This commit is contained in:
committed by
Linus Torvalds
parent
89fa30242f
commit
62bac0185a
@@ -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)
|
||||
|
Reference in New Issue
Block a user