samples/landlock: Add support for LANDLOCK_ACCESS_FS_IOCTL_DEV
authorGünther Noack <gnoack@google.com>
Fri, 19 Apr 2024 16:11:19 +0000 (16:11 +0000)
committerMickaël Salaün <mic@digikod.net>
Mon, 13 May 2024 04:58:33 +0000 (06:58 +0200)
commitcd13738d44c9863ce54243fdcc2d228233f23355
treee1d4c3f85d0249ad665835aa1fca5eac1929d3e8
parentbce605e0cfa55da513b672500dd838be1ef41de7
samples/landlock: Add support for LANDLOCK_ACCESS_FS_IOCTL_DEV

Add IOCTL support to the Landlock sample tool.

The IOCTL right is grouped with the read-write rights in the sample
tool, as some IOCTL requests provide features that mutate state.

Signed-off-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20240419161122.2023765-9-gnoack@google.com
Signed-off-by: Mickaël Salaün <mic@digikod.net>
samples/landlock/sandboxer.c