Bug 717826

Summary: SELinux is preventing /usr/sbin/pppd from 'read' accesses on the lnk_file /var/lock.
Product: [Fedora] Fedora Reporter: Arif Tri Waluyo <arifiauo>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: bugzilla, dominick.grift, dwalsh, kjiec4, mgrepl, nnieto
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:374a58ad36d6d8b31b5ab3bc5157c134a9a865cf4a54cd7362e7497a6722fd8a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-30 07:04: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:

Description Arif Tri Waluyo 2011-06-30 03:28:04 UTC
SELinux is preventing /usr/sbin/pppd from 'read' accesses on the lnk_file /var/lock.

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

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

Additional Information:
Source Context                system_u:system_r:pppd_t:s0
Target Context                system_u:object_r:var_lock_t:s0
Target Objects                /var/lock [ lnk_file ]
Source                        pppd
Source Path                   /usr/sbin/pppd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           ppp-2.4.5-17.fc15
Target RPM Packages           filesystem-2.4.41-1.fc15
Policy RPM                    selinux-policy-3.9.16-30.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.8-32.fc15.i686 #1 SMP Mon
                              Jun 13 20:01:50 UTC 2011 i686 i686
Alert Count                   42
First Seen                    Wed 22 Jun 2011 10:35:36 AM WIT
Last Seen                     Thu 30 Jun 2011 10:06:03 AM WIT
Local ID                      905a9f7c-daa5-460f-aa12-551b9b7ab612

Raw Audit Messages
type=AVC msg=audit(1309403163.781:49): avc:  denied  { read } for  pid=1586 comm="pppd" name="lock" dev=sda1 ino=279 scontext=system_u:system_r:pppd_t:s0 tcontext=system_u:object_r:var_lock_t:s0 tclass=lnk_file


type=AVC msg=audit(1309403163.781:49): avc:  denied  { search } for  pid=1586 comm="pppd" name="lock" dev=tmpfs ino=1160 scontext=system_u:system_r:pppd_t:s0 tcontext=system_u:object_r:var_lock_t:s0 tclass=dir


type=SYSCALL msg=audit(1309403163.781:49): arch=i386 syscall=open success=yes exit=EAGAIN a0=1c0760 a1=800c2 a2=1a4 a3=1c0760 items=0 ppid=763 pid=1586 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: pppd,pppd_t,var_lock_t,lnk_file,read

audit2allow

#============= pppd_t ==============
allow pppd_t var_lock_t:dir search;
allow pppd_t var_lock_t:lnk_file read;

audit2allow -R

#============= pppd_t ==============
allow pppd_t var_lock_t:dir search;
allow pppd_t var_lock_t:lnk_file read;

Comment 1 Miroslav Grepl 2011-06-30 07:04:48 UTC

*** This bug has been marked as a duplicate of bug 717161 ***