# Re: \[PATCH v2 05/27\] selftests/landlock: Fix the openat() success check in fs\_bench

- From: sashiko-bot@kernel.org
- Date: 2026-11-04 21:14:11 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17864689
- Thread: https://ratatoskr.run/linux-security-module/2026/11/17864489/t.md

```text
> 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.
> 
> Signed-off-by: Günther Noack <redacted>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-selftests-refactor-v2-0-c52f23f7ce33@gmail.com?part=5

```
