summaryrefslogtreecommitdiffstats
path: root/systemd/cynagora-admin.socket.in
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2019-12-12 18:10:48 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2019-12-13 16:00:27 +0100
commitc29761cd1628960ee2b11a469763479ac5ef1dfa (patch)
tree5bca3e838d04fc87814dcf9ce476679d15ab4f86 /systemd/cynagora-admin.socket.in
parent23bc1035a51fe54600db691981f8ed1537cbe125 (diff)
Improve integration of cynagoraicefish_8.99.4icefish/8.99.48.99.4
Allow to be more flexible when starting with or without systemd. At end this change will allows to start within systemd with socket activation or not and by sending notification without need of option. Make setting of the sockets more accurate. The admin and agent socket are now accessible only to clients of the expected group, cynagora by default. Bug-AGL: SPEC-3230 Bug-AGL: SPEC-2968 Change-Id: I3e5c7c00dfa0494628c18ffc016cfc8599a5bf9b Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'systemd/cynagora-admin.socket.in')
-rw-r--r--systemd/cynagora-admin.socket.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/systemd/cynagora-admin.socket.in b/systemd/cynagora-admin.socket.in
index 622c023..b2f5874 100644
--- a/systemd/cynagora-admin.socket.in
+++ b/systemd/cynagora-admin.socket.in
@@ -1,7 +1,9 @@
[Socket]
FileDescriptorName=admin
ListenStream=@DEFAULT_SOCKET_DIR@/cynagora.admin
-SocketMode=0600
+SocketUser=@USER@
+SocketGroup=@GROUP@
+SocketMode=0660
SmackLabelIPIn=@
SmackLabelIPOut=@