Bug 622289

Summary: SELinux is preventing /usr/bin/freshclam "search" access .
Product: [Fedora] Fedora Reporter: M. A. MacLain <mgml>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:7dbc08629a2eab57692d2f74b25ffa2af94bc4f66dfe0124976f894ef1b9c28f
Fixed In Version: selinux-policy-3.7.19-47.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-17 05:39:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description M. A. MacLain 2010-08-08 18:09:22 UTC
Summary:

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

Detailed Description:

[freshclam has a permissive type (freshclam_t). 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://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:sysctl_kernel_t:s0
Target Objects                None [ dir ]
Source                        freshclam
Source Path                   /usr/bin/freshclam
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           clamav-update-0.95.3-1301.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-41.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.6-147.2.4.fc13.x86_64 #1 SMP Fri
                              Jul 23 17:14:44 UTC 2010 x86_64 x86_64
Alert Count                   6
First Seen                    Tue 03 Aug 2010 11:02:09 AM EDT
Last Seen                     Sun 08 Aug 2010 02:02:09 PM EDT
Local ID                      5539ca03-889a-40d6-95ee-5d0d7e1df452
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1281290529.211:54): avc:  denied  { search } for  pid=5024 comm="freshclam" scontext=system_u:system_r:freshclam_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysctl_kernel_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1281290529.211:54): arch=c000003e syscall=2 success=yes exit=128 a0=3aa8341d82 a1=0 a2=0 a3=fffffffffffffbe8 items=0 ppid=4265 pid=5024 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 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,sysctl_kernel_t,dir,search
audit2allow suggests:

#============= freshclam_t ==============
allow freshclam_t sysctl_kernel_t:dir search;

Comment 1 Miroslav Grepl 2010-08-10 17:19:38 UTC
I will add

kernel_read_kernel_sysctls(freshclam_t)

Comment 2 Miroslav Grepl 2010-08-10 18:21:19 UTC
Fixed in selinux-policy-3.7.19-45.fc13

Comment 3 Fedora Update System 2010-08-13 14:18:29 UTC
selinux-policy-3.7.19-47.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-47.fc13

Comment 4 Fedora Update System 2010-08-13 21:07:01 UTC
selinux-policy-3.7.19-47.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-47.fc13

Comment 5 Fedora Update System 2010-08-17 05:37:49 UTC
selinux-policy-3.7.19-47.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.