From: guidosarducci Date: Sun, 18 Jun 2017 23:53:21 +0000 (-0700) Subject: siproxd: clean up directory permissions, ownership X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9ff846270246e07602afab708eb9819b8d984f8d;p=feed%2Ftelephony.git siproxd: clean up directory permissions, ownership Signed-off-by: Tony Ambardar --- 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