test: cover DeviceAllow parsing

Add unit coverage for config_parse_device_allow().

Verify valid device paths and subsystem patterns, invalid
specifiers and rights, default permissions, and reset handling.

Follow-up for: 20d52ab60e
This commit is contained in:
dongshengyuan
2026-07-29 01:22:05 +09:00
committed by Yu Watanabe
parent 9b76949a47
commit 385623fee3
2 changed files with 66 additions and 3 deletions
-3
View File
@@ -2684,9 +2684,6 @@ SPDX-License-Identifier: LGPL-2.1-or-later
automatically support reverting back to older OS version images if newer ones
fail to boot.
- **test/:**
- add unit tests for config_parse_device_allow()
- The bind(AF_UNSPEC) construct (for resetting sockets to their initial state)
should be blocked in many cases because it punches holes in many sandboxes.