Skip to content

Refactor Landlock access mask management

Mickaël Salaün linux-security-module lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 6 repliesIn review
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3landlock: Refactor filesystem access mask managementsecurity/landlock/fs.c security/landlock/ruleset.h security/landlock/syscalls.c+74 -323 replies
2/3landlock: Refactor network access mask managementsecurity/landlock/net.c+6 -221 reply
3/3landlock: Optimize scope enforcementsecurity/landlock/task.c+15 -32 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchGünther Noack
1/3R-b
2/3R-b
3/3R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/3] Refactor Landlock access mask management

Hi,

To simplify code for new access types [1], add 2 new helpers:
- landlock_union_access_masks()
- landlock_get_applicable_domain()

This fourth version mainly rename these helpers.

The last patch uses these helpers to optimize Landlock scope management like with filesystem and network access checks.

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

Previous version:
v3: https://lore.kernel.org/r/[email protected]
v2: https://lore.kernel.org/r/[email protected]
v1: https://lore.kernel.org/r/[email protected]

Regards,

Mickaël Salaün (3):
landlock: Refactor filesystem access mask management
landlock: Refactor network access mask management
landlock: Optimize scope enforcement

 security/landlock/fs.c       | 31 ++++-----------
 security/landlock/net.c      | 28 +++-----------
 security/landlock/ruleset.h  | 73 ++++++++++++++++++++++++++++++++----
 security/landlock/syscalls.c |  2 +-
 security/landlock/task.c     | 18 +++++++--
 5 files changed, 95 insertions(+), 57 deletions(-)

base-commit: dad2f20715163e80aab284fb092efc8c18bf97c7

Signature · 1 line
2.47.0