Skip to content

Fix warning in collect_domain_accesses()

Mickaël Salaün linux-security-module lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2landlock: Fix d_parent walksecurity/landlock/fs.c+11 -20 replies
2/2selftests/landlock: Add layout1.refer_mount_roottools/testing/selftests/landlock/fs_test.c+45 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] Fix warning in collect_domain_accesses()

Hi,

As found by syzbot, there is an issue in the collect_domain_accesses() function. A WARN_ON_ONCE() can be triggered by processes sandboxed with Landlock and trying to do a link with a mount root directory. This is then not a security issue. Moreover, such directory can only be created with the open_tree(2) syscall by a process with CAP_SYS_ADMIN.

See https://lore.kernel.org/r/[email protected]

Regards,

Mickaël Salaün (2):
landlock: Fix d_parent walk selftests/landlock: Add layout1.refer_mount_root

 security/landlock/fs.c                     | 13 ++++++-
 tools/testing/selftests/landlock/fs_test.c | 45 ++++++++++++++++++++++
 2 files changed, 56 insertions(+), 2 deletions(-)

base-commit: 5bf9e57e634bd72a97b4b12c87186fc052a6a116

Signature · 1 line
2.45.0