mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
75d3fc60f8
Since Linux 3.2 in order to receive SCM_CREDENTIALS it is not sufficient to set SO_PASSCRED just before recvmsg(). The option has to be already set when the sender sends the message. With socket activation it is too late to set the option in the service. It must be set on the socket right from the start. See the kernel commit: 16e57262 af_unix: dont send SCM_CREDENTIALS by default Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=757628
19 lines
486 B
SYSTEMD
19 lines
486 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
# See systemd.special(7) for details
|
|
|
|
[Unit]
|
|
Description=Delayed Shutdown Socket
|
|
DefaultDependencies=no
|
|
Before=sockets.target
|
|
|
|
[Socket]
|
|
ListenDatagram=/run/systemd/shutdownd
|
|
SocketMode=0600
|
|
PassCred=yes
|