From: "Mickaël Salaün" <mic@digikod.net>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Mickaël Salaün" <mic@digikod.net>,
"Ba Jing" <bajing@cmss.chinamobile.com>,
"Günther Noack" <gnoack@google.com>,
"Matthieu Buffet" <matthieu@buffet.re>,
"Mikhail Ivanov" <ivanov.mikhail1@huawei-partners.com>,
"Shervin Oloumi" <enlightened@chromium.org>,
"Zichen Xie" <zichenxie0106@gmail.com>,
linux-kernel@vger.kernel.org,
linux-security-module@vger.kernel.org
Subject: [GIT PULL] Landlock updates for v6.14
Date: Wed, 22 Jan 2025 17:56:26 +0100 [thread overview]
Message-ID: <20250122165626.331786-1-mic@digikod.net> (raw)
Hi Linus,
This PR mostly factors out some Landlock code and prepares for upcoming audit
support. Because weird files might be visible after filesystem corruption,
Landlock now properly handles weird files too. A few sample and test issues
are also fixed.
Please pull these changes for v6.14-rc1 . These commits merge cleanly with
your master branch. The kernel code has been tested in the latest linux-next
releases for a few weeks and rebased to update commit messages.
Test coverage for security/landlock is 93.4% of 1124 lines according to
gcc/gcov-14, and it was 92.7% of 1118 lines before this PR.
Regards,
Mickaël
--
The following changes since commit 9d89551994a430b50c4fffcb1e617a057fa76e20:
Linux 6.13-rc6 (2025-01-05 14:13:40 -0800)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git tags/landlock-6.14-rc1
for you to fetch changes up to 2a794ee613617b5d8fd978b7ef08d64aa07ff2e6:
selftests/landlock: Add layout1.umount_sandboxer tests (2025-01-17 19:05:38 +0100)
----------------------------------------------------------------
Landlock updates for v6.14-rc1
----------------------------------------------------------------
Ba Jing (1):
selftests/landlock: Remove unused macros in ptrace_test.c
Mickaël Salaün (14):
landlock: Handle weird files
landlock: Constify get_mode_access()
landlock: Use scoped guards for ruleset
landlock: Use scoped guards for ruleset in landlock_add_rule()
selftests/landlock: Fix build with non-default pthread linking
landlock: Factor out check_access_path()
landlock: Move access types
landlock: Simplify initially denied access rights
landlock: Align partial refer access checks with final ones
selftests/landlock: Add test to check partial access in a mount tree
landlock: Optimize file path walks and prepare for audit support
selftests/landlock: Fix error message
selftests/landlock: Add wrappers.h
selftests/landlock: Add layout1.umount_sandboxer tests
Zichen Xie (1):
samples/landlock: Fix possible NULL dereference in parse_path()
samples/landlock/sandboxer.c | 7 +
security/landlock/access.h | 77 +++++++++++
security/landlock/fs.c | 114 ++++++++--------
security/landlock/fs.h | 1 +
security/landlock/ruleset.c | 26 ++--
security/landlock/ruleset.h | 52 +------
security/landlock/syscalls.c | 39 ++----
tools/testing/selftests/landlock/Makefile | 6 +-
tools/testing/selftests/landlock/common.h | 38 +-----
tools/testing/selftests/landlock/fs_test.c | 151 +++++++++++++++++++--
tools/testing/selftests/landlock/ptrace_test.c | 2 -
.../selftests/landlock/sandbox-and-launch.c | 82 +++++++++++
tools/testing/selftests/landlock/wait-pipe.c | 42 ++++++
tools/testing/selftests/landlock/wrappers.h | 47 +++++++
14 files changed, 489 insertions(+), 195 deletions(-)
create mode 100644 security/landlock/access.h
create mode 100644 tools/testing/selftests/landlock/sandbox-and-launch.c
create mode 100644 tools/testing/selftests/landlock/wait-pipe.c
create mode 100644 tools/testing/selftests/landlock/wrappers.h
next reply other threads:[~2025-01-22 16:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-22 16:56 Mickaël Salaün [this message]
2025-01-23 4:49 ` pr-tracker-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250122165626.331786-1-mic@digikod.net \
--to=mic@digikod.net \
--cc=bajing@cmss.chinamobile.com \
--cc=enlightened@chromium.org \
--cc=gnoack@google.com \
--cc=ivanov.mikhail1@huawei-partners.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=matthieu@buffet.re \
--cc=torvalds@linux-foundation.org \
--cc=zichenxie0106@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®