#3871 sbus: allow non-root execution
Closed: Fixed 11 months ago Opened a year ago by pbrezina.

SSSD currently can not run in non-root mode because monitor (running under root) will terminate dbus connections from responders (running as sssd user).

(gdb) bt
#0  0x00007f7f37f449b0 in close () from /lib64/libc.so.6
#1  0x00007f7f38253b1b in _dbus_close (fd=21, error=error@entry=0x0) at ../../dbus/dbus-sysdeps-unix.c:3220
#2  0x00007f7f38253b69 in _dbus_close_socket (fd=..., error=error@entry=0x0) at ../../dbus/dbus-sysdeps-unix.c:289
#3  0x00007f7f3824ba9a in socket_disconnect (transport=0x55c68cd605e0) at ../../dbus/dbus-transport-socket.c:1045
#4  0x00007f7f3824998b in _dbus_transport_disconnect (transport=transport@entry=0x55c68cd605e0)
    at ../../dbus/dbus-transport.c:517
#5  0x00007f7f38249ac1 in _dbus_transport_disconnect (transport=0x55c68cd605e0) at ../../dbus/dbus-transport.c:686
#6  auth_via_default_rules (transport=0x55c68cd605e0) at ../../dbus/dbus-transport.c:686
#7  _dbus_transport_try_to_authenticate (transport=0x55c68cd605e0) at ../../dbus/dbus-transport.c:815
#8  0x00007f7f3824a275 in _dbus_transport_try_to_authenticate (transport=transport@entry=0x55c68cd605e0)
    at ../../dbus/dbus-transport.c:738
#9  0x00007f7f3824ad45 in do_authentication (transport=transport@entry=0x55c68cd605e0,
    do_reading=do_reading@entry=1, do_writing=do_writing@entry=0, auth_completed=auth_completed@entry=0x7fff7996ff54)
    at ../../dbus/dbus-transport-socket.c:483
#10 0x00007f7f3824bbc4 in socket_handle_watch (transport=0x55c68cd605e0, watch=<optimized out>,
    flags=<optimized out>) at ../../dbus/dbus-transport-socket.c:977
#11 0x00007f7f3824a38b in _dbus_transport_handle_watch (transport=0x55c68cd605e0, watch=watch@entry=0x55c68cd60340,
    condition=<optimized out>, condition@entry=1) at ../../dbus/dbus-transport.c:925
#12 0x00007f7f382328c1 in _dbus_connection_handle_watch (watch=0x55c68cd60340, condition=1, data=0x55c68cd60e30)
    at ../../dbus/dbus-connection.c:1508
#13 0x00007f7f38ab200d in sbus_watch_handler (ev=<optimized out>, fde=<optimized out>, flags=<optimized out>,
    data=<optimized out>) at src/sbus/connection/sbus_watch.c:133
#14 0x00007f7f38689cc3 in tevent_common_invoke_fd_handler () from /lib64/libtevent.so.0
#15 0x00007f7f3868c611 in poll_event_loop_once () from /lib64/libtevent.so.0
#16 0x00007f7f38689395 in _tevent_loop_once () from /lib64/libtevent.so.0
#17 0x00007f7f3868963b in tevent_common_loop_wait () from /lib64/libtevent.so.0
#18 0x00007f7f3b929947 in server_loop (main_ctx=0x55c68cd26110) at src/util/server.c:724
#19 0x000055c68b38880e in main (argc=<optimized out>, argv=<optimized out>) at src/monitor/monitor.c:2586

Metadata Update from @jhrozek:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1578014

a year ago

Metadata Update from @pbrezina:
- Issue assigned to pbrezina

a year ago

Metadata Update from @jhrozek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

11 months ago

Metadata Update from @jhrozek:
- Issue priority set to: blocker (was: minor)
- Issue set to the milestone: SSSD 2.1
- Issue tagged with: regression

11 months ago

Login to comment on this ticket.

Metadata