summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2016-01-14 10:25:18 +0000
committerglebius <glebius@FreeBSD.org>2016-01-14 10:25:18 +0000
commitf3fc768c415b6d66657e69286102ccb4d8291399 (patch)
treee1a94c1b16db35c34d755526ffe9d8d24c48e074
parentb4a3f7e7692d1fe6a5170df46b2f27c8eda25cd2 (diff)
downloadFreeBSD-src-f3fc768c415b6d66657e69286102ccb4d8291399.zip
FreeBSD-src-f3fc768c415b6d66657e69286102ccb4d8291399.tar.gz
Install /etc/snmpd.config with 0600 permissions.
Noticed by: Pierre Kim Security: SA-16:06.snmpd Pointy hat to: glebius in 2005
-rw-r--r--etc/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 5484c11..27d1ba4 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -82,10 +82,6 @@ BIN1+= apmd.conf
BIN1+= auto_master
.endif
-.if ${MK_BSNMP} != "no"
-BIN1+= snmpd.config
-.endif
-
.if ${MK_FREEBSD_UPDATE} != "no"
BIN1+= freebsd-update.conf
.endif
@@ -219,6 +215,11 @@ distribution:
${BIN2} ${DESTDIR}/etc; \
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
+.if ${MK_BSNMP} != "no"
+ cd ${.CURDIR}; \
+ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
+ snmpd.config ${DESTDIR}/etc;
+.endif
.if ${MK_AT} == "no"
sed -i "" -e 's;.*/usr/libexec/atrun;#&;' ${DESTDIR}/etc/crontab
.endif
OpenPOWER on IntegriCloud