selftests/landlock: Add tests for O_PATH
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:08:17 +0000 (18:08 +0200)
committerMickaël Salaün <mic@digikod.net>
Mon, 23 May 2022 11:27:50 +0000 (13:27 +0200)
commitd1788ad990874734341b05ab8ccb6448c09c6422
treefdd3881188215c6a97123969e9ec42f68f64f2ea
parent6a1bdd4a0bfc30fa4fa2b3a979e6525f28996db9
selftests/landlock: Add tests for O_PATH

The O_PATH flag is currently not handled by Landlock.  Let's make sure
this behavior will remain consistent with the same ruleset over time.

Cc: Shuah Khan <shuah@kernel.org>
Link: https://lore.kernel.org/r/20220506160820.524344-8-mic@digikod.net
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/fs_test.c