mirror of
https://github.com/systemd/systemd
synced 2024-09-16 06:43:18 +00:00
execute: fix resource leak
CID#1431998
This commit is contained in:
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. */
|
/* Symlinks for exec dirs are set up after other mounts, before they are made read-only. */
|
||||||
r = compile_symlinks(context, params, &symlinks);
|
r = compile_symlinks(context, params, &symlinks);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
goto finalize;
|
||||||
|
|
||||||
needs_sandboxing = (params->flags & EXEC_APPLY_SANDBOXING) && !(command_flags & EXEC_COMMAND_FULLY_PRIVILEGED);
|
needs_sandboxing = (params->flags & EXEC_APPLY_SANDBOXING) && !(command_flags & EXEC_COMMAND_FULLY_PRIVILEGED);
|
||||||
if (needs_sandboxing) {
|
if (needs_sandboxing) {
|
||||||
|
|
Loading…
Reference in a new issue