Bug 896677 - SELinux is preventing /usr/bin/xauth from 'write' accesses on the directory /root.
Summary: SELinux is preventing /usr/bin/xauth from 'write' accesses on the directory /...
Keywords:
Status: CLOSED DUPLICATE of bug 709882
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:488ef8917832c7e96f55f56c00a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-17 18:05 UTC by sullivan_scott
Modified: 2013-01-18 07:39 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-18 07:39:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description sullivan_scott 2013-01-17 18:05:12 UTC
Description of problem:
SELinux is preventing /usr/bin/xauth from 'write' accesses on the directory /root.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/root default label should be admin_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /root

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that xauth should be allowed write access on the root directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep xauth /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023
Target Context                system_u:object_r:home_root_t:s0
Target Objects                /root [ dir ]
Source                        xauth
Source Path                   /usr/bin/xauth
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-xauth-1.0.7-2.fc18.x86_64
Target RPM Packages           filesystem-3.1-2.fc18.x86_64
Policy RPM                    selinux-policy-3.11.1-67.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.7.2-201.fc18.x86_64 #1 SMP Fri
                              Jan 11 22:16:23 UTC 2013 x86_64 x86_64
Alert Count                   10
First Seen                    2013-01-17 12:46:00 EST
Last Seen                     2013-01-17 12:46:18 EST
Local ID                      15fb85ab-73b3-4704-86a8-fe551dea3a3c

Raw Audit Messages
type=AVC msg=audit(1358444778.127:383): avc:  denied  { write } for  pid=5916 comm="xauth" name="root" dev="dm-1" ino=1966081 scontext=unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:home_root_t:s0 tclass=dir


type=SYSCALL msg=audit(1358444778.127:383): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffd0e5c310 a1=c1 a2=180 a3=8 items=0 ppid=5910 pid=5916 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=2 tty=(none) comm=xauth exe=/usr/bin/xauth subj=unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023 key=(null)

Hash: xauth,xauth_t,home_root_t,dir,write

audit2allow

#============= xauth_t ==============
#!!!! The source type 'xauth_t' can write to a 'dir' of the following types:
# admin_home_t, user_home_dir_t, tmp_t, user_tmp_t, user_home_t, nx_server_var_lib_t, xauth_tmp_t, var_lib_t, xdm_var_run_t

allow xauth_t home_root_t:dir write;

audit2allow -R

#============= xauth_t ==============
#!!!! The source type 'xauth_t' can write to a 'dir' of the following types:
# admin_home_t, user_home_dir_t, tmp_t, user_tmp_t, user_home_t, nx_server_var_lib_t, xauth_tmp_t, var_lib_t, xdm_var_run_t

allow xauth_t home_root_t:dir write;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.7.2-201.fc18.x86_64
type:           libreport

Potential duplicate: bug 709882

Comment 1 Miroslav Grepl 2013-01-18 07:39:16 UTC

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


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