# Re: \[PATCH v2 07/27\] selftests/landlock: Fix the ruleset\_fd check in empty\_or\_same\_ruleset

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

```text
> ASSERT_LE(-1, ruleset_fd) is always true, so the test does not check
> that creating a ruleset with an empty handled_access_fs fails.  Check
> for -1 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=7

```
