Bug 874394 - SELinux is preventing svnserve from 'accept' accesses on the tcp_socket .
Summary: SELinux is preventing svnserve from 'accept' accesses on the tcp_socket .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:177c981b532aac53ec877036184...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-08 05:02 UTC by John Griffiths
Modified: 2013-04-18 14:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-12-20 16:25:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-08 05:03 UTC, John Griffiths
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-08 05:03 UTC, John Griffiths
no flags Details

Description John Griffiths 2012-11-08 05:02:58 UTC
Description of problem:
Tried to start svnserve using systemctl start svnserver.service.

Additional info:
libreport version: 2.0.18
kernel:         3.6.5-1.fc17.i686.PAE

description:
:SELinux is preventing svnserve from 'accept' accesses on the tcp_socket .
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that svnserve should be allowed accept access on the  tcp_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 svnserve /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:svnserve_t:s0
:Target Context                system_u:system_r:svnserve_t:s0
:Target Objects                 [ tcp_socket ]
:Source                        svnserve
:Source Path                   svnserve
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.5-1.fc17.i686.PAE #1 SMP Wed
:                              Oct 31 20:15:29 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    2012-11-08 00:00:36 EST
:Last Seen                     2012-11-08 00:00:36 EST
:Local ID                      b343eb67-cef1-4b1c-ae3a-1c9f9982195c
:
:Raw Audit Messages
:type=AVC msg=audit(1352350836.397:242): avc:  denied  { accept } for  pid=30743 comm="svnserve" lport=3690 scontext=system_u:system_r:svnserve_t:s0 tcontext=system_u:system_r:svnserve_t:s0 tclass=tcp_socket
:
:
:Hash: svnserve,svnserve_t,svnserve_t,tcp_socket,accept
:
:audit2allow
:
:#============= svnserve_t ==============
:allow svnserve_t self:tcp_socket accept;
:
:audit2allow -R
:
:#============= svnserve_t ==============
:allow svnserve_t self:tcp_socket accept;
:

Comment 1 John Griffiths 2012-11-08 05:03:01 UTC
Created attachment 640563 [details]
File: type

Comment 2 John Griffiths 2012-11-08 05:03:03 UTC
Created attachment 640564 [details]
File: hashmarkername

Comment 3 Miroslav Grepl 2012-11-08 12:04:49 UTC
Added to elinux-policy-3.10.0-160.fc17

Comment 4 Fedora Update System 2012-11-21 11:53:12 UTC
selinux-policy-3.10.0-161.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/selinux-policy-3.10.0-161.fc17

Comment 5 Fedora Update System 2012-11-22 03:55:09 UTC
Package selinux-policy-3.10.0-161.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.10.0-161.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-18787/selinux-policy-3.10.0-161.fc17
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-12-20 16:25:44 UTC
selinux-policy-3.10.0-161.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


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