[PATCH 05/27] selftests/landlock: Fix the openat() success check in fs_bench

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Oct 8 14:33:35 UTC 2026


> fs_bench expects openat() to be denied when Landlock is enabled, but
> only treats a returned FD of 0 as success.  Any other valid FD falls
> through to the errno check, which then reports a stale errno value.
> 
> Check for any non-negative FD instead.
> 
> Assisted-by: LLM
> Signed-off-by: Günther Noack <gnoack3000 at gmail.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261008142604.39107-2-gnoack3000@gmail.com?part=5




More information about the Linux-security-module-archive mailing list