aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/landlock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/firejail/landlock.c b/src/firejail/landlock.c
index 3ac1bddae..2b3512320 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,
139 target.parent_fd = allowed_fd; 139 target.parent_fd = allowed_fd;
140 target.allowed_access = allowed_access; 140 target.allowed_access = allowed_access;
141 int error = landlock_add_rule(ll_ruleset_fd, LANDLOCK_RULE_PATH_BENEATH, 141 int error = landlock_add_rule(ll_ruleset_fd, LANDLOCK_RULE_PATH_BENEATH,
142 &target, 0); 142 &target, 0);
143 if (error) { 143 if (error) {
144 fprintf(stderr, "Error: %s: failed to add Landlock rule " 144 fprintf(stderr, "Error: %s: failed to add Landlock rule "
145 "(abi=%d fs=%llx) for %s: %s\n", 145 "(abi=%d fs=%llx) for %s: %s\n",
@@ -170,7 +170,6 @@ static void ll_fs(const char *allowed_path, const __u64 allowed_access,
170 return; 170 return;
171 } 171 }
172 172
173
174 expanded_path = expand_macros(allowed_path); 173 expanded_path = expand_macros(allowed_path);
175 _ll_fs(expanded_path, allowed_access, caller); 174 _ll_fs(expanded_path, allowed_access, caller);
176 free(expanded_path); 175 free(expanded_path);