Bug 815781 - SELinux is preventing /usr/sbin/xl2tpd from 'open' accesses on the chr_file 2.
SELinux is preventing /usr/sbin/xl2tpd from 'open' accesses on the chr_file 2.
Status: CLOSED WONTFIX
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
16
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:c8046238a741f02c7c28d427b16...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-24 09:50 EDT by ManFree
Modified: 2012-04-25 11:26 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-04-25 11:26:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description ManFree 2012-04-24 09:50:39 EDT
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-7.fc16.i686
reason:         SELinux is preventing /usr/sbin/xl2tpd from 'open' accesses on the chr_file 2.
time:           Tue Apr 24 21:50:27 2012

description:
:SELinux is preventing /usr/sbin/xl2tpd from 'open' accesses on the chr_file 2.
:
:*****  Plugin catchall_boolean (89.3 confidence) suggests  *******************
:
:If you want to allow all daemons the ability to read/write terminals
:Then you must tell SELinux about this by enabling the 'allow_daemons_use_tty' boolean.
:Do
:setsebool -P allow_daemons_use_tty 1
:
:*****  Plugin catchall (11.6 confidence) suggests  ***************************
:
:If you believe that xl2tpd should be allowed open access on the 2 chr_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                system_u:object_r:devpts_t:s0
:Target Objects                2 [ chr_file ]
:Source                        xl2tpd
:Source Path                   /usr/sbin/xl2tpd
:Port                          <Неизвестно>
:Host                          (removed)
:Source RPM Packages           xl2tpd-1.3.0-1.fc16.R
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-86.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux localhost.localdomain 3.1.0-7.fc16.i686 #1
:                              SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686
:Alert Count                   1
:First Seen                    Вт. 24 апр. 2012 21:47:26
:Last Seen                     Вт. 24 апр. 2012 21:47:26
:Local ID                      469ee9b6-357d-495c-9543-ad60f0c9e03f
:
:Raw Audit Messages
:type=AVC msg=audit(1335289646.575:184): avc:  denied  { open } for  pid=1646 comm="xl2tpd" name="2" dev=devpts ino=5 scontext=system_u:system_r:l2tpd_t:s0 tcontext=system_u:object_r:devpts_t:s0 tclass=chr_file
:
:
:type=SYSCALL msg=audit(1335289646.575:184): arch=i386 syscall=open success=yes exit=E2BIG a0=bfcc5990 a1=2 a2=800 a3=b items=0 ppid=1 pid=1646 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts2 ses=4294967295 comm=xl2tpd exe=/usr/sbin/xl2tpd subj=system_u:system_r:l2tpd_t:s0 key=(null)
:
:Hash: xl2tpd,l2tpd_t,devpts_t,chr_file,open
:
:audit2allow
:
:#============= l2tpd_t ==============
:#!!!! This avc can be allowed using the boolean 'allow_daemons_use_tty'
:
:allow l2tpd_t devpts_t:chr_file open;
:
:audit2allow -R
:
:#============= l2tpd_t ==============
:#!!!! This avc can be allowed using the boolean 'allow_daemons_use_tty'
:
:allow l2tpd_t devpts_t:chr_file open;
:
Comment 1 Miroslav Grepl 2012-04-25 01:57:48 EDT
Fixed in selinux-policy-3.10.0-87.fc16
Comment 2 ManFree 2012-04-25 11:26:40 EDT
No problem in selinux-policy-3.10.0-87.fc16.
Fixed.

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