]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setpriv: add landlock support
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 6 Dec 2023 17:39:51 +0000 (18:39 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 11 Dec 2023 19:52:20 +0000 (20:52 +0100)
commitae015d713895c4d72589a656a9ca359ede3d5073
treef4394ef10da9ce899d85151dd013bf5e7e81e55f
parent9abd5e4b99fb2d78d8dbbb9144aef68972c65e83
setpriv: add landlock support

landlock [0] is a Linux stackable LSM that can be used by unprivileged
processes to build a sandbox around them.

With support for landlock in setpriv users can easily construct a
sandbox on-the-fly when executing programs.

[0] https://landlock.io/

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
13 files changed:
bash-completion/setpriv
configure.ac
meson.build
sys-utils/Makemodule.am
sys-utils/meson.build
sys-utils/setpriv-landlock.c [new file with mode: 0644]
sys-utils/setpriv-landlock.h [new file with mode: 0644]
sys-utils/setpriv.1.adoc
sys-utils/setpriv.c
tests/commands.sh
tests/expected/setpriv/landlock-nothing-allowed [new file with mode: 0644]
tests/expected/setpriv/landlock-partial-access-fail [new file with mode: 0644]
tests/ts/setpriv/landlock [new file with mode: 0755]