Bug 544998

Summary: SELinux is preventing access to files with the label, file_t.
Product: [Fedora] Fedora Reporter: M. Hagoort <the_djmaze>
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: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:9b7acad9242b5209682cb92fae4e2fb07ad278779a2ac250082c062378352ebf
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-07 10:57:32 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 M. Hagoort 2009-12-07 09:44:27 UTC
Summary:

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

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

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                unconfined_u:system_r:mysqld_t:s0
Target Context                system_u:object_r:file_t:s0
Target Objects                attr_types.MYI [ file ]
Source                        mysqld
Source Path                   /usr/libexec/mysqld
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           mysql-server-5.1.39-4.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-49.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   file
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.6-145.fc12.x86_64 #1 SMP Sat Nov 21
                              15:57:45 EST 2009 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 05 Dec 2009 04:44:17 PM CET
Last Seen                     Sat 05 Dec 2009 04:44:17 PM CET
Local ID                      a6c0fbd5-6028-4a08-a007-6fc3754fcc9d
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260027857.960:79): avc:  denied  { write } for  pid=3960 comm="mysqld" name="attr_types.MYI" dev=sda2 ino=801048 scontext=unconfined_u:system_r:mysqld_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1260027857.960:79): arch=c000003e syscall=2 success=yes exit=28 a0=7f22b020e750 a1=2 a2=1b0 a3=fffffffffffffffd items=0 ppid=3134 pid=3960 auid=500 uid=27 gid=479 euid=27 suid=27 fsuid=27 egid=479 sgid=479 fsgid=479 tty=(none) ses=1 comm="mysqld" exe="/usr/libexec/mysqld" subj=unconfined_u:system_r:mysqld_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-49.fc12,file,mysqld,mysqld_t,file_t,file,write
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2009-12-07 10:57:32 UTC

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