From ff3f6f86653263834a377a33661fc91ed9ac8409 Mon Sep 17 00:00:00 2001 From: guidosarducci Date: Sun, 18 Jun 2017 16:53:21 -0700 Subject: [PATCH] siproxd: clean up directory permissions, ownership Signed-off-by: Tony Ambardar --- net/siproxd/files/siproxd.init | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/net/siproxd/files/siproxd.init b/net/siproxd/files/siproxd.init index 46c0119..b175598 100644 --- a/net/siproxd/files/siproxd.init +++ b/net/siproxd/files/siproxd.init @@ -230,13 +230,16 @@ stop_instance() { } start() { - mkdir -m 0755 -p "$siproxd_conf_dir" - mkdir -m 0755 -p "$siproxd_registration_dir" - [ -d "$siproxd_pid_dir" ] || { - mkdir -m 0755 -p "$siproxd_pid_dir" - chmod 0750 "$siproxd_pid_dir" - chown nobody:nogroup "$siproxd_pid_dir" - } + mkdir -p "$siproxd_conf_dir" + chmod 755 "$siproxd_conf_dir" + + mkdir -p "$siproxd_registration_dir" + chmod 700 "$siproxd_registration_dir" + chown nobody:nogroup "$siproxd_registration_dir" + + mkdir -p "$siproxd_pid_dir" + chmod 700 "$siproxd_pid_dir" + chown nobody:nogroup "$siproxd_pid_dir" include /lib/network . /lib/functions/network.sh -- 2.30.2