aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMickaël Salaün <mic@digikod.net>2025-07-19 12:42:00 +0200
committerMickaël Salaün <mic@digikod.net>2025-07-19 12:44:16 +0200
commit6803b6ebb8164c1d306600f8836a39b6fceffeec (patch)
tree2239380340d7f2bed5c8f949202c1e9361f05f68
parentsamples/landlock: Fix building on musl libc (diff)
downloadwireguard-linux-6803b6ebb8164c1d306600f8836a39b6fceffeec.tar.xz
wireguard-linux-6803b6ebb8164c1d306600f8836a39b6fceffeec.zip
landlock: Fix cosmetic change
This line removal should not be there and it makes it more difficult to backport the following patch. Cc: Günther Noack <gnoack@google.com> Cc: Konstantin Meskhidze <konstantin.meskhidze@huawei.com> Fixes: 7a11275c3787 ("landlock: Refactor layer helpers") Link: https://lore.kernel.org/r/20250719104204.545188-2-mic@digikod.net Signed-off-by: Mickaël Salaün <mic@digikod.net>
-rw-r--r--security/landlock/fs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/landlock/fs.c b/security/landlock/fs.c
index 6fee7c20f64d..c04f8879ad03 100644
--- a/security/landlock/fs.c
+++ b/security/landlock/fs.c
@@ -895,6 +895,7 @@ static bool is_access_to_paths_allowed(
/* Stops when a rule from each layer grants access. */
if (allowed_parent1 && allowed_parent2)
break;
+
jump_up:
if (walker_path.dentry == walker_path.mnt->mnt_root) {
if (follow_up(&walker_path)) {