mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Install /etc/snmpd.config with 0600 permissions.
Noticed by: Pierre Kim Security: SA-16:06.snmpd Pointy hat to: glebius in 2005
This commit is contained in:
parent
f73d9fd2f1
commit
dc5f4fa86e
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue