diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-05-12 00:34:33 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-05-12 00:39:58 -0300 |
commit | 56b5ed21e551fd8f3cfb64cca40dbe0924c8fa3d (patch) | |
tree | 66d8f453afeb037dc7de38250bc0c81495bebfad /src | |
parent | profiles: hexchat: allow lua/downloads and harden (#6331) (diff) | |
download | firejail-56b5ed21e551fd8f3cfb64cca40dbe0924c8fa3d.tar.gz firejail-56b5ed21e551fd8f3cfb64cca40dbe0924c8fa3d.tar.zst firejail-56b5ed21e551fd8f3cfb64cca40dbe0924c8fa3d.zip |
landlock: fix misc alignment/newline
This amends commit bf5a99360 ("landlock: add support for PATH macro",
2023-12-22).
Relates to #6078.
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/landlock.c | 3 |
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); |