Bug 815133 - SELinux is preventing /usr/sbin/openl2tpd from 'name_bind' accesses on the udp_socket port 925.
Summary: SELinux is preventing /usr/sbin/openl2tpd from 'name_bind' accesses on the ud...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: l2tpd
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orphan Owner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:bc6a310dbe0618d95556c0341f0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-22 18:42 UTC by ManFree
Modified: 2012-04-25 15:22 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-25 15:22:48 UTC
Type: ---


Attachments (Terms of Use)

Description ManFree 2012-04-22 18:42:25 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-7.fc16.i686
reason:         SELinux is preventing /usr/sbin/openl2tpd from 'name_bind' accesses on the udp_socket port 925.
time:           Mon Apr 23 02:42:13 2012

description:
:SELinux is preventing /usr/sbin/openl2tpd from 'name_bind' accesses on the udp_socket port 925.
:
:*****  Plugin bind_ports (99.5 confidence) suggests  *************************
:
:If you want to allow /usr/sbin/openl2tpd to bind to network port 925
:Then you need to modify the port type.
:Do
:# semanage port -a -t PORT_TYPE -p udp 925
:    where PORT_TYPE is one of the following: unreserved_port_t, port_t, l2tp_port_t.
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that openl2tpd should be allowed name_bind access on the port 925 udp_socket 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 openl2tpd /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:hi_reserved_port_t:s0
:Target Objects                port 925 [ udp_socket ]
:Source                        openl2tpd
:Source Path                   /usr/sbin/openl2tpd
:Port                          925
:Host                          (removed)
:Source RPM Packages           openl2tp-1.8-5.fc16.R
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-84.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-7.fc16.i686 #1
:                              SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686
:Alert Count                   18
:First Seen                    Пн. 23 апр. 2012 02:39:54
:Last Seen                     Пн. 23 апр. 2012 02:40:28
:Local ID                      aade4023-1d2f-4024-9337-d80f6456a861
:
:Raw Audit Messages
:type=AVC msg=audit(1335134428.819:123): avc:  denied  { name_bind } for  pid=4560 comm="openl2tpd" src=925 scontext=system_u:system_r:l2tpd_t:s0 tcontext=system_u:object_r:hi_reserved_port_t:s0 tclass=udp_socket
:
:
:type=SYSCALL msg=audit(1335134428.819:123): arch=i386 syscall=socketcall success=no exit=EACCES a0=2 a1=bfc086e0 a2=4d2aaff4 a3=bfc08700 items=0 ppid=1 pid=4560 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=openl2tpd exe=/usr/sbin/openl2tpd subj=system_u:system_r:l2tpd_t:s0 key=(null)
:
:Hash: openl2tpd,l2tpd_t,hi_reserved_port_t,udp_socket,name_bind
:
:audit2allow
:
:#============= l2tpd_t ==============
:allow l2tpd_t hi_reserved_port_t:udp_socket name_bind;
:
:audit2allow -R
:
:#============= l2tpd_t ==============
:allow l2tpd_t hi_reserved_port_t:udp_socket name_bind;
:

Comment 1 Miroslav Grepl 2012-04-22 19:36:56 UTC
Why is openl2tpd using 925 port?

Comment 2 ManFree 2012-04-22 19:38:57 UTC
I don't know, but it is default also.

Comment 3 Miroslav Grepl 2012-04-22 19:41:22 UTC
Fixed in selinux-policy-3.10.0-86.fc16

Comment 4 ManFree 2012-04-25 15:22:48 UTC
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.