Fwknop: Set correct file permissions when generating config files
authorJonathan Bennett <jbennett@incomsystems.biz>
Wed, 17 Aug 2016 04:08:00 +0000 (23:08 -0500)
committerJonathan Bennett <jbennett@incomsystems.biz>
Wed, 17 Aug 2016 15:18:23 +0000 (10:18 -0500)
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
net/fwknop/files/fwknopd.init

index 94c426c4780ae78587f51c290c1237a802e79a5e..c342c20b29fff37174f059dda0ead306dd1e6ff6 100644 (file)
@@ -53,6 +53,8 @@ gen_confs()
                                if [ "$option" = "uci_enabled" ] && [ "$value" -eq 1 ] ; then
                                        > /etc/fwknop/fwknopd.conf
                                        > /etc/fwknop/access.conf
+                                        chmod 600 /etc/fwknop/fwknopd.conf
+                                        chmod 600 /etc/fwknop/access.conf
                                        UCI_ENABLED=1
                                fi
                        }