mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
core/exec-invoke: don't set $TMPDIR if sandboxing is disabled
Follow-up for 6156bec7a4
This commit is contained in:
@@ -2193,7 +2193,7 @@ static int build_environment(
|
||||
}
|
||||
|
||||
assert(c->private_var_tmp >= 0 && c->private_var_tmp < _PRIVATE_TMP_MAX);
|
||||
if (c->private_tmp != c->private_var_tmp) {
|
||||
if (needs_sandboxing && c->private_tmp != c->private_var_tmp) {
|
||||
assert(c->private_tmp == PRIVATE_TMP_DISCONNECTED);
|
||||
assert(c->private_var_tmp == PRIVATE_TMP_NO);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user