Bug 521750 - setroubleshoot: SELinux is preventing the X from using potentially mislabeled files (/root/.serverauth.2592).
Summary: setroubleshoot: SELinux is preventing the X from using potentially misla...
Status: CLOSED DUPLICATE of bug 521751
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:3cad3d14ab5...
Depends On:
TreeView+ depends on / blocked
Reported: 2009-09-08 06:30 UTC by pavel mikula
Modified: 2009-09-08 14:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-08 14:47:43 UTC

Attachments (Terms of Use)

Description pavel mikula 2009-09-08 06:30:58 UTC
The following was filed automatically by setroubleshoot:


SELinux is preventing the X from using potentially mislabeled files

Detailed Description:

[X has a permissive type (xserver_t). This access was not denied.]

SELinux has denied X access to potentially mislabeled file(s)
(/root/.serverauth.2592). This means that SELinux will not allow X to use these
files. It is common for users to edit files in their home directory or tmp
directories and then move (mv) them to system directories. The problem is that
the files end up with the wrong file context which confined applications are not
allowed to access.

Allowing Access:

If you want X to access this files, you need to relabel them using restorecon -v
'/root/.serverauth.2592'. You might want to relabel the entire directory using
restorecon -R -v '/root'.

Additional Information:

Source Context                unconfined_u:unconfined_r:xserver_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:admin_home_t:s0
Target Objects                /root/.serverauth.2592 [ file ]
Source                        X
Source Path                   /usr/bin/Xorg
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-server-Xorg-1.6.99-43.20090828.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.30-1.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   home_tmp_bad_labels
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31-0.190.rc8.fc12.i686 #1
                              SMP Fri Aug 28 19:07:13 EDT 2009 i686 i686
Alert Count                   3
First Seen                    Tue 08 Sep 2009 08:21:46 AM CEST
Last Seen                     Tue 08 Sep 2009 08:26:04 AM CEST
Local ID                      7aedd75b-df71-468d-9d05-c1e6a48751c9
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1252391164.812:46): avc:  denied  { getattr } for  pid=2609 comm="X" path="/root/.serverauth.2592" dev=dm-0 ino=5599 scontext=unconfined_u:unconfined_r:xserver_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1252391164.812:46): arch=40000003 syscall=195 success=yes exit=0 a0=bfa95964 a1=bfa9389c a2=7a7ff4 a3=3 items=0 ppid=2608 pid=2609 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=3 comm="X" exe="/usr/bin/Xorg" subj=unconfined_u:unconfined_r:xserver_t:s0-s0:c0.c1023 key=(null)

audit2allow suggests:

#============= xserver_t ==============
allow xserver_t admin_home_t:file getattr;

Comment 1 Daniel Walsh 2009-09-08 14:47:43 UTC

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

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