Bug 958379 - SELinux is preventing /usr/sbin/NetworkManager from 'use' accesses on the fd /run/systemd/inhibit/1.ref.
Summary: SELinux is preventing /usr/sbin/NetworkManager from 'use' accesses on the fd ...
Keywords:
Status: CLOSED DUPLICATE of bug 955388
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6a078436484beec9fb9d5aa36df...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-01 09:03 UTC by Moez Roy
Modified: 2013-05-03 09:09 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-03 09:09:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Moez Roy 2013-05-01 09:03:45 UTC
Description of problem:
SELinux is preventing /usr/sbin/NetworkManager from 'use' accesses on the fd /run/systemd/inhibit/1.ref.

*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************

If you want to allow all domains to use other domains file descriptors
Then you must tell SELinux about this by enabling the 'domain_fd_use' boolean.
You can read 'None' man page for more details.
Do
setsebool -P domain_fd_use 1

*****  Plugin catchall (11.6 confidence) suggests  ***************************

If you believe that NetworkManager should be allowed use access on the 1.ref fd 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 gdbus /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                system_u:system_r:systemd_logind_t:s0
Target Objects                /run/systemd/inhibit/1.ref [ fd ]
Source                        gdbus
Source Path                   /usr/sbin/NetworkManager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           NetworkManager-0.9.8.1-1.git20130327.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-34.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.0-301.fc19.x86_64 #1 SMP Mon
                              Apr 29 13:44:05 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-05-01 01:44:16 PDT
Last Seen                     2013-05-01 01:44:16 PDT
Local ID                      84e49d8b-c29a-44db-baa8-347c166b3652

Raw Audit Messages
type=AVC msg=audit(1367397856.202:57): avc:  denied  { use } for  pid=746 comm="gdbus" path="/run/systemd/inhibit/1.ref" dev="tmpfs" ino=15423 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:system_r:systemd_logind_t:s0 tclass=fd


type=SYSCALL msg=audit(1367397856.202:57): arch=x86_64 syscall=recvmsg success=yes exit=EBUSY a0=8 a1=7fbb46f39a40 a2=40000000 a3=0 items=0 ppid=1 pid=746 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=gdbus exe=/usr/sbin/NetworkManager subj=system_u:system_r:NetworkManager_t:s0 key=(null)

Hash: gdbus,NetworkManager_t,systemd_logind_t,fd,use

audit2allow

#============= NetworkManager_t ==============

#!!!! This avc can be allowed using the boolean 'domain_fd_use'
allow NetworkManager_t systemd_logind_t:fd use;

audit2allow -R
require {
	type NetworkManager_t;
}

#============= NetworkManager_t ==============
systemd_use_fds_logind(NetworkManager_t)


Additional info:
hashmarkername: setroubleshoot
kernel:         3.9.0-301.fc19.x86_64
type:           libreport

Potential duplicate: bug 955388

Comment 1 Miroslav Grepl 2013-05-03 09:09:33 UTC

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


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