[PATCH v2 02/27] selftests/landlock: Propagate EXPECT failures from forked children
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Wed Nov 4 21:14:10 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.
>
> Signed-off-by: Günther Noack <gnoack3000 at gmail.com>
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=2
More information about the Linux-security-module-archive
mailing list