Bug 538012

Summary: SELinux is preventing access to files with the label, file_t.
Product: [Fedora] Fedora Reporter: Toxico Nimbus <toxn>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-17 13:39:29 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 Toxico Nimbus 2009-11-17 08:45:02 UTC
Résumé:

SELinux is preventing access to files with the label, file_t.

Description détaillée:

SELinux permission checks on files labeled file_t are being denied. file_t is
the context the SELinux kernel gives to files that do not have a label. This
indicates a serious labeling problem. No files on an SELinux box should ever be
labeled file_t. If you have just added a new disk drive to the system you can
relabel it using the restorecon command. Otherwise you should relabel the entire
file system.

Autoriser l'accès:

You can execute the following command as root to relabel your computer system:
"touch /.autorelabel; reboot"

Informations complémentaires:

Contexte source               system_u:system_r:xdm_t:s0-s0:c0.c1023
Contexte cible                system_u:object_r:file_t:s0
Objets du contexte            toxn [ dir ]
source                        gdm-simple-gree
Chemin de la source           /usr/libexec/gdm-simple-greeter
Port                          <Inconnu>
Hôte                         (removed)
Paquetages RPM source         gdm-2.28.1-24.fc12
Paquetages RPM cible          
Politique RPM                 selinux-policy-3.6.32-41.fc12
Selinux activé               True
Type de politique             targeted
Mode strict                   Enforcing
Nom du plugin                 file
Nom de l'hôte                (removed)
Plateforme                    Linux (removed)
                              2.6.31.5-127.fc12.x86_64 #1 SMP Sat Nov 7 21:11:14
                              EST 2009 x86_64 x86_64
Compteur d'alertes            8
Première alerte              jeu. 12 nov. 2009 17:23:50 CET
Dernière alerte              jeu. 12 nov. 2009 17:40:19 CET
ID local                      95f34351-dd29-49fd-878f-6461b3d3756e
Numéros des lignes           

Messages d'audit bruts        

node=(removed) type=AVC msg=audit(1258044019.518:9): avc:  denied  { read } for  pid=1610 comm="gdm-simple-gree" name="toxn" dev=sdc1 ino=12 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1258044019.518:9): arch=c000003e syscall=254 success=no exit=-13 a0=12 a1=24198b0 a2=1002fce a3=1 items=0 ppid=1577 pid=1610 auid=4294967295 uid=42 gid=479 euid=42 suid=42 fsuid=42 egid=479 sgid=479 fsgid=479 tty=(none) ses=4294967295 comm="gdm-simple-gree" exe="/usr/libexec/gdm-simple-greeter" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-41.fc12,file,gdm-simple-gree,xdm_t,file_t,dir,read
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t file_t:dir read;

Comment 1 Daniel Walsh 2009-11-17 13:39:29 UTC

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