Bug 749967

Summary: SELinux is preventing /usr/sbin/pptp from 'read' accesses on the file unix.
Product: [Fedora] Fedora Reporter: Pavel Šimerda (pavlix) <psimerda>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:feb9844c0e7bf6f43a6e59849d3b318036ff8a84caf0db1ad3da82e8edd826dc
Fixed In Version: selinux-policy-3.9.16-48.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-04 02:38:25 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 Pavel Šimerda (pavlix) 2011-10-29 09:59:24 UTC
SELinux is preventing /usr/sbin/pptp from 'read' accesses on the file unix.

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

If you believe that pptp should be allowed read access on the unix 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 pptp /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:pptp_t:s0
Target Context                system_u:object_r:proc_net_t:s0
Target Objects                unix [ file ]
Source                        pptp
Source Path                   /usr/sbin/pptp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pptp-1.7.2-12.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-39.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.4-5.fc15.i686 #1
                              SMP Tue Aug 30 14:54:41 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sat 29 Oct 2011 11:56:58 AM CEST
Last Seen                     Sat 29 Oct 2011 11:56:58 AM CEST
Local ID                      f0b8afbb-6ead-4a34-8bac-e98495b4f0e4

Raw Audit Messages
type=AVC msg=audit(1319882218.305:62): avc:  denied  { read } for  pid=2685 comm="pptp" name="unix" dev=proc ino=4026532001 scontext=system_u:system_r:pptp_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


type=SYSCALL msg=audit(1319882218.305:62): arch=i386 syscall=access success=no exit=EACCES a0=bfc204df a1=4 a2=449d3ff4 a3=bfc204e5 items=0 ppid=2684 pid=2685 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pptp exe=/usr/sbin/pptp subj=system_u:system_r:pptp_t:s0 key=(null)

Hash: pptp,pptp_t,proc_net_t,file,read

audit2allow

#============= pptp_t ==============
allow pptp_t proc_net_t:file read;

audit2allow -R

#============= pptp_t ==============
allow pptp_t proc_net_t:file read;

Comment 1 Miroslav Grepl 2011-10-31 10:02:12 UTC
Fixed in selinux-policy-3.9.16-46.fc15

Comment 2 Fedora Update System 2011-11-16 16:20:04 UTC
selinux-policy-3.9.16-48.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-48.fc15

Comment 3 Fedora Update System 2011-11-17 23:38:27 UTC
Package selinux-policy-3.9.16-48.fc15:
* should fix your issue,
* was pushed to the Fedora 15 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.9.16-48.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-16023/selinux-policy-3.9.16-48.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-12-04 02:38:25 UTC
selinux-policy-3.9.16-48.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.