Bug 600797 - SELinux is preventing /usr/bin/xauth access to a leaked inotify file descriptor.
Summary: SELinux is preventing /usr/bin/xauth access to a leaked inotify file descriptor.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:a85a2e1985d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-06 05:06 UTC by Gleb Sharkunov
Modified: 2010-06-23 17:48 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.7.19-28.fc13
Clone Of:
Environment:
Last Closed: 2010-06-23 17:48:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gleb Sharkunov 2010-06-06 05:06:24 UTC
Summary:

SELinux is preventing /usr/bin/xauth access to a leaked inotify file descriptor.

Detailed Description:

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

SELinux denied access requested by the xauth command. It looks like this is
either a leaked descriptor or xauth output was redirected to a file it is not
allowed to access. Leaks usually can be ignored since SELinux is just closing
the leak and reporting the error. The application does not use the descriptor,
so it will run properly. If this is a redirection, you will not get output in
the inotify. You should generate a bugzilla on selinux-policy, and it will get
routed to the appropriate package. You can safely ignore this avc.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385)

Additional Information:

Source Context                unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023
Target Context                system_u:object_r:inotifyfs_t:s0
Target Objects                inotify [ dir ]
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.7.19-21.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.5-112.fc13.i686 #1 SMP Thu May
                              27 03:11:56 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Sun 06 Jun 2010 08:04:25 AM EEST
Last Seen                     Sun 06 Jun 2010 08:04:25 AM EEST
Local ID                      a5403270-e541-4a8e-92ce-8460a2713407
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1275800665.244:26911): avc:  denied  { read } for  pid=11286 comm="xauth" path="inotify" dev=inotifyfs ino=1 scontext=unconfined_u:unconfined_r:xauth_t:s0-s0:c0.c1023 tcontext=system_u:object_r:inotifyfs_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1275800665.244:26911): arch=40000003 syscall=11 success=yes exit=0 a0=8d22eb0 a1=8d222c0 a2=8d21ca8 a3=8d222c0 items=0 ppid=11285 pid=11286 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) 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  leaks,xauth,xauth_t,inotifyfs_t,dir,read
audit2allow suggests:

#============= xauth_t ==============
allow xauth_t inotifyfs_t:dir read;

Comment 1 Daniel Walsh 2010-06-07 14:07:13 UTC
Miroslav

Add

     fs_dontaudit_list_inotifyfs(xauth_t)

Comment 2 Miroslav Grepl 2010-06-08 12:21:43 UTC
Fixed in selinux-policy-3.7.19-25.fc13

Comment 3 Fedora Update System 2010-06-14 19:29:57 UTC
selinux-policy-3.7.19-28.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/selinux-policy-3.7.19-28.fc13

Comment 4 Fedora Update System 2010-06-15 15:59:56 UTC
selinux-policy-3.7.19-28.fc13 has been pushed to the Fedora 13 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/selinux-policy-3.7.19-28.fc13

Comment 5 Fedora Update System 2010-06-23 17:46:51 UTC
selinux-policy-3.7.19-28.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


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