Landlock update for v7.1-rc1
Hi,
This PR adds a new Landlock access right for pathname UNIX domain sockets thanks to a new LSM hook, and a few fixes.
Please pull these changes for v7.1-rc1 . These commits merge cleanly with your master branch. Kernel changes have been tested in the latest linux-next releases for some weeks, and since this week for the LOG_SUBDOMAINS_OFF fixes.
Test coverage for security/landlock is 91.1% of 2152 lines according to LLVM 21, and it was 91.0% of 2105 lines before this PR.
Regards,
Mickaël
--
The following changes since commit 7aaa8047eafd0bd628065b15757d9b48c5f9c07d:
Linux 7.0-rc6 (2026-03-29 15:40:00 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git tags/landlock-7.1-rc1
for you to fetch changes up to 3457a5ccacd34fdd5ebd3a4745e721b5a1239690:
landlock: Document fallocate(2) as another truncation corner case (2026-04-07 18:51:11 +0200)
----------------------------------------------------------------
Landlock update for v7.1-rc1
----------------------------------------------------------------
Günther Noack (11):
landlock: Use mem_is_zero() in is_layer_masks_allowed()
landlock: Control pathname UNIX domain socket resolution by path
landlock: Clarify BUILD_BUG_ON check in scoping logic samples/landlock: Add support for named UNIX domain socket restrictions selftests/landlock: Replace access_fs_16 with ACCESS_ALL in fs_test selftests/landlock: Test LANDLOCK_ACCESS_FS_RESOLVE_UNIX selftests/landlock: Audit test for LANDLOCK_ACCESS_FS_RESOLVE_UNIX selftests/landlock: Check that coredump sockets stay unrestricted selftests/landlock: Simplify ruleset creation and enforcement in fs_test
landlock: Document FS access right for pathname UNIX sockets
landlock: Document fallocate(2) as another truncation corner case
Justin Suess (1):
lsm: Add LSM hook security_unix_find
Mickaël Salaün (11):
landlock: Fix LOG_SUBDOMAINS_OFF inheritance across fork()
landlock: Allow TSYNC with LOG_SUBDOMAINS_OFF and fd=-1 selftests/landlock: Fix snprintf truncation checks in audit helpers selftests/landlock: Fix socket file descriptor leaks in audit helpers selftests/landlock: Drain stale audit records on init selftests/landlock: Skip stale records in audit_match_record() selftests/landlock: Fix format warning for __u64 in net_test
landlock: Add missing kernel-doc "Return:" sections
landlock: Improve kernel-doc "Return:" section consistency
landlock: Fix formatting in tsync.c
landlock: Fix kernel-doc warning for pointer-to-array parameters
Documentation/security/landlock.rst | 42 +- Documentation/userspace-api/landlock.rst | 22 +- include/linux/lsm_hook_defs.h | 5 + include/linux/security.h | 11 + include/uapi/linux/landlock.h | 25 +- net/unix/af_unix.c | 10 +- samples/landlock/sandboxer.c | 12 +- security/landlock/access.h | 4 +- security/landlock/audit.c | 1 + security/landlock/cred.c | 6 +- security/landlock/cred.h | 2 +- security/landlock/domain.c | 6 +- security/landlock/fs.c | 163 ++- security/landlock/id.c | 2 +- security/landlock/limits.h | 2 +- security/landlock/ruleset.c | 14 +- security/landlock/ruleset.h | 2 +- security/landlock/syscalls.c | 33 +- security/landlock/task.c | 22 +- security/landlock/tsync.c | 124 +- security/security.c | 20 + tools/testing/selftests/landlock/audit.h | 133 +- tools/testing/selftests/landlock/audit_test.c | 357 +++++- tools/testing/selftests/landlock/base_test.c | 2 +- tools/testing/selftests/landlock/fs_test.c | 1343 +++++++++++--------- tools/testing/selftests/landlock/net_test.c | 2 +- tools/testing/selftests/landlock/ptrace_test.c | 1 - .../selftests/landlock/scoped_abstract_unix_test.c | 1 - tools/testing/selftests/landlock/tsync_test.c | 77 ++ 29 files changed, 1650 insertions(+), 794 deletions(-)
The pull request you sent on Thu, 9 Apr 2026 19:31:24 +0200:
The pull request you sent on Thu, 9 Apr 2026 19:31:24 +0200:
Quoted 1 line
https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git tags/landlock-7.1-rc1
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/b8f82cb0d84d00c04cdbdce42f67df71b8507e8b
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html