Bug 576348

Summary: SELinux is preventing /usr/sbin/pppd "read write" access on noz0.
Product: [Fedora] Fedora Reporter: Dylan Swift <dylan.swift>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, dylan.swift, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:587f99d08e3fdfd115ac2fb443d83386c86b01066559bd1ce6a26d9b991e80fd
Fixed In Version: selinux-policy-3.6.32-108.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-09 01:23:56 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 Dylan Swift 2010-03-23 21:14:29 UTC
Summary:

SELinux is preventing /usr/sbin/pppd "read write" access on noz0.

Detailed Description:

[pppd has a permissive type (pppd_t). This access was not denied.]

SELinux denied access requested by pppd. It is not expected that this access is
required by pppd and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:pppd_t:s0
Target Context                system_u:object_r:modem_device_t:s0
Target Objects                noz0 [ chr_file ]
Source                        pppd
Source Path                   /usr/sbin/pppd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ppp-2.4.5-5.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-103.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.32.9-70.fc12.x86_64 #1 SMP Wed Mar 3 04:40:41
                              UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 23 Mar 2010 09:13:32 PM GMT
Last Seen                     Tue 23 Mar 2010 09:13:32 PM GMT
Local ID                      1943d369-d0ad-4006-8fb5-0f12c0be4c9a
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1269378812.637:37): avc:  denied  { read write } for  pid=6445 comm="pppd" name="noz0" dev=devtmpfs ino=919214 scontext=system_u:system_r:pppd_t:s0 tcontext=system_u:object_r:modem_device_t:s0 tclass=chr_file

node=(removed) type=SYSCALL msg=audit(1269378812.637:37): arch=c000003e syscall=2 success=yes exit=4294967424 a0=7f743aa30720 a1=802 a2=0 a3=7fffc1d0d580 items=0 ppid=1441 pid=6445 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="pppd" exe="/usr/sbin/pppd" subj=system_u:system_r:pppd_t:s0 key=(null)



Hash String generated from  catchall,pppd,pppd_t,modem_device_t,chr_file,read,write
audit2allow suggests:

#============= pppd_t ==============
allow pppd_t modem_device_t:chr_file { read write };

Comment 1 Daniel Walsh 2010-03-24 12:46:45 UTC
This access seems to make sense.  I was surprised it did not already have it.

Miroslav, add

dev_rw_modem(pppd_t)

Comment 2 Miroslav Grepl 2010-03-26 06:53:47 UTC
Fixed in selinux-policy-3.6.32-107.fc12

Comment 3 Fedora Update System 2010-03-30 19:47:27 UTC
selinux-policy-3.6.32-108.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-108.fc12

Comment 4 Fedora Update System 2010-04-01 01:53:25 UTC
selinux-policy-3.6.32-108.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-108.fc12

Comment 5 Fedora Update System 2010-04-09 01:23:03 UTC
selinux-policy-3.6.32-108.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.