Bug 430193 - Enforce level prevents clamav-milter from running
Summary: Enforce level prevents clamav-milter from running
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy-targeted   
(Show other bugs)
Version: 8
Hardware: All Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
Depends On:
TreeView+ depends on / blocked
Reported: 2008-01-25 04:14 UTC by David Highley
Modified: 2008-01-28 19:55 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-01-28 19:55:13 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description David Highley 2008-01-25 04:14:13 UTC
Description of problem:
When starting the service clamav-milter it attempts to access a file in the
directory /var/lib/clamav/daily.inc and gets blocked when in enforce mode.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.service clamav-milter start
Actual results:

Expected results:

Additional info:
Directory /var/lib/clamav/daily.inc is owned by clamav:clamav. The service
clamav-milter runs as clamilt:clamilt. So I'm not sure if this is a policy issue
or a package configuration issue.

Comment 1 Daniel Walsh 2008-01-25 14:49:54 UTC
What avc messages are you seeing in /var/log/audit/audit.log?

Comment 2 David Highley 2008-01-26 04:19:23 UTC
type=SYSCALL msg=audit(1201320796.020:711): arch=c000003e syscall=2 success=yes 
exit=7 a0=2aaaacf9f3c0 a1=90800 a2=35 a3=0 items=0 ppid=1 pid=4338 auid=0 uid=49
2 gid=486 euid=492 suid=492 fsuid=492 egid=486 sgid=486 fsgid=486 tty=(none) com
m="clamav-milter" exe="/usr/sbin/clamav-milter" subj=system_u:system_r:clamd_t:s
0 key=(null)
type=AVC msg=audit(1201320796.020:712): avc:  denied  { getattr } for  pid=4338
comm="clamav-milter" path="/var/lib/clamav/daily.inc" dev=dm-0 ino=27066426
scontext=system_u:system_r:clamd_t:s0 tcontext=system_u:object_r:user_home_t:s0
type=SYSCALL msg=audit(1201320796.020:712): arch=c000003e syscall=5 success=yes
exit=0 a0=7 a1=409ffd40 a2=409ffd40 a3=0 items=0 ppid=1 pid=4338 auid=0 uid=492
gid=486 euid=492 suid=492 fsuid=492 egid=486 sgid=486 fsgid=486 tty=(none)
comm="clamav-milter" exe="/usr/sbin/clamav-milter"
subj=system_u:system_r:clamd_t:s0 key=(null)

Comment 3 David Highley 2008-01-26 04:22:20 UTC
Another related one:

type=AVC msg=audit(1201320754.665:705): avc:  denied  { getattr } for  pid=4338 
comm="clamav-milter" path="/var/lib/clamav/main.cvd" dev=dm-0 ino=27066444 scont
ext=system_u:system_r:clamd_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclas

Comment 4 Daniel Walsh 2008-01-28 19:55:13 UTC
David please set bugs to assigned not modified.  modified means I am done with
them, and they will disappear from my view.

This looks again like a labeling problem. You have files under /var/lib that are
labeled like they are in a homedir.

restorecon -R -v -F /var/lib

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