Bug 1020065

Summary: SELinux is preventing /usr/sbin/NetworkManager from 'search' accesses on the directory ppp.
Product: [Fedora] Fedora Reporter: mouhieddine
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dominick.grift, dwalsh, lvrabec, mgrepl, mouhieddine
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e844c76b8609a78e8fb6809cdd628fad3a2024d71bd137d30a9d1930b57cbf6e
Fixed In Version: selinux-policy-3.12.1-74.11.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-05 02:52:27 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 mouhieddine 2013-10-16 23:41:57 UTC
Description of problem:
SELinux is preventing /usr/sbin/NetworkManager from 'search' accesses on the directory ppp.

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

If you believe that NetworkManager should be allowed search access on the ppp directory 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:pppd_var_run_t:s0
Target Objects                ppp [ dir ]
Source                        NetworkManager
Source Path                   /usr/sbin/NetworkManager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           NetworkManager-0.9.8.2-9.git20130709.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-74.9.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.4-201.fc19.x86_64 #1 SMP Thu
                              Oct 10 14:11:18 UTC 2013 x86_64 x86_64
Alert Count                   8
First Seen                    2013-10-16 17:37:26 BST
Last Seen                     2013-10-17 00:38:45 BST
Local ID                      581262fd-efde-471b-99f0-f9c9a79b1c0a

Raw Audit Messages
type=AVC msg=audit(1381966725.163:23): avc:  denied  { search } for  pid=672 comm="NetworkManager" name="ppp" dev="tmpfs" ino=14940 scontext=system_u:system_r:NetworkManager_t:s0 tcontext=system_u:object_r:pppd_var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1381966725.163:23): arch=x86_64 syscall=stat success=no exit=EACCES a0=7f0fd8ec6376 a1=7fff917b6010 a2=7fff917b6010 a3=7f0fdd01503c items=0 ppid=1 pid=672 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=NetworkManager exe=/usr/sbin/NetworkManager subj=system_u:system_r:NetworkManager_t:s0 key=(null)

Hash: NetworkManager,NetworkManager_t,pppd_var_run_t,dir,search

Additional info:
reporter:       libreport-2.1.8
hashmarkername: setroubleshoot
kernel:         3.11.4-201.fc19.x86_64
type:           libreport

Comment 1 Lukas Vrabec 2013-10-17 08:32:34 UTC
fixed.

commit a23dda7f31241738a56a6bb8aaf4dfdd534dd8d6
Author: Lukas Vrabec <lvrabec>
Date:   Thu Oct 17 10:21:26 2013 +0200

    Update ppp_manage_pid_files interface

Comment 2 Fedora Update System 2013-10-23 11:38:06 UTC
selinux-policy-3.12.1-74.11.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.11.fc19

Comment 3 Fedora Update System 2013-10-24 00:52:44 UTC
Package selinux-policy-3.12.1-74.11.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-74.11.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19794/selinux-policy-3.12.1-74.11.fc19
then log in and leave karma (feedback).

Comment 4 mouhieddine 2013-11-02 00:00:21 UTC
I get this error bash: ligne1: selinux-policy-3.12.1-74.11.fc19 : commande introuvable 

I get asked if I want to install some packages. it keeps installing until I get that.  btw "commande introuvable" means something like command not found.

Comment 5 Fedora Update System 2013-11-05 02:52:27 UTC
selinux-policy-3.12.1-74.11.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.