Bug 521409

Summary: setroubleshoot: SELinux is preventing spamd "append" access on /razor-agent.log.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, jkubin, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:23234a998249f1d92efedeab244ac214b6d01a1a357cc7a87b0fc3284bbc1322
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-06 20:01:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Nicolas Mailhot 2009-09-05 14:44:29 UTC
The following was filed automatically by setroubleshoot:


SELinux is preventing spamd "append" access on /razor-agent.log.

Description détaillée:

SELinux denied access requested by spamd. It is not expected that this access is
required by spamd 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:spamd_t:s0
Contexte cible                system_u:object_r:etc_runtime_t:s0
Objets du contexte            /razor-agent.log [ file ]
source                        spamd
Chemin de la source           /usr/bin/perl
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         perl-5.10.0-82.fc12
Paquetages RPM cible          
Politique RPM                 selinux-policy-3.6.30-2.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.203.rc8.git2.fc12.x86_64
                              #1 SMP Fri Sep 4 21:33:05 EDT 2009 x86_64 x86_64
Compteur d'alertes            6
Première alerte              sam. 05 sept. 2009 13:59:34 CEST
Dernière alerte              sam. 05 sept. 2009 16:26:41 CEST
ID local                      979af6c2-4de5-422b-b57d-4f65561fec5c
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1252160801.503:28): avc:  denied  { append } for  pid=1624 comm="spamd" name="razor-agent.log" dev=dm-3 ino=21809 scontext=system_u:system_r:spamd_t:s0 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1252160801.503:28): arch=c000003e syscall=2 success=no exit=-13 a0=4c2c338 a1=441 a2=1b6 a3=7f8edecc68f0 items=0 ppid=1620 pid=1624 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="spamd" exe="/usr/bin/perl" subj=system_u:system_r:spamd_t:s0 key=(null)

audit2allow suggests:

#============= spamd_t ==============
allow spamd_t etc_runtime_t:file append;

Comment 1 Daniel Walsh 2009-09-06 20:01:39 UTC

Is not a good place to put a log file move it to a more appropriate directory like under /var/run.  And fix the labeling.