Bug 545485

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
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:86a51471b376ac00638aab38765bacf6efbc3eaf08990149e955de12085227e3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-09 13:57:41 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-12-08 17:14:55 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                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:object_r:file_t:s0
Target Objects                /sources/binutils-build3/ld/tmpdir/shnp.so [ file
                              ]
Source                        shnp
Source Path                   /sources/binutils-build3/ld/tmpdir/shnp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-49.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   file
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.6-145.fc12.i686.PAE #1
                              SMP Sat Nov 21 16:12:37 EST 2009 i686 athlon
Alert Count                   2
First Seen                    Tue 08 Dec 2009 07:01:22 PM EET
Last Seen                     Tue 08 Dec 2009 07:01:22 PM EET
Local ID                      35a99148-43f1-4f5e-90b3-73a970e64b96
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260291682.798:22966): avc:  denied  { execmod } for  pid=944 comm="shnp" path="/sources/binutils-build3/ld/tmpdir/shnp.so" dev=sda5 ino=1013778 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:file_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1260291682.798:22966): arch=40000003 syscall=125 success=no exit=-13 a0=100000 a1=1000 a2=5 a3=bf851f30 items=0 ppid=29334 pid=944 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="shnp" exe="/sources/binutils-build3/ld/tmpdir/shnp" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-49.fc12,file,shnp,unconfined_t,file_t,file,execmod
audit2allow suggests:

#============= unconfined_t ==============
allow unconfined_t file_t:file execmod;

Comment 1 Daniel Walsh 2009-12-09 13:57:41 UTC

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