mirror of https://git.tukaani.org/xz.git
xzdec: Don't leave Landlock file descriptor open for no reason
This fix is similar to48ff3f0652
. Fixes:d74fb5f060
This commit is contained in:
parent
35df4c2bc0
commit
2655c81b5e
|
@ -343,6 +343,8 @@ sandbox_enter(int src_fd)
|
|||
// before activating the sandbox.
|
||||
if (my_landlock_restrict_self(ruleset_fd, 0) != 0)
|
||||
goto error;
|
||||
|
||||
(void)close(ruleset_fd);
|
||||
}
|
||||
|
||||
(void)src_fd;
|
||||
|
|
Loading…
Reference in New Issue