Bug 800876

Summary: SELinux is preventing /usr/sbin/NetworkManager from read access on the None sessions.
Product: [Fedora] Fedora Reporter: Stef Walter <stefw>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-07 12:53:32 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:

Description Stef Walter 2012-03-07 12:35:32 UTC
SELinux is preventing /usr/sbin/NetworkManager from read access on the None sessions.

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

If you believe that NetworkManager should be allowed read access on the sessions <Unknown> 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 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                system_u:object_r:systemd_logind_sessions_t:s0
Target Objects                sessions [ None ]
Source                        NetworkManager
Source Path                   /usr/sbin/NetworkManager
Port                          <Unknown>
Host                          stef-desktop.thewalter.lan
Source RPM Packages           NetworkManager-0.9.3-0.2.git20120215.fc17.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.10.0-89.fc17.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     stef-desktop.thewalter.lan
Platform                      Linux stef-desktop.thewalter.lan
                              3.3.0-0.rc3.git7.2.fc17.x86_64 #1 SMP Fri Feb 17
                              18:55:53 UTC 2012 x86_64 x86_64
Alert Count                   1
First Seen                    2012-03-07T08:10:28 CET
Last Seen                     2012-03-07T08:10:28 CET
Local ID                      5e00deef-c30f-470c-8b6e-8712cb6d7ba0

Raw Audit Messages
type=AVC msg=audit(1331104228.916:25): avc:  denied  { read } for  pid=523 comm="NetworkManager" name="sessions" dev="tmpfs" ino=11841 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:systemd_logind_sessions_t:s0 tclass=dirnode=stef-desktop.thewalter.lan type=SYSCALL msg=audit(1331104228.916:25): arch=c000003e syscall=254 success=no exit=-13 a0=b a1=7f4b288abcda a2=280 a3=7fffeb608730 items=0 ppid=1 pid=523 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,systemd_logind_sessions_t,None,read

audit2allow


audit2allow -R

Comment 1 Miroslav Grepl 2012-03-07 12:53:32 UTC
Just update your policy.