Bug 836986 - SELinux is preventing /usr/bin/xauth from 'add_name' accesses on the directory slim.auth-c.
SELinux is preventing /usr/bin/xauth from 'add_name' accesses on the director...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-07-02 08:33 EDT by Hideyuki Tabata
Modified: 2012-10-17 04:35 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-10-17 04:35:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hideyuki Tabata 2012-07-02 08:33:21 EDT
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

: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.
: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 16:21:35 EDT
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.