Bug 1271933 - SELinux is preventing /usr/sbin/NetworkManager from 'unlink' accesses on the file /etc/resolv.conf.
SELinux is preventing /usr/sbin/NetworkManager from 'unlink' accesses on the ...
Status: CLOSED DUPLICATE of bug 1271924
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2015-10-15 02:27 EDT by Gil Forcada
Modified: 2015-10-16 10:49 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-10-16 10:49:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gil Forcada 2015-10-15 02:27:40 EDT
Description of problem:
SELinux is preventing /usr/sbin/NetworkManager from 'unlink' accesses on the file /etc/resolv.conf.

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

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

Additional Information:
Source Context                system_u:system_r:NetworkManager_t:s0
Target Context                unconfined_u:object_r:home_bin_t:s0
Target Objects                /etc/resolv.conf [ file ]
Source                        NetworkManager
Source Path                   /usr/sbin/NetworkManager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           NetworkManager-1.0.6-5.fc22.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.13.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.1.7-200.fc22.x86_64 #1 SMP Mon
                              Sep 14 20:19:24 UTC 2015 x86_64 x86_64
Alert Count                   2
First Seen                    2015-10-15 00:16:44 EEST
Last Seen                     2015-10-15 09:17:19 EEST
Local ID                      1f08f95f-56ab-4d97-859d-7152a1f18fda

Raw Audit Messages
type=AVC msg=audit(1444889839.46:648): avc:  denied  { unlink } for  pid=905 comm="NetworkManager" name="resolv.conf" dev="sdb1" ino=1048833 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:object_r:home_bin_t:s0 tclass=file permissive=0

type=SYSCALL msg=audit(1444889839.46:648): arch=x86_64 syscall=rename success=no exit=EACCES a0=55604913dc70 a1=5560491b58a0 a2=1 a3=2072657672657365 items=0 ppid=1 pid=905 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=NetworkManager exe=/usr/sbin/NetworkManager subj=system_u:system_r:NetworkManager_t:s0 key=(null)

Hash: NetworkManager,NetworkManager_t,home_bin_t,file,unlink

Version-Release number of selected component:

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.1.7-200.fc22.x86_64
type:           libreport
Comment 1 Daniel Walsh 2015-10-16 10:49:24 EDT

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

Note You need to log in before you can comment on or make changes to this bug.