Systemd/src/portable
Lennart Poettering 3691bcf3c5 tree-wide: use recvmsg_safe() at various places
Let's be extra careful whenever we return from recvmsg() and see
MSG_CTRUNC set. This generally means we ran into a programming error, as
we didn't size the control buffer large enough. It's an error condition
we should at least log about, or propagate up. Hence do that.

This is particularly important when receiving fds, since for those the
control data can be of any size. In particular on stream sockets that's
nasty, because if we miss an fd because of control data truncation we
cannot recover, we might not even realize that we are one off.

(Also, when failing early, if there's any chance the socket might be
AF_UNIX let's close all received fds, all the time. We got this right
most of the time, but there were a few cases missing. God, UNIX is hard
to use)
2020-04-23 09:41:47 +02:00
..
profile portable: add SystemCallFilter=@system-service to the three main portable service profiles 2018-06-14 17:44:20 +02:00
meson.build
org.freedesktop.portable1.conf portabled: fix dbus policy 2019-04-03 17:24:12 +02:00
org.freedesktop.portable1.policy portable: update polkit messages 2018-06-19 13:21:17 +09:00
org.freedesktop.portable1.service
portable.c tree-wide: use recvmsg_safe() at various places 2020-04-23 09:41:47 +02:00
portable.h portable: introduce portable_metadata_hash_ops and use it 2018-12-02 12:18:54 +01:00
portablectl.c portablectl: block when stopping a unit on detach (--now) 2020-02-18 12:02:53 +00:00
portabled-bus.c shared: split out polkit stuff from bus-util.c → bus-polkit.c 2020-01-22 12:34:10 +01:00
portabled-bus.h
portabled-image-bus.c *: convert amenable fdopen calls to take_fdopen 2020-03-31 06:48:03 -07:00
portabled-image-bus.h tree-wide: add multiple inclusion guard 2018-06-25 13:04:59 +09:00
portabled-image.c machine-image: introduce image_hash_ops and use it 2018-12-02 12:18:54 +01:00
portabled-image.h tree-wide: add multiple inclusion guard 2018-06-25 13:04:59 +09:00
portabled-operation.c
portabled-operation.h
portabled.c tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
portabled.h