Skip to content

Commit

Permalink
landlock: fix misc alignment/newline
Browse files Browse the repository at this point in the history
This amends commit bf5a993 ("landlock: add support for PATH macro",
2023-12-22).

Relates to #6078.
  • Loading branch information
kmk3 committed May 12, 2024
1 parent 4fa0bb7 commit 56b5ed2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/firejail/landlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 56b5ed2

Please sign in to comment.