summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-11-29 23:14:36 +0100
committerMichal Schmidt <mschmidt@redhat.com>2011-11-30 10:12:59 +0100
commit75d3fc60f88e08bf953063819a8a04b881d6db23 (patch)
treec9e09035ca4a54263138207bf8d390d39d8d1c57 /units
parentsocket: add option for SO_PASSCRED (diff)
downloadeudev-75d3fc60f88e08bf953063819a8a04b881d6db23.tar.gz
eudev-75d3fc60f88e08bf953063819a8a04b881d6db23.tar.bz2
eudev-75d3fc60f88e08bf953063819a8a04b881d6db23.zip
shutdownd: use PassCred=yes in the socket unit
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
Diffstat (limited to 'units')
-rw-r--r--units/systemd-shutdownd.socket1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-shutdownd.socket b/units/systemd-shutdownd.socket
index bc0358a34..13b6c7a5c 100644
--- a/units/systemd-shutdownd.socket
+++ b/units/systemd-shutdownd.socket
@@ -15,3 +15,4 @@ Before=sockets.target
[Socket]
ListenDatagram=/run/systemd/shutdownd
SocketMode=0600
+PassCred=yes