selftests/landlock: Check IOCTL restrictions for named UNIX domain sockets
authorGünther Noack <gnoack@google.com>
Fri, 19 Apr 2024 16:11:17 +0000 (16:11 +0000)
committerMickaël Salaün <mic@digikod.net>
Mon, 13 May 2024 04:58:32 +0000 (06:58 +0200)
commitf83d51a5bdfe5ab56c27fd5dfe01c613b37e2dad
tree83b3f6a7a73998ca7ca109d224db99f8a29ef66e
parent56ffd377c7abe670ba5f024328e0c0fc0f49920c
selftests/landlock: Check IOCTL restrictions for named UNIX domain sockets

The LANDLOCK_ACCESS_FS_IOCTL_DEV right should have no effect on the use of
named UNIX domain sockets.

Suggested-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20240419161122.2023765-7-gnoack@google.com
[mic: Add missing stddef.h for offsetof()]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/fs_test.c