mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
execute: fix resource leak
CID#1431998
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
369151c9c7
commit
41abd7f6df
@@ -3537,7 +3537,7 @@ static int apply_mount_namespace(
|
||||
/* Symlinks for exec dirs are set up after other mounts, before they are made read-only. */
|
||||
r = compile_symlinks(context, params, &symlinks);
|
||||
if (r < 0)
|
||||
return r;
|
||||
goto finalize;
|
||||
|
||||
needs_sandboxing = (params->flags & EXEC_APPLY_SANDBOXING) && !(command_flags & EXEC_COMMAND_FULLY_PRIVILEGED);
|
||||
if (needs_sandboxing) {
|
||||
|
||||
Reference in New Issue
Block a user