Bug 524465 - setroubleshoot: SELinux is preventing /sbin/setfiles access to a leaked unix_dgram_socket file descriptor.
Summary: setroubleshoot: SELinux is preventing /sbin/setfiles access to a leaked ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:884715448df...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-09-20 15:28 UTC by Fredrik Duprez
Modified: 2009-09-20 16:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-20 16:01:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Fredrik Duprez 2009-09-20 15:28:03 UTC
The following was filed automatically by setroubleshoot:

Summary:

SELinux is preventing /sbin/setfiles access to a leaked unix_dgram_socket file
descriptor.

Detailed Description:

[restorecon has a permissive type (setfiles_t). This access was not denied.]

SELinux denied access requested by the restorecon command. It looks like this is
either a leaked descriptor or restorecon 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 unix_dgram_socket. 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://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385)

Additional Information:

Source Context                system_u:system_r:setfiles_t:s0-s0:c0.c1023
Target Context                system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.
                              c1023
Target Objects                unix_dgram_socket [ unix_dgram_socket ]
Source                        restorecon
Source Path                   /sbin/setfiles
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           policycoreutils-2.0.73-5.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-1.fc12
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   leaks
Host Name                     (removed)
Platform                      Linux (removed) 2.6.31-23.fc12.i686 #1 SMP Wed Sep
                              16 16:09:25 EDT 2009 i686 i686
Alert Count                   3
First Seen                    Sun 20 Sep 2009 05:04:51 PM CEST
Last Seen                     Sun 20 Sep 2009 05:13:43 PM CEST
Local ID                      b51ff36c-82ec-4ac1-8112-e3d875c069ec
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1253459623.281:36): avc:  denied  { read write } for  pid=2646 comm="restorecon" path="socket:[20612]" dev=sockfs ino=20612 scontext=system_u:system_r:setfiles_t:s0-s0:c0.c1023 tcontext=system_u:system_r:setroubleshoot_fixit_t:s0-s0:c0.c1023 tclass=unix_dgram_socket

node=(removed) type=SYSCALL msg=audit(1253459623.281:36): arch=40000003 syscall=11 success=yes exit=0 a0=8dd35e8 a1=8dd3568 a2=8dd2a90 a3=8dd3568 items=0 ppid=2645 pid=2646 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="restorecon" exe="/sbin/setfiles" subj=system_u:system_r:setfiles_t:s0-s0:c0.c1023 key=(null)


audit2allow suggests:

#============= setfiles_t ==============
allow setfiles_t setroubleshoot_fixit_t:unix_dgram_socket { read write };

Comment 1 Daniel Walsh 2009-09-20 16:01:34 UTC
Could you yum update and see if this is fixed.  I believe it is.


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