]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:25:17 +0000 (09:25 +0200)
commit6f68eab4dadf28b80db4c07901aab38b7b7e9f3c
treeff3660c51e1a74c73af40eb5d626b3e8d55c0390
parentcd5730c93aee16e222f6f26a37736856a34d1fe7
selftests/landlock: Add tests for O_PATH

BugLink: https://bugs.launchpad.net/bugs/1981864
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/testing/selftests/landlock/fs_test.c