selftests/landlock: Test IOCTL with memfds
authorGünther Noack <gnoack@google.com>
Fri, 19 Apr 2024 16:11:14 +0000 (16:11 +0000)
committerMickaël Salaün <mic@digikod.net>
Mon, 13 May 2024 04:58:30 +0000 (06:58 +0200)
commitdd6d32afdf5f1869a8f543e8efdd191f7e4b0368
treee4f7823d006b8367d2a9e3ed5d039ebecc7c8cbe
parent3ecf19e56843a6fe65f109c773728c36d220f947
selftests/landlock: Test IOCTL with memfds

Because the LANDLOCK_ACCESS_FS_IOCTL_DEV right is associated with the
opened file during open(2), IOCTLs are supposed to work with files
which are opened by means other than open(2).

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