Bug 725420

Summary: SELinux prevents NetworkManager to create new settings to connect to WiFi
Product: [Fedora] Fedora Reporter: Sergio Belkin <sergiobelkin>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dcbw, gregor
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 16:02:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sergio Belkin 2011-07-25 12:45:19 UTC
Description of problem:

SELinux is preventing /usr/sbin/NetworkManager from 'getattr' accesses on the file /home/sergio/.kde/share/apps/networkmanagement/certificates/{b0fcb655-7d8a-488e-b434-3782b4240a47}.

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

If you believe that NetworkManager should be allowed getattr access on the {b0fcb655-7d8a-488e-b434-3782b4240a47} 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 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:config_home_t:s0
Target Objects                /home/sergio/.kde/share/apps/networkmanagement/cer
                              tificates/{b0fcb655-7d8a-488e-b434-3782b4240a47} [
                              file ]
Source                        NetworkManager
Source Path                   /usr/sbin/NetworkManager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-34.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux sebelk.lenovo 2.6.38.8-35.fc15.x86_64 #1 SMP
                              Wed Jul 6 13:58:54 UTC 2011 x86_64 x86_64
Alert Count                   8
First Seen                    Mon 25 Jul 2011 09:23:40 AM ART
Last Seen                     Mon 25 Jul 2011 09:33:46 AM ART
Local ID                      e35abddf-63c4-49ae-bf19-1db7f7b32cf1

Raw Audit Messages
type=AVC msg=audit(1311597226.613:61): avc:  denied  { getattr } for  pid=818 comm="NetworkManager" path="/home/sergio/.kde/share/apps/networkmanagement/certificates/{b0fcb655-7d8a-488e-b434-3782b4240a47}" dev=dm-2 ino=4463061 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=file


Hash: NetworkManager,NetworkManager_t,config_home_t,file,getattr

audit2allow

#============= NetworkManager_t ==============
#!!!! This avc is allowed in the current policy

allow NetworkManager_t config_home_t:file getattr;

audit2allow -R

#============= NetworkManager_t ==============
#!!!! This avc is allowed in the current policy

allow NetworkManager_t config_home_t:file getattr;




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Try to connect to a new WiFi network
2.Create the settings for it
3.Try to connect to it


  
Actual results:

SELinux complains about it and can't connect

The same it occurs if I run restorecon -R -v /home/sergio

The only way is to create a new policy as SELinux troubleshooter suggests.

Expected results:

It should connect
Additional info:

Comment 1 Gregor Tätzner 2011-08-29 18:31:15 UTC
I can confirm it. but still NM is able to connect to a WPA network

SELinux is preventing NetworkManager from getattr access on the file /home/greg/.kde/share/apps/networkmanagement/certificates/{1fbcacc2-a943-4416-9cda-8b604af0276e}.

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

If you believe that NetworkManager should be allowed getattr access on the {1fbcacc2-a943-4416-9cda-8b604af0276e} 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 NetworkManager /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Comment 2 Fedora End Of Life 2012-08-07 16:02:55 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping