X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fexecute.c;h=c41aec222de06e3e4eacbbe6aa96aebc8616b309;hb=45071fcaa03eafc27352987fa2277b2792725036;hp=caff2c6b5ce9c2fcf2a72ffb03c7d11ac73dd424;hpb=cc56fafeebf814ef035e549115cf1850e6473fa5;p=elogind.git diff --git a/src/core/execute.c b/src/core/execute.c index caff2c6b5..c41aec222 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -1669,7 +1669,7 @@ static int exec_child(ExecCommand *command, #endif #ifdef HAVE_SELINUX - if (use_selinux()) { + if (mac_selinux_use()) { if (context->selinux_context) { err = setexeccon(context->selinux_context); if (err < 0 && !context->selinux_context_ignore) { @@ -1697,7 +1697,7 @@ static int exec_child(ExecCommand *command, #endif #ifdef HAVE_APPARMOR - if (context->apparmor_profile && use_apparmor()) { + if (context->apparmor_profile && mac_apparmor_use()) { err = aa_change_onexec(context->apparmor_profile); if (err < 0 && !context->apparmor_profile_ignore) { *error = EXIT_APPARMOR_PROFILE;