[PATCH 02/27] selftests/landlock: Propagate EXPECT failures from forked children

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


> A failed ASSERT in a forked child calls abort(), so the parent sees
> the child die from a signal and the test fails.  A failed EXPECT only
> sets _metadata->exit_code, and a child that exits with a fixed status
> of 0 hides that failure from the parent.  The child in
> trace_fown.deny_scope_fown has this problem.
> 
> Exit with _metadata->exit_code in that child.  Do the same in the
> audit.log_subdomains_off_fork children.  They only use ASSERT for now,
> but this keeps them correct when a check becomes an EXPECT.
> 
> 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=2




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