Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples/landlock: Fix incorrect free in populate_ruleset_net
BugLink: https://bugs.launchpad.net/bugs/2071621 [ Upstream commit 4221293 ] Pointer env_port_name changes after strsep(). Memory allocated via strdup() will not be freed if landlock_add_rule() returns non-zero value. Fixes: 5e990dc ("samples/landlock: Support TCP restrictions") Signed-off-by: Ivanov Mikhail <[email protected]> Reviewed-by: Konstantin Meskhidze <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mickaël Salaün <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Manuel Diewald <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
- Loading branch information