aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-28 12:45:41 +0100
committerErmal <eri@pfsense.org>2013-03-28 12:45:41 +0100
commitd7ec5f1ec1c8eeee6c84bc3b85543543711655bc (patch)
treef975b208cffb6d09f3c26bf2885b9e3e054d49d3 /config
parent8a93e1031e88f255788778f26c6acccdcccd333b (diff)
downloadpfsense-packages-d7ec5f1ec1c8eeee6c84bc3b85543543711655bc.tar.gz
pfsense-packages-d7ec5f1ec1c8eeee6c84bc3b85543543711655bc.tar.bz2
pfsense-packages-d7ec5f1ec1c8eeee6c84bc3b85543543711655bc.zip
Correct permission otherwise openbgpd does not start
Diffstat (limited to 'config')
-rw-r--r--config/openbgpd/openbgpd.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc
index e5dd8069..45449793 100644
--- a/config/openbgpd/openbgpd.inc
+++ b/config/openbgpd/openbgpd.inc
@@ -180,7 +180,7 @@ function openbgpd_install_conf() {
safe_mkdir($bgpd_config_base);
// Write out the configuration file
@file_put_contents("{$bgpd_config_base}/bgpd.conf", $conffile);
- @chmod("{$bgpd_config_base}/bgpd.conf", 0666);
+ @chmod("{$bgpd_config_base}/bgpd.conf", 0600);
// Create rc.d file
$rc_file_stop = <<<EOF
@@ -197,7 +197,7 @@ fi
/bin/mkdir -p {$bgpd_config_base}
/usr/sbin/chown -R root:wheel {$bgpd_config_base}
-/bin/chmod u+rw,go-rw {$bgpd_config_base}/bgpd.conf
+/bin/chmod 0600 {$bgpd_config_base}/bgpd.conf
NUMBGPD=`ps auxw | grep -c '[b]gpd.*parent'`
if [ \${NUMBGPD} -lt 1 ] ; then