Bug 523011

Summary: setroubleshoot: SELinux is preventing sh "read" access on md0.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE 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:374a2ee746c4e8475d891475d8a02a97f49417ef438d95f71bb38f3a0c88036a
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-14 16:15:28 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 Nicolas Mailhot 2009-09-13 10:13:14 UTC
The following was filed automatically by setroubleshoot:

Résumé:

SELinux is preventing sh "read" access on md0.

Description détaillée:

SELinux denied access requested by sh. It is not expected that this access is
required by sh 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.

Informations complémentaires:

Contexte source               system_u:system_r:system_cronjob_t:s0-s0:c0.c1023
Contexte cible                system_u:object_r:sysfs_t:s0
Objets du contexte            md0 [ lnk_file ]
source                        sh
Chemin de la source           sh
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         
Paquetages RPM cible          
Politique RPM                 selinux-policy-3.6.31-3.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-2.fc12.x86_64 #1 SMP Thu
                              Sep 10 00:25:40 EDT 2009 x86_64 x86_64
Compteur d'alertes            1
Première alerte              dim. 13 sept. 2009 02:00:01 CEST
Dernière alerte              dim. 13 sept. 2009 02:00:01 CEST
ID local                      c99962c5-69c1-477d-8211-4fc5c04fe350
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1252800001.766:270): avc:  denied  { read } for  pid=4535 comm="sh" name="md0" dev=sysfs ino=14614 scontext=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysfs_t:s0 tclass=lnk_file


audit2allow suggests:

#============= system_cronjob_t ==============
allow system_cronjob_t sysfs_t:lnk_file read;

Comment 1 Daniel Walsh 2009-09-14 16:15:28 UTC
Fixed in selinux-policy-3.6.31-4.fc12.noarch