Skip to content

Enable cap_net_admin to allow firewall rule tests to run#14384

Open
alanmcanonical wants to merge 1 commit intoComplianceAsCode:masterfrom
alanmcanonical:fw_cap
Open

Enable cap_net_admin to allow firewall rule tests to run#14384
alanmcanonical wants to merge 1 commit intoComplianceAsCode:masterfrom
alanmcanonical:fw_cap

Conversation

@alanmcanonical
Copy link
Contributor

Description:

  • Enable net_admin to allow firewall rule tests to run

Rationale:

  • Before enable that cap, testing xccdf_org.ssgproject.content_rule_set_nftables_table will get error even we ssh into container as root
+ echo 'Remediating rule 1/1: '\''xccdf_org.ssgproject.content_rule_set_nftables_table'\'''
Remediating rule 1/1: 'xccdf_org.ssgproject.content_rule_set_nftables_table'
+ dpkg-query --show '--showformat=${db:Status-Status}' nftables
+ grep -q '^installed$'
+ var_nftables_family=inet
+ var_nftables_table=filter
+ nft list table inet filter
Operation not permitted (you must be root)
netlink: Error: cache initialization failed: Operation not permitted
+ nft create table inet filter
Error: Could not process rule: Operation not permitted
create table inet filter
^^^^^^^^^^^^^^^^^^^^^^^^^

Signed-off-by: Alan Moore <alan.moore@canonical.com>
@openshift-ci
Copy link

openshift-ci bot commented Feb 12, 2026

Hi @alanmcanonical. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions 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-sigs/prow repository.

@alanmcanonical alanmcanonical changed the title Enable net_admin to allow firewall rule tests to run Enable cap_net_admin to allow firewall rule tests to run Feb 12, 2026
@Mab879 Mab879 added this to the 0.1.80 milestone Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test Used by openshift-ci bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants