Bug 540976 - SELinux is preventing access to files with the label, file_t.
Summary: SELinux is preventing access to files with the label, file_t.
Keywords:
Status: CLOSED DUPLICATE of bug 537613
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:908149c9e6a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-24 16:11 UTC by Daniel Scott
Modified: 2009-11-24 16:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-11-24 16:29:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Scott 2009-11-24 16:11:20 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                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:file_t:s0
Target Objects                V3124999 [ file ]
Source                        kdm_greet
Source Path                   /usr/libexec/kde4/kdm_greet
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           kdm-4.3.2-1.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-46.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   file
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31.5-127.fc12.x86_64 #1
                              SMP Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64
Alert Count                   1
First Seen                    Tue 24 Nov 2009 10:48:58 AM EST
Last Seen                     Tue 24 Nov 2009 10:48:58 AM EST
Local ID                      a6ea1bc6-f6d7-4e10-8bca-6dfab4b61526
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259077738.961:2409940): avc:  denied  { read write open } for  pid=2207 comm="kdm_greet" name="V3124999" dev=dm-0 ino=4251876 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(1259077738.961:2409940): arch=c000003e syscall=2 success=no exit=-13 a0=c27698 a1=800 a2=c27698 a3=656d6f682f6e696d items=0 ppid=2201 pid=2207 auid=4294967295 uid=0 gid=0 euid=99 suid=0 fsuid=99 egid=99 sgid=0 fsgid=99 tty=(none) ses=4294967295 comm="kdm_greet" exe="/usr/libexec/kde4/kdm_greet" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-46.fc12,file,kdm_greet,xdm_t,file_t,file,read,write,open
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t file_t:file { read write open };

Comment 1 Daniel Walsh 2009-11-24 16:29:36 UTC

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


Note You need to log in before you can comment on or make changes to this bug.