Bug 955388 - 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 NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6a078436484beec9fb9d5aa36df...
: 958379 958380 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-22 23:49 UTC by Moez Roy
Modified: 2013-05-03 09:09 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-23 17:15:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Moez Roy 2013-04-22 23:49:43 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.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-91.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.8.8-202.fc18.x86_64 #1 SMP Wed
                              Apr 17 23:25:17 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-04-22 16:22:00 PDT
Last Seen                     2013-04-22 16:22:00 PDT
Local ID                      d470547c-9d50-41e8-a88a-b978888b2d87

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


type=SYSCALL msg=audit(1366672920.845:159): arch=x86_64 syscall=recvmsg success=yes exit=EBUSY a0=8 a1=7fe507fc09f0 a2=40000000 a3=40 items=0 ppid=1 pid=891 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.8.8-202.fc18.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-04-23 17:15:55 UTC
# setsebool -P domain_fd_use 1

Did you modify this boolean?

Comment 2 Miroslav Grepl 2013-05-03 09:09:30 UTC
*** Bug 958380 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2013-05-03 09:09:33 UTC
*** Bug 958379 has been marked as a duplicate of this bug. ***


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