From 150d1cd59e43bfb52f437dfd12ae622a456f7e83 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 17 Oct 2007 04:14:19 +0000 Subject: Ensure file is only user readable --- packages/openbgpd/openbgpd.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages') diff --git a/packages/openbgpd/openbgpd.inc b/packages/openbgpd/openbgpd.inc index cb85fbe6..5a6a448b 100644 --- a/packages/openbgpd/openbgpd.inc +++ b/packages/openbgpd/openbgpd.inc @@ -123,6 +123,8 @@ function openbgpd_install_conf() { fwrite($fd, "bgpd\n"); fclose($fd); exec("chmod a+rx /usr/local/etc/rc.d/bgpd.sh"); + exec("chmod a-rw /usr/local/etc/bgpd.conf"); + exec("chmod a+rw /usr/local/etc/bgpd.conf"); // bgpd process running? if so reload, elsewise start. if(is_openbgpd_running() == true) { -- cgit v1.2.3