Skip to content

devices: test the longest filter rule block - #101

Open
kolyshkin wants to merge 1 commit into
opencontainers:mainfrom
kolyshkin:devices-test-max-block
Open

kolyshkin wants to merge 1 commit into
opencontainers:mainfrom
kolyshkin:devices-test-max-block

Conversation

@kolyshkin

@kolyshkin kolyshkin commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Existing filter tests cover restricted access only with wildcard device
numbers, and specific device numbers only with "rwm" access, so the
longest (eight-instruction) rule block, with four jumps, is never
generated.

Change the denied device in TestDeviceFilter_PrivilegedExceptSingleDevice
to use restricted access, so the test covers that case.

This is a smaller alternative to #100, addressing the same review comment
from #94.

Existing filter tests cover restricted access only with wildcard device
numbers, and specific device numbers only with "rwm" access, so the
longest (eight-instruction) rule block, with four jumps, is never
generated.

Change the denied device in TestDeviceFilter_PrivilegedExceptSingleDevice
to use restricted access, so the test covers that case.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant