Bug 581309 - SELinux is preventing /usr/bin/freshclam "name_connect" access .
Summary: SELinux is preventing /usr/bin/freshclam "name_connect" access .
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:46ffbd3eaed...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-11 17:17 UTC by Frank Murphy
Modified: 2010-04-21 22:00 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.19-2.fc13
Clone Of:
Environment:
Last Closed: 2010-04-21 22:00:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Murphy 2010-04-11 17:17:36 UTC
Summary:

SELinux is preventing /usr/bin/freshclam "name_connect" access .

Detailed Description:

SELinux denied access requested by freshclam. It is not expected that this
access is required by freshclam and this access may signal an intrusion attempt.
It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:freshclam_t:s0-s0:c0.c1023
Target Context                system_u:object_r:clamd_port_t:s0
Target Objects                None [ tcp_socket ]
Source                        freshclam
Source Path                   /usr/bin/freshclam
Port                          3310
Host                          (removed)
Source RPM Packages           clamav-update-0.95.3-1301.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.15-4.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux internet01.frankly3d.local
                              2.6.33.1-24.fc13.x86_64 #1 SMP Tue Mar 30 18:21:22
                              UTC 2010 x86_64 x86_64
Alert Count                   2
First Seen                    Sun 11 Apr 2010 14:03:07 IST
Last Seen                     Sun 11 Apr 2010 17:02:35 IST
Local ID                      1d72f33a-de7b-4894-ba62-11d68a56e373
Line Numbers                  

Raw Audit Messages            

node=internet01.frankly3d.local type=AVC msg=audit(1271001755.595:356): avc:  denied  { name_connect } for  pid=7150 comm="freshclam" dest=3310 scontext=system_u:system_r:freshclam_t:s0-s0:c0.c1023 tcontext=system_u:object_r:clamd_port_t:s0 tclass=tcp_socket

node=internet01.frankly3d.local type=SYSCALL msg=audit(1271001755.595:356): arch=40000003 syscall=102 success=no exit=-13 a0=3 a1=ff9f40b0 a2=838e448 a3=4 items=0 ppid=7009 pid=7150 auid=0 uid=491 gid=479 euid=491 suid=491 fsuid=491 egid=479 sgid=479 fsgid=479 tty=(none) ses=12 comm="freshclam" exe="/usr/bin/freshclam" subj=system_u:system_r:freshclam_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,freshclam,freshclam_t,clamd_port_t,tcp_socket,name_connect
audit2allow suggests:

#============= freshclam_t ==============
allow freshclam_t clamd_port_t:tcp_socket name_connect;

Comment 1 Frank Murphy 2010-04-12 10:07:42 UTC
This is what shows up in my logs:

ERROR: getpatch: Can't download safebrowsing-19286.cdiff from db.ie.clamav.net
ERROR: Can't download safebrowsing.cvd from db.ie.clamav.net
connect(): Permission denied

Comment 2 Daniel Walsh 2010-04-12 17:25:15 UTC
You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.7.18-2.fc13.noarch

Comment 3 Fedora Update System 2010-04-19 02:41:10 UTC
selinux-policy-3.7.19-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 4 Fedora Update System 2010-04-20 13:25:21 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-2.fc13

Comment 5 Fedora Update System 2010-04-21 21:59:22 UTC
selinux-policy-3.7.19-2.fc13 has been pushed to the Fedora 13 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.