Bug 540916

Summary: SELinux is preventing df (xdm_t) "search" sysctl_fs_t.
Product: [Fedora] Fedora Reporter: Gaetan Cambier <gaetan>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:c199d7fe53d8c0345e4eb7215fe6841b4237d6fb3ae780c09578ed82e2cbe89f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-24 14:50:35 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 Gaetan Cambier 2009-11-24 14:13:26 UTC
Résumé:

SELinux is preventing df (xdm_t) "search" sysctl_fs_t.

Description détaillée:

[SELinux est en mode permissif. Cet accès n'a pas été refusé.]

SELinux denied access requested by df. It is not expected that this access is
required by df 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) Or you can disable
SELinux protection altogether. Disabling SELinux protection is not recommended.
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:xdm_t:s0-s0:c0.c1023
Contexte cible                system_u:object_r:sysctl_fs_t:s0
Objets du contexte            None [ dir ]
source                        df
Chemin de la source           /bin/df
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         coreutils-7.2-4.fc11
Paquetages RPM cible          
Politique RPM                 selinux-policy-3.6.12-85.fc11
Selinux activé               True
Type de politique             targeted
Mode strict                   Permissive
Nom du plugin                 catchall
Nom de l'hôte                (removed)
Plateforme                    Linux (removed)
                              2.6.29.6-217.2.16.fc11.i686.PAE #1 SMP Mon Aug 24
                              17:16:21 EDT 2009 i686 athlon
Compteur d'alertes            101
Première alerte              sam 27 jun 2009 12:01:40 CEST
Dernière alerte              jeu 22 oct 2009 09:19:39 CEST
ID local                      d197d4f1-40d3-494a-ba8d-c2adc8a6b199
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1256195979.758:2335): avc:  denied  { search } for  pid=21893 comm="df" scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysctl_fs_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1256195979.758:2335): arch=40000003 syscall=268 success=yes exit=0 a0=8e94d30 a1=54 a2=bfe9f43c a3=bfe9fcfc items=0 ppid=21873 pid=21893 auid=4294967295 uid=0 gid=501 euid=0 suid=0 fsuid=0 egid=501 sgid=501 fsgid=501 tty=(none) ses=4294967295 comm="df" exe="/bin/df" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-85.fc11,catchall,df,xdm_t,sysctl_fs_t,dir,search
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t sysctl_fs_t:dir search;

Comment 1 Daniel Walsh 2009-11-24 14:50:35 UTC

*** This bug has been marked as a duplicate of bug 538428 ***