Bug 712641

Summary: SELinux is preventing /usr/sbin/pppd from 'search' accesses on the directory ppp.
Product: [Fedora] Fedora Reporter: Tommy He <lovenemesis>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, hicham.haouari, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:54f487bc7cd074d8e4cb7e233bf8017a2b7876d9c7536d0e4f24e0dd2489b5cd
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-12 16:38:58 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 Tommy He 2011-06-12 03:17:25 UTC
SELinux is preventing /usr/sbin/pppd from 'search' accesses on the directory ppp.

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

If you believe that pppd 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 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:pppd_lock_t:s0
Target Objects                ppp [ dir ]
Source                        pppd
Source Path                   /usr/sbin/pppd
Port                          <未知>
Host                          (removed)
Source RPM Packages           ppp-2.4.5-17.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-29.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.7-30.fc15.i686
                              #1 SMP Fri May 27 06:02:17 UTC 2011 i686 i686
Alert Count                   1
First Seen                    2011年06月12日 星期日 11时13分47秒
Last Seen                     2011年06月12日 星期日 11时13分47秒
Local ID                      8691bb1a-ac31-4e64-a08d-ccee02a71fcd

Raw Audit Messages
type=AVC msg=audit(1307848427.748:102): avc:  denied  { search } for  pid=10132 comm="pppd" name="ppp" dev=tmpfs ino=11860 scontext=system_u:system_r:pppd_t:s0 tcontext=system_u:object_r:pppd_lock_t:s0 tclass=dir


type=SYSCALL msg=audit(1307848427.748:102): arch=i386 syscall=open success=no exit=EACCES a0=699760 a1=800c2 a2=1a4 a3=699760 items=0 ppid=795 pid=10132 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,pppd_lock_t,dir,search

audit2allow

#============= pppd_t ==============
allow pppd_t pppd_lock_t:dir search;

audit2allow -R

#============= pppd_t ==============
allow pppd_t pppd_lock_t:dir search;

Comment 1 Dominick Grift 2011-06-12 13:41:42 UTC
allows pppd_t to search /var/lock and add dir entries:

http://git.fedorahosted.org/git/?p=selinux-policy.git;a=commitdiff;h=031496aa1f62450baaf344e289fdc984cbda7df2

Also other various ralted fixes with regard to installed directories (var/log and /var/run):

http://git.fedorahosted.org/git/?p=selinux-policy.git;a=commitdiff;h=1b5c25169166e68ed24528f2cbfed8532f996037

Comment 2 Miroslav Grepl 2011-06-12 16:38:58 UTC

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