Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1883980

Summary: selinux denials found in openvswitch-2.12.0-1.1.el8.x86_64
Product: Red Hat Enterprise Linux 8 Reporter: wes hayutin <whayutin>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: medium    
Version: 8.2CC: lvrabec, mmalik, plautrba, ssekidde
Target Milestone: rcKeywords: Triaged
Target Release: 8.4Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: An updated openvswitch package triggers AVC denials Consequence: AVC denials are audited and some features are not available. Fix: Permissions were added to selinux policy. Result: No AVC denials are audited and the software works flawlessly.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 14:58:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description wes hayutin 2020-09-30 16:31:32 UTC
Description of problem:

/var/log/audit/audit.log.1:type=AVC msg=audit(1601466017.169:2526): avc:  denied  { fowner } for  pid=28411 comm="install" capability=3  scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:system_r:openvswitch_t:s0 tclass=capability permissive=0

/var/log/audit/audit.log.1:type=AVC msg=audit(1601466017.448:2530): avc:  denied  { net_broadcast } for  pid=28499 comm="ovs-vswitchd" capability=11  scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:system_r:openvswitch_t:s0 tclass=capability permissive=0

https://447abb0a5a33f6ccc2ca-1a7fad683df57f0ce45663776e94aa58.ssl.cf2.rackcdn.com/752230/6/gate/tripleo-ci-centos-8-containers-multinode/dd8f53e/logs/undercloud/var/log/audit/audit.log


https://447abb0a5a33f6ccc2ca-1a7fad683df57f0ce45663776e94aa58.ssl.cf2.rackcdn.com/752230/6/gate/tripleo-ci-centos-8-containers-multinode/dd8f53e/logs/undercloud/var/log/audit/audit.log.1


Version-Release number of selected component (if applicable):

container-selinux-2.124.0-1.module_el8.2.0+304+65a3c2ac.noarch
libselinux-2.9-3.el8.i686
libselinux-2.9-3.el8.x86_64
libselinux-devel-2.9-3.el8.x86_64
libselinux-ruby-2.9-3.el8.x86_64
libselinux-utils-2.9-3.el8.x86_64
openstack-selinux-0.8.24-0.20200909100440.26243bf.el8.noarch
pcp-selinux-5.0.2-5.el8.x86_64
python3-libselinux-2.9-3.el8.x86_64
rpm-plugin-selinux-4.14.2-37.el8.x86_64
selinux-policy-3.14.3-41.el8_2.6.noarch
selinux-policy-targeted-3.14.3-41.el8_2.6.noarch

openvswitch-2.12.0-1.1.el8.x86_64




How reproducible:

A deployment of triple train branch on centos-8


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 wes hayutin 2020-09-30 16:33:45 UTC
/var/log/audit/audit.log.1:type=AVC msg=audit(1601466017.362:2529): avc:  denied  { map } for  pid=28489 comm="modprobe" path="/usr/lib/modules/4.18.0-193.19.1.el8_2.x86_64/modules.dep.bin" dev="vda1" ino=1643846 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:object_r:modules_dep_t:s0 tclass=file permissive=0

Comment 2 Lon Hohberger 2020-09-30 16:38:52 UTC
Note - these seem to be allowed in current Fedora policy.

Comment 3 Zdenek Pytela 2020-10-01 05:23:55 UTC
Hi,

Could you please attach the complete list of denials, including syscalls?

  # ausearch -i -m avc,user_avc,selinux_err,user_selinux_err

It is not a part of the linked audit logs, it may be required to remove an audit rule blocking it if there is any such as:

  # auditctl -d never,task

Comment 13 errata-xmlrpc 2021-05-18 14:58:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1639