Bug 521750

Summary: setroubleshoot: SELinux is preventing the X from using potentially mislabeled files (/root/.serverauth.2592).
Product: [Fedora] Fedora Reporter: pavel mikula <pavel.mikula>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, jkubin, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3cad3d14ab51b4bd09b8e400e96a17e16e0f076b3245b3308fd6591935d162fe
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-08 14:47:43 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 pavel mikula 2009-09-08 06:30:58 UTC
The following was filed automatically by setroubleshoot:

Summary:

SELinux is preventing the X from using potentially mislabeled files
(/root/.serverauth.2592).

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 ***