summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2006-09-26 08:31:57 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-26 17:48:52 +0200
commit1a70cd40cb291c25b67ec0da715a49d76719329d (patch)
treeffb4c6cd3f7ef1b92822ebbda11bd2b035c2bc86 /security
parent[PATCH] selinux: eliminate selinux_task_ctxid (diff)
downloadlinux-1a70cd40cb291c25b67ec0da715a49d76719329d.tar.xz
linux-1a70cd40cb291c25b67ec0da715a49d76719329d.zip
[PATCH] selinux: rename selinux_ctxid_to_string
Rename selinux_ctxid_to_string to selinux_sid_to_string to be consistent with other interfaces. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/exports.c b/security/selinux/exports.c
index ee0fb47f81ae..b6f96943be1f 100644
--- a/security/selinux/exports.c
+++ b/security/selinux/exports.c
@@ -21,10 +21,10 @@
#include "security.h"
#include "objsec.h"
-int selinux_ctxid_to_string(u32 ctxid, char **ctx, u32 *ctxlen)
+int selinux_sid_to_string(u32 sid, char **ctx, u32 *ctxlen)
{
if (selinux_enabled)
- return security_sid_to_context(ctxid, ctx, ctxlen);
+ return security_sid_to_context(sid, ctx, ctxlen);
else {
*ctx = NULL;
*ctxlen = 0;