Red Hat Bugzilla – Bug 1501336
systemctl start ovs-vswitchd produces dac_override and dac_read_search AVC denials
Last modified: 2018-04-10 08:45:39 EDT
Description of problem: Running systemctl start ovs-vswitchd now produces AVC denials. Version-Release number of selected component (if applicable): openvswitch-2.7.2-1.git20170719.el7fdp.x86_64 How reproducible: Deterministic. Steps to Reproduce: 1. Enable repository with latest openvswitch. 2. yum install -y openvswitch 3. systemctl start ovs-vswitchd 4. Check audit.log. Actual results: [ 108.776211] type=1400 audit(1507804090.170:4): avc: denied { dac_override } for pid=11777 comm="ovs-ctl" capability=1 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:system_r:openvswitch_t:s0 tclass=capability [ 109.017566] type=1400 audit(1507804090.411:5): avc: denied { dac_read_search } for pid=11777 comm="ovs-ctl" capability=2 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:system_r:openvswitch_t:s0 tclass=capability [ 109.588777] type=1400 audit(1507804090.982:6): avc: denied { dac_override } for pid=11815 comm="ovs-ctl" capability=1 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:system_r:openvswitch_t:s0 tclass=capability [ 109.830164] type=1400 audit(1507804091.224:7): avc: denied { dac_read_search } for pid=11815 comm="ovs-ctl" capability=2 scontext=system_u:system_r:openvswitch_t:s0 tcontext=system_u:system_r:openvswitch_t:s0 tclass=capability Expected results: No AVC denials. Additional info:
Based on http://danwalsh.livejournal.com/69478.html, chances are the problem is not in the selinux-policy at all but in some packaging / ownership / permissions on some files.
We have these capabilities allowed in Fedora, it looks like this domain really needs it.
It did not need it on RHEL 7.4 -- what has changed since then?
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, 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-2018:0763