Bug 522262 - setroubleshoot: SELinux is preventing freshclam "write" access on /var/lib/clamav.
Summary: setroubleshoot: SELinux is preventing freshclam "write" access on /var/l...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:40b89581297...
: 522263 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-09 22:11 UTC by Nicolas Mailhot
Modified: 2009-09-09 22:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-09 22:21:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Nicolas Mailhot 2009-09-09 22:11:10 UTC
The following was filed automatically by setroubleshoot:

Résumé:

SELinux is preventing freshclam "write" access on /var/lib/clamav.

Description détaillée:

[freshclam has a permissive type (system_cronjob_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.

Autoriser l'accès:

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 (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Informations complémentaires:

Contexte source               system_u:system_r:system_cronjob_t:s0-s0:c0.c1023
Contexte cible                system_u:object_r:clamd_var_lib_t:s0
Objets du contexte            /var/lib/clamav [ dir ]
source                        freshclam
Chemin de la source           /usr/bin/freshclam
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         clamav-update-0.95.2-5.fc12
Paquetages RPM cible          clamav-filesystem-0.95.2-5.fc12
Politique RPM                 selinux-policy-3.6.30-6.fc12
Selinux activé               True
Type de politique             targeted
MLS activé                   True
Mode strict                   Enforcing
Nom du plugin                 catchall
Nom de l'hôte                (removed)
Plateforme                    Linux (removed) 2.6.31-0.219.rc9.git2.fc12.x86_64
                              #1 SMP Wed Sep 9 05:55:59 EDT 2009 x86_64 x86_64
Compteur d'alertes            3
Première alerte              jeu. 10 sept. 2009 00:01:55 CEST
Dernière alerte              jeu. 10 sept. 2009 00:01:55 CEST
ID local                      7f3bf430-e0be-4e08-a5a6-a3d77283b292
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1252533715.272:286): avc:  denied  { write } for  pid=4661 comm="freshclam" name="clamav" dev=dm-3 ino=122481 scontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tcontext=system_u:object_r:clamd_var_lib_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1252533715.272:286): avc:  denied  { add_name } for  pid=4661 comm="freshclam" name="clamav-35020d99d4effbf283d720a70ce7b274" scontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tcontext=system_u:object_r:clamd_var_lib_t:s0 tclass=dir

node=(removed) type=AVC msg=audit(1252533715.272:286): avc:  denied  { create } for  pid=4661 comm="freshclam" name="clamav-35020d99d4effbf283d720a70ce7b274" scontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tcontext=system_u:object_r:clamd_var_lib_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1252533715.272:286): arch=c000003e syscall=83 success=yes exit=0 a0=d88e90 a1=1ed a2=7fff90958b79 a3=7fff90958670 items=0 ppid=4612 pid=4661 auid=0 uid=492 gid=487 euid=492 suid=492 fsuid=492 egid=487 sgid=487 fsgid=487 tty=(none) ses=18 comm="freshclam" exe="/usr/bin/freshclam" subj=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 key=(null)


audit2allow suggests:

#============= system_cronjob_t ==============
allow system_cronjob_t clamd_var_lib_t:dir { write create add_name };

Comment 1 Daniel Walsh 2009-09-09 22:21:36 UTC
Fixed in selinux-policy-3.6.31-2.fc12.noarch

Comment 2 Daniel Walsh 2009-09-09 22:27:58 UTC
*** Bug 522263 has been marked as a duplicate of this bug. ***


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