Bug 559756

Summary: SELinux is preventing /usr/bin/xauth "read" access on @sys.
Product: [Fedora] Fedora Reporter: Daniel Scott <dan>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:116d868130e84de4094469a53249955af1f631aac73dca5505e0de7ca11787ae
Fixed In Version: 3.6.32-84.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-11 14:42:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Miroslav add this patch for xauth and hostname to ignore leaked file descriptors none

Description Daniel Scott 2010-01-28 21:42:40 UTC
Summary:

SELinux is preventing /usr/bin/xauth "read" access on @sys.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by xauth. It is not expected that this access is
required by xauth and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023
Target Context                system_u:object_r:nfs_t:s0
Target Objects                @sys [ lnk_file ]
Source                        xauth
Source Path                   /usr/bin/xauth
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           xorg-x11-xauth-1.0.2-7.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-73.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Thu 28 Jan 2010 12:10:40 PM EST
Last Seen                     Thu 28 Jan 2010 12:10:40 PM EST
Local ID                      b3699f0f-e868-4a88-b950-e45d056aa417
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1264698640.478:57): avc:  denied  { read } for  pid=6236 comm="xauth" name="@sys" dev=afs ino=19857410 scontext=unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:nfs_t:s0 tclass=lnk_file

node=(removed) type=SYSCALL msg=audit(1264698640.478:57): arch=c000003e syscall=4 success=no exit=-2 a0=7fff8e1a7d30 a1=7fff8e1a7890 a2=7fff8e1a7890 a3=7fff8e1a7920 items=0 ppid=6228 pid=6236 auid=768 uid=1148 gid=1002 euid=1148 suid=1148 fsuid=1148 egid=1002 sgid=1002 fsgid=1002 tty=pts4 ses=1 comm="xauth" exe="/usr/bin/xauth" subj=unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-73.fc12,catchall,xauth,xauth_t,nfs_t,lnk_file,read
audit2allow suggests:

#============= xauth_t ==============
allow xauth_t nfs_t:lnk_file read;

Comment 1 Daniel Walsh 2010-01-28 22:05:13 UTC
Created attachment 387449 [details]
Miroslav add this patch for xauth and hostname to ignore leaked file descriptors

Comment 2 Miroslav Grepl 2010-01-29 09:04:26 UTC
Fixed in selinux-policy-3.6.32-79.fc12

Comment 3 Fedora Update System 2010-02-03 23:19:21 UTC
selinux-policy-3.6.32-82.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-82.fc12

Comment 4 Fedora Update System 2010-02-05 01:45:25 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-1492

Comment 5 Fedora Update System 2010-02-11 14:38:15 UTC
selinux-policy-3.6.32-84.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.