Bug 710811 - SELinux is preventing /usr/bin/xauth from 'write' accesses on the directory auth-for-demus-Tt0K7y.
Summary: SELinux is preventing /usr/bin/xauth from 'write' accesses on the directory a...
Keywords:
Status: CLOSED DUPLICATE of bug 710810
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:612a5bb6a0e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-04 23:44 UTC by Daniel Demus
Modified: 2011-06-05 07:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-05 07:51:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Demus 2011-06-04 23:44:21 UTC
SELinux is preventing /usr/bin/xauth from 'write' accesses on the directory auth-for-demus-Tt0K7y.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that xauth should be allowed write access on the auth-for-demus-Tt0K7y 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
Target Context                unconfined_u:object_r:var_run_t:s0
Target Objects                auth-for-demus-Tt0K7y [ dir ]
Source                        xauth
Source Path                   /usr/bin/xauth
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-xauth-1.0.2-9.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-26.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.6-27.fc15.x86_64 #1 SMP
                              Sun May 15 17:23:28 UTC 2011 x86_64 x86_64
Alert Count                   10
First Seen                    Sun 05 Jun 2011 01:43:25 CEST
Last Seen                     Sun 05 Jun 2011 01:43:43 CEST
Local ID                      deb5621c-581a-467c-8f9e-6ef3a1b27c5b

Raw Audit Messages
type=AVC msg=audit(1307231023.983:89): avc:  denied  { write } for  pid=2590 comm="xauth" name="auth-for-demus-Tt0K7y" dev=tmpfs ino=22113 scontext=unconfined_u:unconfined_r:xauth_t:s0 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=dir


type=SYSCALL msg=audit(1307231023.983:89): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffdf7869a0 a1=c1 a2=180 a3=8 items=0 ppid=2584 pid=2590 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts0 ses=2 comm=xauth exe=/usr/bin/xauth subj=unconfined_u:unconfined_r:xauth_t:s0 key=(null)

Hash: xauth,xauth_t,var_run_t,dir,write

audit2allow

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

allow xauth_t var_run_t:dir write;

audit2allow -R

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

allow xauth_t var_run_t:dir write;

Comment 1 Miroslav Grepl 2011-06-05 07:51:13 UTC

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


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