From 56b5ed21e551fd8f3cfb64cca40dbe0924c8fa3d Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Sun, 12 May 2024 00:34:33 -0300 Subject: [PATCH] landlock: fix misc alignment/newline This amends commit bf5a99360 ("landlock: add support for PATH macro", 2023-12-22). Relates to #6078. --- src/firejail/landlock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/firejail/landlock.c b/src/firejail/landlock.c index 3ac1bddae4b..2b351232080 100644 --- a/src/firejail/landlock.c +++ b/src/firejail/landlock.c @@ -139,7 +139,7 @@ static void _ll_fs(const char *allowed_path, const __u64 allowed_access, target.parent_fd = allowed_fd; target.allowed_access = allowed_access; int error = landlock_add_rule(ll_ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, - &target, 0); + &target, 0); if (error) { fprintf(stderr, "Error: %s: failed to add Landlock rule " "(abi=%d fs=%llx) for %s: %s\n", @@ -170,7 +170,6 @@ static void ll_fs(const char *allowed_path, const __u64 allowed_access, return; } - expanded_path = expand_macros(allowed_path); _ll_fs(expanded_path, allowed_access, caller); free(expanded_path);