Bug 563324

Summary: SELinux is preventing /usr/sbin/pppd "getattr" access on /dev/noz0.
Product: [Fedora] Fedora Reporter: Jakub Herkel <j.herkel>
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, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:4991ee0e54e279274b5edfa6eb36cda385b513d891332920a5a05640da7790f1
Fixed In Version: selinux-policy-3.6.32-89.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-20 00:22:48 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 Jakub Herkel 2010-02-09 20:44:03 UTC
Summary:

SELinux is preventing /usr/sbin/pppd "getattr" access on /dev/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                /dev/noz0 [ chr_file ]
Source                        pppd
Source Path                   /usr/sbin/pppd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ppp-2.4.4-13.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-78.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.12-174.2.3.fc12.x86_64
                              #1 SMP Mon Jan 18 19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Tue 09 Feb 2010 06:39:04 PM CET
Last Seen                     Tue 09 Feb 2010 06:39:04 PM CET
Local ID                      2ad0ab29-591b-4e2e-a4f4-5371f15ddeb9
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1265737144.524:24471): avc:  denied  { getattr } for  pid=2473 comm="pppd" path="/dev/noz0" dev=tmpfs ino=20444 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(1265737144.524:24471): arch=c000003e syscall=4 success=yes exit=128 a0=7fff878e30e0 a1=7fff878e3050 a2=7fff878e3050 a3=7fff878e2df0 items=0 ppid=1379 pid=2473 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  selinux-policy-3.6.32-78.fc12,catchall,pppd,pppd_t,modem_device_t,chr_file,getattr
audit2allow suggests:

#============= pppd_t ==============
allow pppd_t modem_device_t:chr_file getattr;

Comment 1 Daniel Walsh 2010-02-09 21:11:21 UTC
Miroslav add
dev_getattr_modem_dev(pppd_t)

Comment 2 Miroslav Grepl 2010-02-10 12:44:46 UTC
Fixed in selinux-policy-3.6.32-87.fc12

Comment 3 Fedora Update System 2010-02-11 22:02:30 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 4 Fedora Update System 2010-02-13 00:41:45 UTC
selinux-policy-3.6.32-89.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/F12/FEDORA-2010-1836

Comment 5 Fedora Update System 2010-02-20 00:20:48 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.