Bug 543013 - SELinux is preventing /usr/sbin/nscd access to a leaked packet_socket file descriptor.
Summary: SELinux is preventing /usr/sbin/nscd access to a leaked packet_socket file de...
Keywords:
Status: CLOSED DUPLICATE of bug 541107
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:6089a47fdeb...
: 543017 543019 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-01 13:39 UTC by Serge Pavlovsky
Modified: 2014-03-17 03:21 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-01 20:24:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Serge Pavlovsky 2009-12-01 13:39:59 UTC
\u0421\u0432\u043e\u0434\u043a\u0430:

SELinux is preventing /usr/sbin/nscd access to a leaked packet_socket file
descriptor.

\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435:

[nscd \u0437\u0430\u043f\u0443\u0449\u0435\u043d \u0432 \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 (nscd_t).
\u042d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e.]

SELinux denied access requested by the nscd command. It looks like this is
either a leaked descriptor or nscd 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 packet_socket. You should generate a bugzilla on selinux-policy, and it will
get routed to the appropriate package. You can safely ignore this avc.

\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430:

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

\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f:

\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a unconfined_u:system_r:nscd_t:s0
\u0426\u0435\u043b\u0435\u0432\u043e\u0439 \u041a\u043e\u043d\u0442\u0435\u043a\u0441 unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
\u0426\u0435\u043b\u0435\u0432\u044b\u0435 \u041e\u0431\u044a\u0435\u043a\u0442\u044b packet_socket [ packet_socket ]
\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a              nscd
\u041f\u0443\u0442\u044c \u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\Uffffffff/usr/sbin/nscd
\u041f\u043e\u0440\u0442                      <\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e>
\u0423\u0437\u0435\u043b                      underdark.thor.od.ua
\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b nscd-2.11-2
\u0426\u0435\u043b\u0435\u0432\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b R 
RPM \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438          selinux-policy-3.6.32-46.fc12
Selinux \u0430\u043a\u0442\u0438\u0432\u043d\u0430        True
\u0422\u0438\u043f \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0438       targeted
\u041f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439  Enforcing
\u0418\u043c\u044f \u0434\u043e\u043f.\u043c\u043e\u0434\u0443\u043b\u044f    leaks
\u0418\u043c\u044f \u0445\u043e\u0441\u0442\u0430             underdark.thor.od.ua
\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430            Linux underdark.thor.od.ua
                              2.6.31.6-145.fc12.x86_64 #1 SMP Sat Nov 21
                              15:57:45 EST 2009 x86_64 x86_64
\u0421\u0447\u0435\u0442\u0447\u0438\u043a \u0443\u0432\u0435\u0434\u043e\u043c\u043b 16
\u041f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043c\u0435\u0447\u0435\u043d\u043d \u0421\u0431\u0442 28 \u041d\u043e\u044f 2009 18:03:41
\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0437\u0430\u043c\u0435\u0447 \u0412\u0442\u0440 01 \u0414\u0435\u043a 2009 15:14:08
\u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 ID         e1ea5cbe-b6c0-4d3f-9c9e-212a033070a7
\u041d\u043e\u043c\u0435\u0440\u0430 \u0441\u0442\u0440\u043e\u043a       

\u0421\u044b\u0440\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f 

node=underdark.thor.od.ua type=AVC msg=audit(1259673248.860:54726): avc:  denied  { read write } for  pid=3600 comm="nscd" path="socket:[54609]" dev=sockfs ino=54609 scontext=unconfined_u:system_r:nscd_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=packet_socket

node=underdark.thor.od.ua type=SYSCALL msg=audit(1259673248.860:54726): arch=c000003e syscall=59 success=yes exit=0 a0=1f50920 a1=1f50b90 a2=1f4b8d0 a3=7fff301590b0 items=0 ppid=3569 pid=3600 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="nscd" exe="/usr/sbin/nscd" subj=unconfined_u:system_r:nscd_t:s0 key=(null)



Hash String generated from  selinux-policy-3.6.32-46.fc12,leaks,nscd,nscd_t,unconfined_t,packet_socket,read,write
audit2allow suggests:

#============= nscd_t ==============
allow nscd_t unconfined_t:packet_socket { read write };

Comment 1 Daniel Walsh 2009-12-01 14:19:16 UTC
What tool were you running when you generated this avc?

Comment 2 Daniel Walsh 2009-12-01 14:19:47 UTC
*** Bug 543017 has been marked as a duplicate of this bug. ***

Comment 3 Daniel Walsh 2009-12-01 14:20:04 UTC
*** Bug 543019 has been marked as a duplicate of this bug. ***

Comment 4 Serge Pavlovsky 2009-12-01 15:53:40 UTC
ifdown/ifup

Comment 5 Daniel Walsh 2009-12-01 16:03:45 UTC
So this could be dhclient/ifconfig/ip?

Comment 6 Daniel Walsh 2009-12-01 16:09:23 UTC
I will add a dontaudit

Fixed in selinux-policy-3.6.32-52.fc12.noarch

But the initscripts should be fixed to not leak the packet_socket.

Comment 7 Daniel Walsh 2009-12-01 16:10:45 UTC
Serge is this related to 543013

Are you hooking up pppd networks?

Comment 8 Serge Pavlovsky 2009-12-01 17:12:42 UTC
(In reply to comment #5)
> So this could be dhclient/ifconfig/ip?  

its pppoe, afaiu it doesnt use dhcp

(In reply to comment #7)
> Serge is this related to 543013
title shows "Bug 543013"

> Are you hooking up pppd networks?  

not sure what "hooking up" means
interface is ppp over ethernet (TYPE=xDSL)

Comment 9 Daniel Walsh 2009-12-01 20:24:11 UTC

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


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