Bug 836986 - SELinux is preventing /usr/bin/xauth from 'add_name' accesses on the directory slim.auth-c.
Summary: SELinux is preventing /usr/bin/xauth from 'add_name' accesses on the director...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:576e9b13cfb1247e388859e4c79...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-02 12:33 UTC by Hideyuki Tabata
Modified: 2012-10-17 08:35 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-10-17 08:35:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Hideyuki Tabata 2012-07-02 12:33:21 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.4-3.fc17.x86_64
time:           Mon 02 Jul 2012 09:30:51 PM JST

description:
:SELinux is preventing /usr/bin/xauth from 'add_name' accesses on the directory slim.auth-c.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that xauth should be allowed add_name access on the slim.auth-c 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                unconfined_u:object_r:var_run_t:s0
:Target Objects                slim.auth-c [ dir ]
:Source                        xauth
:Source Path                   /usr/bin/xauth
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           xorg-x11-xauth-1.0.7-1.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-134.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.4-3.fc17.x86_64 #1 SMP Tue
:                              Jun 26 20:54:56 UTC 2012 x86_64 x86_64
:Alert Count                   20
:First Seen                    Mon 02 Jul 2012 09:28:47 PM JST
:Last Seen                     Mon 02 Jul 2012 09:30:34 PM JST
:Local ID                      07ef6db6-9840-4325-a91f-451b85c7dacf
:
:Raw Audit Messages
:type=AVC msg=audit(1341232234.844:201): avc:  denied  { add_name } for  pid=3448 comm="xauth" name="slim.auth-c" scontext=unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1341232234.844:201): arch=x86_64 syscall=open success=no exit=EACCES a0=7fffba991830 a1=c1 a2=180 a3=8 items=0 ppid=3447 pid=3448 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm=xauth exe=/usr/bin/xauth subj=unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023 key=(null)
:
:Hash: xauth,xauth_t,var_run_t,dir,add_name
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Daniel Walsh 2012-07-18 20:21:35 UTC
This looks like a lableing issue in /var/run directory.

restorecon -R -v /run


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