Bug 770749 - SELinux is preventing /usr/sbin/xl2tpd from 'unlink' accesses on the file l2tp-control.
Summary: SELinux is preventing /usr/sbin/xl2tpd from 'unlink' accesses on the file l2t...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:0e4cf7e390314ea5411799366cf...
: 770750 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-28 22:39 UTC by Andreas Winkelbauer
Modified: 2012-03-15 15:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 15:25:07 UTC
Type: ---


Attachments (Terms of Use)

Description Andreas Winkelbauer 2011-12-28 22:39:14 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.6-1.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/xl2tpd from 'unlink' accesses on the file l2tp-control.
time:           Mi 28 Dez 2011 23:38:07 CET

description:
:SELinux is preventing /usr/sbin/xl2tpd from 'unlink' accesses on the file l2tp-control.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that xl2tpd should be allowed unlink access on the l2tp-control 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 xl2tpd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:l2tpd_t:s0
:Target Context                unconfined_u:object_r:var_run_t:s0
:Target Objects                l2tp-control [ file ]
:Source                        xl2tpd
:Source Path                   /usr/sbin/xl2tpd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           xl2tpd-1.3.1-1.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-67.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.6-1.fc16.x86_64 #1 SMP Wed Dec
:                              21 22:41:17 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Mi 28 Dez 2011 23:37:31 CET
:Last Seen                     Mi 28 Dez 2011 23:37:31 CET
:Local ID                      9849c46b-a16e-4034-b3f8-056317e7cde8
:
:Raw Audit Messages
:type=AVC msg=audit(1325111851.936:163): avc:  denied  { unlink } for  pid=3561 comm="xl2tpd" name="l2tp-control" dev=tmpfs ino=34868 scontext=system_u:system_r:l2tpd_t:s0 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1325111851.936:163): arch=x86_64 syscall=unlink success=no exit=EACCES a0=61e318 a1=7fff1a5417a8 a2=0 a3=8 items=0 ppid=1 pid=3561 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=xl2tpd exe=/usr/sbin/xl2tpd subj=system_u:system_r:l2tpd_t:s0 key=(null)
:
:Hash: xl2tpd,l2tpd_t,var_run_t,file,unlink
:
:audit2allow
:
:#============= l2tpd_t ==============
:allow l2tpd_t var_run_t:file unlink;
:
:audit2allow -R
:
:#============= l2tpd_t ==============
:allow l2tpd_t var_run_t:file unlink;
:

Comment 1 Daniel Walsh 2011-12-29 17:51:46 UTC
*** Bug 770750 has been marked as a duplicate of this bug. ***

Comment 2 Daniel Walsh 2011-12-29 17:54:04 UTC
restorecon -R -v /var/run/xl2tpd

Comment 3 Daniel Walsh 2011-12-29 17:55:46 UTC
Did you run the service directly?

Comment 4 Miroslav Grepl 2012-03-15 15:25:07 UTC
If this still happens, please reopen the bug.


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