]> git.baikalelectronics.ru Git - kernel.git/commit
samples/landlock: Add support for file reparenting
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:10:59 +0000 (18:10 +0200)
committerMickaël Salaün <mic@digikod.net>
Mon, 23 May 2022 11:28:00 +0000 (13:28 +0200)
commitee3a7a4d7e6a0858eba0374b11ce9df87d4d5bb0
tree2b890621d9978d414c76f83952e29608833b88c1
parent5cf7c0327f57a6e477dd1adec8266890168b7062
samples/landlock: Add support for file reparenting

Add LANDLOCK_ACCESS_FS_REFER to the "roughly write" access rights and
leverage the Landlock ABI version to only try to enforce it if it is
supported by the running kernel.

Reviewed-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Link: https://lore.kernel.org/r/20220506161102.525323-10-mic@digikod.net
samples/landlock/sandboxer.c