mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
exec: Ignore the setting SELinuxContext if selinux is not enabled
This commit is contained in:
parent
7b52a628f8
commit
5c56a259e0
@ -1569,7 +1569,7 @@ int exec_spawn(ExecCommand *command,
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_SELINUX
|
||||
if (context->selinux_context) {
|
||||
if (context->selinux_context && use_selinux()) {
|
||||
err = security_check_context(context->selinux_context);
|
||||
if (err < 0) {
|
||||
r = EXIT_SELINUX_CONTEXT;
|
||||
|
Loading…
Reference in New Issue
Block a user