]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/landlock: Add tests for quiet flag with net rules
authorTingmao Wang <m@maowtm.org>
Fri, 12 Jun 2026 01:48:53 +0000 (02:48 +0100)
committerMickaël Salaün <mic@digikod.net>
Sun, 14 Jun 2026 18:17:23 +0000 (20:17 +0200)
commit624c96268bb3402bb21d889069bb4aff5d4d7aec
tree73ca3800d39966593f58cbbfe088e596afdcd252
parentc7d1c54edfd530d86cce798d46a1f058cc473e65
selftests/landlock: Add tests for quiet flag with net rules

Tests that:
- Quiet flag works on network rules
- Quiet flag applied to unrelated ports has no effect
- Denied access not in quiet_access_net is still logged

This is not as thorough as the fs tests, but given the shared logic it
should be sufficient.  There is also no "optional" access for network
rules.

Signed-off-by: Tingmao Wang <m@maowtm.org>
Assisted-by: GitHub-Copilot:claude-opus-4.7 copilot-review
Link: https://patch.msgid.link/364fbd08081318d64bc23049d3a7721f0a3a3624.1781228815.git.m@maowtm.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
tools/testing/selftests/landlock/net_test.c