Skip to content

Use scoped guards on Landlock

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4landlock: Use scoped guards for rulesetsecurity/landlock/ruleset.c security/landlock/ruleset.h security/landlock/syscalls.c+23 -291 reply
2/4landlock: Use scoped guards for ruleset in landlock_add_rule()security/landlock/syscalls.c+4 -101 reply
3/4locking/mutex: Add mutex_nest_1() scoped guardinclude/linux/mutex.h+2 -00 replies
4/4landlock: Use scoped guards for mutexsecurity/landlock/ruleset.c+21 -311 reply

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

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

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/4] Use scoped guards on Landlock

Using scoped guards helps simplifying error handling by removing goto statements.

Only one macro was missing for mutex_lock() calls with SINGLE_DEPTH_NESTING.

Regards,

Mickaël Salaün (4):
landlock: Use scoped guards for ruleset
landlock: Use scoped guards for ruleset in landlock_add_rule() locking/mutex: Add mutex_nest_1() scoped guard
landlock: Use scoped guards for mutex

 include/linux/mutex.h        |  2 +
 security/landlock/ruleset.c  | 74 +++++++++++++++---------------------
 security/landlock/ruleset.h  |  5 +++
 security/landlock/syscalls.c | 39 ++++++-------------
 4 files changed, 50 insertions(+), 70 deletions(-)

base-commit: 9d89551994a430b50c4fffcb1e617a057fa76e20

Signature · 1 line
2.47.1