summaryrefslogtreecommitdiffstats
path: root/toolbox/id.c
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2012-10-10 11:26:33 -0700
committerKenny Root <kroot@google.com>2012-10-16 12:34:06 -0700
commitb83c09812f30d36285cacdf5cf824c56c267f8e5 (patch)
tree2a32747cd62f4cb1e542bf1b30018b7001ebc530 /toolbox/id.c
parent51ccef27cab58277775e62518a59666d2a059b62 (diff)
downloadsystem_core-b83c09812f30d36285cacdf5cf824c56c267f8e5.zip
system_core-b83c09812f30d36285cacdf5cf824c56c267f8e5.tar.gz
system_core-b83c09812f30d36285cacdf5cf824c56c267f8e5.tar.bz2
Remove HAVE_SELINUX guards
Change-Id: Idef0a784a1d237257ff4135bb1df62ff8a67ded3
Diffstat (limited to 'toolbox/id.c')
-rw-r--r--toolbox/id.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/toolbox/id.c b/toolbox/id.c
index bc79288..8ec79c1 100644
--- a/toolbox/id.c
+++ b/toolbox/id.c
@@ -4,10 +4,7 @@
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
-
-#ifdef HAVE_SELINUX
#include <selinux/selinux.h>
-#endif
static void print_uid(uid_t uid)
{
@@ -34,9 +31,7 @@ int id_main(int argc, char **argv)
{
gid_t list[64];
int n, max;
-#ifdef HAVE_SELINUX
char *secctx;
-#endif
max = getgroups(64, list);
if (max < 0) max = 0;
@@ -53,12 +48,10 @@ int id_main(int argc, char **argv)
print_gid(list[n]);
}
}
-#ifdef HAVE_SELINUX
if (getcon(&secctx) == 0) {
printf(" context=%s", secctx);
free(secctx);
}
-#endif
printf("\n");
return 0;
}