#if ENABLE_SELINUX
static security_context_t current_sid;
-void
-renew_current_security_context(void)
+void FAST_FUNC renew_current_security_context(void)
{
freecon(current_sid); /* Release old context */
getcon(¤t_sid); /* update */
}
-void
-set_current_security_context(security_context_t sid)
+void FAST_FUNC set_current_security_context(security_context_t sid)
{
freecon(current_sid); /* Release old context */
current_sid = sid;
If ADDITIONAL_ARGS is nonzero, pass it to the shell as more
arguments. */
-void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args)
+void FAST_FUNC run_shell(const char *shell, int loginshell, const char *command, const char **additional_args)
{
const char **args;
int argno = 1;
args = xmalloc(sizeof(char*) * (4 + additional_args_cnt));
- args[0] = bb_get_last_path_component(xstrdup(shell));
+ args[0] = bb_get_last_path_component_nostrip(xstrdup(shell));
if (loginshell)
args[0] = xasprintf("-%s", args[0]);