Bug 1235289

Summary: SELinux is preventing dnssec-trigger- from 'open' accesses on the file /etc/NetworkManager/NetworkManager.conf.
Product: [Fedora] Fedora Reporter: Tomáš Hozza <thozza>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 22CC: dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b90183741f72b3685f1e04931b9d2367fc5e7b78cfb010a11a1d01882be2dfde
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-26 09:09:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1182488    

Description Tomáš Hozza 2015-06-24 13:19:14 UTC
Description of problem:
dnssec-trigger-script checks NetworkManager configuration, which is located in /etc/NetworkManager/ to determine, if NM is handling the /etc/resolv.conf. Thus dnssec-trigger should be able to do that.
SELinux is preventing dnssec-trigger- from 'open' accesses on the file /etc/NetworkManager/NetworkManager.conf.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that dnssec-trigger- should be allowed open access on the NetworkManager.conf file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep dnssec-trigger- /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:dnssec_trigger_t:s0
Target Context                system_u:object_r:NetworkManager_etc_rw_t:s0
Target Objects                /etc/NetworkManager/NetworkManager.conf [ file ]
Source                        dnssec-trigger-
Source Path                   dnssec-trigger-
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           NetworkManager-1.0.2-1.fc22.x86_64
Policy RPM                    selinux-policy-3.13.1-128.1.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.0.4-301.fc22.x86_64 #1 SMP Thu
                              May 21 13:10:33 UTC 2015 x86_64 x86_64
Alert Count                   7
First Seen                    2015-06-15 09:19:52 CEST
Last Seen                     2015-06-17 15:58:29 CEST
Local ID                      84d55370-bbf5-403a-92c8-49eb5bae8c7f

Raw Audit Messages
type=AVC msg=audit(1434549509.505:3342): avc:  denied  { open } for  pid=23436 comm="dnssec-trigger-" path="/etc/NetworkManager/NetworkManager.conf" dev="dm-1" ino=5112381 scontext=system_u:system_r:dnssec_trigger_t:s0 tcontext=system_u:object_r:NetworkManager_etc_rw_t:s0 tclass=file permissive=1


Hash: dnssec-trigger-,dnssec_trigger_t,NetworkManager_etc_rw_t,file,open

Version-Release number of selected component:
selinux-policy-3.13.1-128.1.fc22.noarch

Additional info:
reporter:       libreport-2.6.0
hashmarkername: setroubleshoot
kernel:         4.0.5-300.fc22.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2015-06-26 09:09:42 UTC

*** This bug has been marked as a duplicate of bug 1231798 ***