documentation_complete: true


title: 'Verify Group Who Owns The OpenShift Open vSwitch Files'

description: '{{{ describe_file_group_owner(file="/etc/openvswitch/.*", group="root") }}}'

rationale: |-
    CNI (Container Network Interface) files consist of a specification and libraries for
    writing plugins to configure network interfaces in Linux containers, along with a number
    of supported plugins. Allowing writeable access to the files could allow an attacker to modify
    the networking configuration potentially adding a rogue network connection.

severity: medium

#identifiers:
#    cce@ocp4: 82172-8

references:
    cis@ocp4: 1.1.10

ocil_clause: '{{{ ocil_clause_file_group_owner(file="/etc/openvswitch/.*", group="root") }}}'

ocil: |-
    {{{ ocil_file_group_owner(file="/etc/origin/openvswitch/.*", group="root") }}}

template:
    name: file_groupowner
    vars:
        filepath: /etc/openvswitch/
        file_regex: ^.*$
        gid_or_name: '0'
