Skip to content

Landlock fixes

Mickaël Salaün linux-doc linux-kselftest linux-security-module lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9landlock: Fix memory allocation error handlingsecurity/landlock/fs.c security/landlock/object.c+8 -20 replies
2/9landlock: Cosmetic fixes for filesystem managementsecurity/landlock/fs.c+12 -121 reply
3/9landlock: Enforce deterministic interleaved path rulessecurity/landlock/fs.c tools/testing/selftests/landlock/fs_test.c+115 -180 replies
4/9landlock: Always intersect access rightssecurity/landlock/ruleset.c tools/testing/selftests/landlock/fs_test.c+34 -240 replies
5/9landlock: Add extra checks when inserting a rulesecurity/landlock/ruleset.c+11 -60 replies
6/9selftests/landlock: Extend layout1.inherit_supersettools/testing/selftests/landlock/fs_test.c+8 -00 replies
7/9landlock: Clean up get_ruleset_from_fd()security/landlock/syscall.c+12 -100 replies
8/9landlock: Add help to enable Landlock as a stacked LSMsamples/landlock/sandboxer.c security/landlock/Kconfig+22 -30 replies
9/9landlock: Extend documentation about limitationsDocumentation/userspace-api/landlock.rst security/landlock/syscall.c+19 -00 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchJames Morris
1/9
2/9R-b
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/9] Landlock fixes

Hi,

This patch series fixes some issues and makes the Landlock filesystem access-control more consistent and deterministic when stacking multiple rulesets. This is checked by current and new tests. I also extended documentation and example to help users.

This series can be applied on top of
https://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git/log/?h=landlock_lsm

Regards,

Mickaël Salaün (9):
landlock: Fix memory allocation error handling
landlock: Cosmetic fixes for filesystem management
landlock: Enforce deterministic interleaved path rules
landlock: Always intersect access rights
landlock: Add extra checks when inserting a rule selftests/landlock: Extend layout1.inherit_superset
landlock: Clean up get_ruleset_from_fd()
landlock: Add help to enable Landlock as a stacked LSM
landlock: Extend documentation about limitations

 Documentation/userspace-api/landlock.rst   |  17 +++
 samples/landlock/sandboxer.c               |  21 +++-
 security/landlock/Kconfig                  |   4 +-
 security/landlock/fs.c                     |  67 +++++-----
 security/landlock/object.c                 |   5 +-
 security/landlock/ruleset.c                |  34 ++---
 security/landlock/syscall.c                |  24 ++--
 tools/testing/selftests/landlock/fs_test.c | 140 +++++++++++++++++++--
 8 files changed, 239 insertions(+), 73 deletions(-)

base-commit: 96b3198c4025c11347651700b77e45a686d78553

Signature · 1 line
2.29.2