Bug 801173 - SELinux is preventing /usr/lib64/dbus-1/dbus-daemon-launch-helper from 'connectto' accesses on the unix_stream_socket /var/lib/sss/pipes/nss.
Summary: SELinux is preventing /usr/lib64/dbus-1/dbus-daemon-launch-helper from 'conne...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:4ce084f9863055131b9a23751cb...
: 963533 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-07 20:38 UTC by Stef Walter
Modified: 2019-03-20 07:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-08 09:32:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stef Walter 2012-03-07 20:38:12 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc6.git0.2.fc17.x86_64
reason:         SELinux is preventing /usr/lib64/dbus-1/dbus-daemon-launch-helper from 'connectto' accesses on the unix_stream_socket /var/lib/sss/pipes/nss.
time:           2012-03-07T21:38:02 CET

description:
:SELinux is preventing /usr/lib64/dbus-1/dbus-daemon-launch-helper from 'connectto' accesses on the unix_stream_socket /var/lib/sss/pipes/nss.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that dbus-daemon-launch-helper should be allowed connectto access on the nss unix_stream_socket 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 dbus-daemon-lau /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
:Target Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
:                              023
:Target Objects                /var/lib/sss/pipes/nss [ unix_stream_socket ]
:Source                        dbus-daemon-lau
:Source Path                   /usr/lib64/dbus-1/dbus-daemon-launch-helper
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           dbus-1.4.10-4.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-95.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed)
:                              3.3.0-0.rc6.git0.2.fc17.x86_64 #1 SMP Mon Mar 5
:                              16:54:07 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-03-07T21:37:43 CET
:Last Seen                     2012-03-07T21:37:43 CET
:Local ID                      0a3e5d02-71d8-4bcc-b807-2359c6d73680
:
:Raw Audit Messages
:type=AVC msg=audit(1331152663.731:1313): avc:  denied  { connectto } for  pid=30490 comm="dbus-daemon-lau" path="/var/lib/sss/pipes/nss" scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=unix_stream_socket
:
:
:type=SYSCALL msg=audit(1331152663.731:1313): arch=x86_64 syscall=connect success=no exit=EACCES a0=3 a1=7ffffbb64e40 a2=6e a3=7ffffbb64b00 items=0 ppid=30489 pid=30490 auid=4294967295 uid=81 gid=81 euid=0 suid=0 fsuid=0 egid=81 sgid=81 fsgid=81 tty=(none) ses=4294967295 comm=dbus-daemon-lau exe=/usr/lib64/dbus-1/dbus-daemon-launch-helper subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: dbus-daemon-lau,system_dbusd_t,unconfined_t,unix_stream_socket,connectto
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-03-08 09:32:01 UTC
This tells us you started sssd by hand ... I mean without using the sssd unit file.

So what happened:

unconfined_t @ sssd_exec_t -> sssd running as unconfined_t


$ systemctl restart sssd.service

Comment 2 Stef Walter 2012-03-08 10:04:46 UTC
I'm working on sssd. Any ideas on how would i start it manually, while respecting selinux restrictions?

Comment 3 Daniel Walsh 2012-03-08 14:34:22 UTC
Start it with the service script.  If you want to run it from a debugger, you could connect to the running daemon, or put the machine in permissive mode and ignore the AVC's

Comment 4 Miroslav Grepl 2012-03-08 15:01:22 UTC
If you need to start it with "-d" option there is a way and you can use runcon.

Comment 5 Miroslav Grepl 2012-03-08 15:04:42 UTC
$ runcon -u system_u -r system_r -t initrc_t -- runcon -t sssd_t -- /sbin/sssd -d LEVEL

Comment 6 Stef Walter 2012-03-08 19:07:37 UTC
Thanks!

Comment 7 Miroslav Grepl 2013-05-16 05:50:49 UTC
*** Bug 963533 has been marked as a duplicate of this bug. ***


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