[Initng-svn] r3808 - initng/trunk/plugins/bash_launcher
svn at initng.thinktux.net
svn at initng.thinktux.net
Sun Apr 16 10:15:23 CEST 2006
Author: dragoran
Date: Sun Apr 16 10:15:22 2006
New Revision: 3808
Modified:
initng/trunk/plugins/bash_launcher/initng_bash_launcher.c
Log:
More SELINUX fixes
Modified: initng/trunk/plugins/bash_launcher/initng_bash_launcher.c
==============================================================================
--- initng/trunk/plugins/bash_launcher/initng_bash_launcher.c (original)
+++ initng/trunk/plugins/bash_launcher/initng_bash_launcher.c Sun Apr 16 10:15:22 2006
@@ -115,14 +115,14 @@
argtmp[4] = NULL;
#ifdef SELINUX
- /*
const char *selinux_context = get_string(&SELINUX_CONTEXT, s);
+ char *sestr = NULL;
+ context_t seref = NULL;
+ int rc=0;
if(selinux_context)
setexeccon(selinux_context);
else
- setexeccon("initrc_exec_t"); */
- char *sestr = NULL;
- context_t seref = NULL;
+ setexeccon("initrc_t");
rc = getcon(&sestr);
if (rc < 0) goto fail;
seref = context_new(sestr);
More information about the Initng-svn
mailing list