summaryrefslogtreecommitdiffstats
path: root/src/portable/portable.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* portable: create/remove the 'attached' unit file directory when we canLennart Poettering2018-10-081-3/+17
| | | | | Let's not litter the system with this unit directory unnecessarily, and let's try to create/remove it when necessary.
* portable: properly handle if the unit file directory for portable service ↵Lennart Poettering2018-10-081-6/+19
| | | | | | | images doesn't exist if the dir doesn#t exist then let's consider this indication for "this image isn't attached".
* portable: make use of the new unit file pathLennart Poettering2018-10-081-6/+6
| | | | | | | | Note that this breaks compatibility with older versions, as the detach code won't find unit files attached with older releases anymore. But given that the portable service logic was not deemed stable so far, and this was explicitly documented and enforced through portablectl's installation to /usr/lib/systemd/ such a compat breakage should be fine.
* portable: fix error handlingYu Watanabe2018-06-251-1/+1
|
* tree-wide: drop MSG_NOSIGNAL flag from recvmsg() invocationsLennart Poettering2018-06-201-1/+1
| | | | | | | | MSG_NOSIGNAL is only defined for sendmsg(), not for recvmsg(), hence let's drop it's use, in particular as it appears to create problems on older kernels. See: https://lists.freedesktop.org/archives/systemd-devel/2018-June/040869.html
* path-util: introduce path_simplify()Yu Watanabe2018-06-031-2/+2
| | | | | | | | The function is similar to path_kill_slashes() but also removes initial './', trailing '/.', and '/./' in the path. When the second argument of path_simplify() is false, then it behaves as the same as path_kill_slashes(). Hence, this also replaces path_kill_slashes() with path_simplify().
* add new portable service frameworkLennart Poettering2018-05-241-0/+1427
This adds a small service "systemd-portabled" and a matching client "portablectl", which implement the "portable service" concept. The daemon implements the actual operations, is PolicyKit-enabled and is activated on demand with exit-on-idle. Both the daemon and the client are an optional build artifact, enabled by default rhough.