Bug 541702 - SELinux is preventing /usr/bin/freshclam "write" access on log.
Summary: SELinux is preventing /usr/bin/freshclam "write" access on log.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:b553f8d8872...
: 542310 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-26 19:04 UTC by Eddie Lania
Modified: 2010-08-20 01:47 UTC (History)
3 users (show)

Fixed In Version: selinux-policy-3.6.32-120.fc12
Clone Of:
Environment:
Last Closed: 2009-12-07 22:46:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eddie Lania 2009-11-26 19:04:29 UTC
Summary:

SELinux is preventing /usr/bin/freshclam "write" access on log.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

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://fedora.redhat.com/docs/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:devlog_t:s0
Target Objects                log [ sock_file ]
Source                        freshclam
Source Path                   /usr/bin/freshclam
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           clamav-update-0.95.3-1200.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-49.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.6-134.fc12.i686.PAE #1 SMP Mon Nov 16
                              20:53:21 EST 2009 i686 i686
Alert Count                   2
First Seen                    Thu 26 Nov 2009 08:02:10 PM CET
Last Seen                     Thu 26 Nov 2009 08:02:10 PM CET
Local ID                      9b2fb81f-f88c-4a26-a258-416f3610ea47
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259262130.169:25234): avc:  denied  { write } for  pid=5950 comm="freshclam" name="log" dev=tmpfs ino=11178 scontext=system_u:system_r:freshclam_t:s0-s0:c0.c1023 tcontext=system_u:object_r:devlog_t:s0 tclass=sock_file

node=(removed) type=AVC msg=audit(1259262130.169:25234): avc:  denied  { sendto } for  pid=5950 comm="freshclam" path="/dev/log" scontext=system_u:system_r:freshclam_t:s0-s0:c0.c1023 tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket

node=(removed) type=SYSCALL msg=audit(1259262130.169:25234): arch=40000003 syscall=102 success=yes exit=0 a0=3 a1=bfba17dc a2=280ff4 a3=ffffffc8 items=0 ppid=2295 pid=5950 auid=0 uid=490 gid=324 euid=490 suid=490 fsuid=490 egid=324 sgid=324 fsgid=324 tty=(none) ses=2 comm="freshclam" exe="/usr/bin/freshclam" subj=system_u:system_r:freshclam_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-49.fc12,catchall,freshclam,freshclam_t,devlog_t,sock_file,write
audit2allow suggests:

#============= freshclam_t ==============
allow freshclam_t devlog_t:sock_file write;
allow freshclam_t syslogd_t:unix_dgram_socket sendto;

Comment 1 Miroslav Grepl 2009-11-27 09:45:49 UTC
You can add these rules for now using

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

Comment 2 Miroslav Grepl 2009-11-30 10:30:21 UTC
*** Bug 542310 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2009-11-30 15:02:30 UTC
Miroslav we needed to add

logging_send_syslog_msg(freshclam_t)


Fixed in selinux-policy-3.6.32-52.fc12.noarch

Comment 4 Fedora Update System 2009-12-01 16:52:54 UTC
selinux-policy-3.6.32-52.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-52.fc12

Comment 5 Fedora Update System 2009-12-03 05:00:05 UTC
selinux-policy-3.6.32-52.fc12 has been pushed to the Fedora 12 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/F12/FEDORA-2009-12549

Comment 6 Fedora Update System 2009-12-03 20:24:57 UTC
selinux-policy-3.6.32-55.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-55.fc12

Comment 7 Fedora Update System 2009-12-04 23:43:02 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 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/F12/FEDORA-2009-12650

Comment 8 Fedora Update System 2009-12-08 07:49:39 UTC
selinux-policy-3.6.32-55.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2010-08-05 13:22:00 UTC
selinux-policy-3.6.32-120.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-120.fc12

Comment 10 Fedora Update System 2010-08-20 01:42:01 UTC
selinux-policy-3.6.32-120.fc12 has been pushed to the Fedora 12 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.