mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
execute: define the variable mac_selinux_contex_net only when build with SELinux
This commit is contained in:
parent
92b423b9b4
commit
7f59dd3566
@ -2735,7 +2735,7 @@ static int exec_child(
|
||||
int *exit_status) {
|
||||
|
||||
_cleanup_strv_free_ char **our_env = NULL, **pass_env = NULL, **accum_env = NULL, **final_argv = NULL;
|
||||
_cleanup_free_ char *mac_selinux_context_net = NULL, *home_buffer = NULL;
|
||||
_cleanup_free_ char *home_buffer = NULL;
|
||||
_cleanup_free_ gid_t *supplementary_gids = NULL;
|
||||
const char *username = NULL, *groupname = NULL;
|
||||
const char *home = NULL, *shell = NULL;
|
||||
@ -2746,6 +2746,7 @@ static int exec_child(
|
||||
needs_mount_namespace, /* Do we need to set up a mount namespace for this kernel? */
|
||||
needs_ambient_hack; /* Do we need to apply the ambient capabilities hack? */
|
||||
#if HAVE_SELINUX
|
||||
_cleanup_free_ char *mac_selinux_context_net = NULL;
|
||||
bool use_selinux = false;
|
||||
#endif
|
||||
#if ENABLE_SMACK
|
||||
|
Loading…
Reference in New Issue
Block a user