diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-17 15:35:48 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-23 15:09:13 +0900 |
commit | 24002121289698569bc28c0fe32dbb553a648545 (patch) | |
tree | f4ab635048dfc77bdcd928701e3587e75f34d690 /src/core/execute.c | |
parent | faac56d5d2bd078ddff81cd999874477e8e373ce (diff) | |
download | systemd-24002121289698569bc28c0fe32dbb553a648545.tar.gz |
core/execute: make PrivateMounts= tristate
No functional change, just preparation for later commits.
Diffstat (limited to 'src/core/execute.c')
-rw-r--r-- | src/core/execute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c index e19f382118..39ece6e735 100644 --- a/src/core/execute.c +++ b/src/core/execute.c @@ -2074,7 +2074,7 @@ bool exec_needs_mount_namespace( return true; if (context->private_devices || - context->private_mounts || + context->private_mounts > 0 || context->protect_system != PROTECT_SYSTEM_NO || context->protect_home != PROTECT_HOME_NO || context->protect_kernel_tunables || @@ -5488,6 +5488,7 @@ void exec_context_init(ExecContext *c) { c->tty_rows = UINT_MAX; c->tty_cols = UINT_MAX; numa_policy_reset(&c->numa_policy); + c->private_mounts = -1; } void exec_context_done(ExecContext *c) { |