]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:26:23 +0000 (10:26 +0200)
commit4f8355cf5dc52070bf0c6de0723200e0e5849cc5
tree936b7fa6f207a44e1c613335bc5570dce6bed3ad
parent8736f54685b4d327bc40c53281a5402b35f083ad
selftests/landlock: Add tests for O_PATH

commit d1788ad990874734341b05ab8ccb6448c09c6422 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/landlock/fs_test.c