Bug 717826 - SELinux is preventing /usr/sbin/pppd from 'read' accesses on the lnk_file /var/lock.
Summary: SELinux is preventing /usr/sbin/pppd from 'read' accesses on the lnk_file /va...
Keywords:
Status: CLOSED DUPLICATE of bug 717161
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:374a58ad36d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-30 03:28 UTC by Arif Tri Waluyo
Modified: 2011-07-06 04:26 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-30 07:04:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.