Blob Blame History Raw
From 6e4f39357a90a914d11bac21cc2d2b52c07c213d Mon Sep 17 00:00:00 2001
From: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Date: Thu, 26 Mar 2020 17:18:47 +0530
Subject: [PATCH] targetclid.sock: change SocketMode to 0600

SocketMode=
If listening on a file system socket or FIFO, this option specifies the
file system access mode used when creating the file node. Takes an
access mode in octal notation. Defaults to 0666.

Thanks Alex Murray[@alexmurray], for reporting.

Fixes: #162
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
---
 systemd/targetclid.socket | 1 +
 1 file changed, 1 insertion(+)

diff --git a/systemd/targetclid.socket b/systemd/targetclid.socket
index 4730fce..ba29ebb 100644
--- a/systemd/targetclid.socket
+++ b/systemd/targetclid.socket
@@ -4,6 +4,7 @@ Documentation=man:targetclid(8)
 
 [Socket]
 ListenStream=/var/run/targetclid.sock
+SocketMode=0600
 
 [Install]
 WantedBy=sockets.target
-- 
2.21.0