| Summary: | SELinux is preventing /usr/sbin/logrotate from 'open' accesses on the None /etc/logrotate.d/clamd. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | justin nix <justin.bryan.nix.prana> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:a5076e2a841146ae937bb7fc45929efe61bf2acdbe8d9d2e8ad4adffac5b566a | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-15 15:52:01 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
How does your /etc/logrotate.d/clamd file look? $ cat /etc/logrotate.d/clamd It looks like a custom modification. $ rpm -ql clamav-server /etc/clamd.d /usr/sbin/clamav-notify-servers /usr/sbin/clamd /usr/share/doc/clamav-server-0.97.3 /usr/share/doc/clamav-server-0.97.3/README /usr/share/doc/clamav-server-0.97.3/clamd.conf /usr/share/doc/clamav-server-0.97.3/clamd.init /usr/share/doc/clamav-server-0.97.3/clamd.logrotate /usr/share/doc/clamav-server-0.97.3/clamd.sysconfig /usr/share/man/man5/clamd.conf.5.gz /usr/share/man/man8/clamd.8.gz I don't see clamd logrotate file. |
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.2.2-1.fc16.i686 reason: SELinux is preventing /usr/sbin/logrotate from 'open' accesses on the None /etc/logrotate.d/clamd. time: Sat 04 Feb 2012 06:45:17 PM PST description: :SELinux is preventing /usr/sbin/logrotate from 'open' accesses on the None /etc/logrotate.d/clamd. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that logrotate should be allowed open access on the clamd <Unknown> 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 logrotate /var/log/audit/audit.log | audit2allow -M mypol :# semodule -i mypol.pp : :Additional Information: :Source Context system_u:system_r:logrotate_t:s0-s0:c0.c1023 :Target Context unconfined_u:object_r:user_home_t:s0 :Target Objects /etc/logrotate.d/clamd [ None ] :Source logrotate :Source Path /usr/sbin/logrotate :Port <Unknown> :Host (removed) :Source RPM Packages :Target RPM Packages :Policy RPM <Unknown> :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.2.2-1.fc16.i686 #1 SMP Thu : Jan 26 03:38:31 UTC 2012 i686 i686 :Alert Count 1 :First Seen Sat 04 Feb 2012 06:44:02 PM PST :Last Seen Sat 04 Feb 2012 06:44:02 PM PST :Local ID eecbc696-750e-41ba-ac59-2d6a40fcef11 : :Raw Audit Messages :type=AVC msg=audit(1328409842.182:101): avc: denied { open } for pid=2787 comm="logrotate" name="clamd" dev=dm-1 ino=1453 scontext=system_u:system_r:logrotate_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=filenode=(removed) type=SYSCALL msg=audit(1328409842.182:101): arch=40000003 syscall=5 success=no exit=-13 a0=9fa9a70 a1=8000 a2=0 a3=bfa34594 items=0 ppid=2785 pid=2787 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4 comm="logrotate" exe="/usr/sbin/logrotate" subj=system_u:system_r:logrotate_t:s0-s0:c0.c1023 key=(null) : : :Hash: logrotate,logrotate_t,user_home_t,None,open : :audit2allow : : :audit2allow -R : :