Bug 693063

Summary: SELinux is preventing /usr/bin/xauth from 'unlink' accesses on the archivo database-c.
Product: [Fedora] Fedora Reporter: Pablo Iranzo Gómez <pablo.iranzo>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3c18637f9aa587fc41b842e8e79e515f0b7c399b338168f6a61da833c3afe2ee
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-04 07:46:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pablo Iranzo Gómez 2011-04-02 09:56:27 UTC
SELinux is preventing /usr/bin/xauth from 'unlink' accesses on the archivo database-c.

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

If you believe that xauth should be allowed unlink access on the database-c file 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:user_tmpfs_t:s0
Target Objects                database-c [ file ]
Source                        xauth
Source Path                   /usr/bin/xauth
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           xorg-x11-xauth-1.0.2-9.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-9.fc15.i686 #1 SMP Wed Mar 30
                              16:54:01 UTC 2011 i686 i686
Alert Count                   1
First Seen                    sáb 02 abr 2011 11:55:10 CEST
Last Seen                     sáb 02 abr 2011 11:55:10 CEST
Local ID                      9ecb240b-7754-4e2e-ae1e-d7fb9b73b35a

Raw Audit Messages
type=AVC msg=audit(1301738110.516:620): avc:  denied  { unlink } for  pid=7268 comm="xauth" name="database-c" dev=tmpfs ino=138807 scontext=unconfined_u:unconfined_r:xauth_t:s0 tcontext=unconfined_u:object_r:user_tmpfs_t:s0 tclass=file


type=SYSCALL msg=audit(1301738110.516:620): arch=i386 syscall=unlink success=yes exit=0 a0=bfd165ba a1=0 a2=4b25bc34 a3=bfd169bb items=0 ppid=7267 pid=7268 auid=11356 uid=11356 gid=11356 euid=11356 suid=11356 fsuid=11356 egid=11356 sgid=11356 fsgid=11356 tty=pts3 ses=1 comm=xauth exe=/usr/bin/xauth subj=unconfined_u:unconfined_r:xauth_t:s0 key=(null)

Hash: xauth,xauth_t,user_tmpfs_t,file,unlink

audit2allow

#============= xauth_t ==============
allow xauth_t user_tmpfs_t:file unlink;

audit2allow -R

#============= xauth_t ==============
allow xauth_t user_tmpfs_t:file unlink;

Comment 1 Miroslav Grepl 2011-04-04 07:46:33 UTC

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