Bug 537614

Summary: SELinux is preventing access to files with the label, file_t.
Product: [Fedora] Fedora Reporter: Gleb Sharkunov <nocountryman>
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, peem_one
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:8e7c1c351c8020422cf6a4bef2081dfd9c6d77a667618a1380d7036ddf88f110
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-16 15:31:36 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 Gleb Sharkunov 2009-11-15 02:17:23 UTC
Summary:

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

Detailed Description:

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.

Allowing Access:

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

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:file_t:s0
Target Objects                .dmrc [ file ]
Source                        kdm
Source Path                   /usr/bin/kdm
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdm-4.3.2-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-41.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   file
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.5-127.fc12.i686.PAE #1
                              SMP Sat Nov 7 21:25:57 EST 2009 i686 athlon
Alert Count                   1
First Seen                    Sun 15 Nov 2009 04:14:22 AM EET
Last Seen                     Sun 15 Nov 2009 04:14:22 AM EET
Local ID                      3be4dce4-2715-40e7-a607-ef538f50ff4b
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1258251262.381:27875): avc:  denied  { write } for  pid=1505 comm="kdm" name=".dmrc" dev=sda2 ino=119 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1258251262.381:27875): arch=40000003 syscall=5 success=no exit=-13 a0=8065dbb a1=8a41 a2=180 a3=8065dbb items=0 ppid=1475 pid=1505 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="kdm" exe="/usr/bin/kdm" 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,kdm,xdm_t,file_t,file,write
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t file_t:file write;

Comment 1 Daniel Walsh 2009-11-16 15:31:36 UTC

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