test(oci-cfg): expand unit tests for oci cfg builder mounts, env and security rules - #1923
test(oci-cfg): expand unit tests for oci cfg builder mounts, env and security rules#1923elephone-184 wants to merge 2 commits into
Conversation
…security rules Add unit tests covering: - ContainerCfgBuilder environment variable overwriting, preservation, and maps - UID/GID mapping with multiple subuid/subgid ranges - Extra mounts insertion and preservation of bind mount options - Timezone and DNS resolv.conf mounting mechanisms - OverlayFS mode root readonly flags and configuration - Annotation propagation for app ID, Wayland sockets, and PID - Media and accessibility socket mounts (Pipewire, AtSpi) - Security capabilities bounding and effective sets - Masked paths and readonly kernel / sys paths security protection
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: elephone-184 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @elephone-184. Thanks for your PR. I'm waiting for a OpenAtom-Linyaps member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
Summary
Expands unit test coverage for
linglong::oci-cfg-generatorssubsystem (>525 lines added):ContainerCfgBuilder: environment variable deduplication, map ingestion, and explicit overwrite semantics.ContainerCfgBuilder: multi-range subuid/subgid mappings across user namespaces.ContainerCfgBuilder: ordering integrity and bind options for user-supplied extra mounts.ContainerCfgBuilder: timezone environment propagation and DNS resolv.conf bind mounting.ContainerCfgBuilder: overlay mode root filesystem readonly configuration.ContainerCfgBuilder: security capabilities bounding, permitted, and effective sets.ContainerCfgBuilder: kernel/proc,/sys, and dangerous path masking and readonly protection.ContainerCfgBuilder: X11/Wayland display sockets, Pipewire, and AtSpi accessibility endpoints.Test Plan
ll-testsCMake configuration.