[PATCH 07/27] selftests/landlock: Fix the ruleset_fd check in empty_or_same_ruleset

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


> 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.
> 
> 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=7




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