diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-09-11 19:44:33 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-09-11 19:44:33 +0000 |
commit | 33dd9ab63b42e49cf3cca73c2838a1617b6d8ed6 (patch) | |
tree | f36f207290c2a93fcfcfb1713a0b1656fcc34478 /etc/Makefile | |
parent | 0dd497ddf5f170e9e116b0b3937712bea6e0515e (diff) |
Set owner for /etc/{passwd,pwd.db,spwd.db} and /var/sysmerge/etcsum.
from rpe
Diffstat (limited to 'etc/Makefile')
-rw-r--r-- | etc/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/Makefile b/etc/Makefile index 887de5996b1..f3c1dfbb105 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.431 2016/09/11 06:51:17 natano Exp $ +# $OpenBSD: Makefile,v 1.432 2016/09/11 19:44:32 natano Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= Canada/Mountain @@ -94,6 +94,8 @@ distribution-etc-root-var: distrib-dirs ${INSTALL} -c -o root -g crontab -m 600 crontab ${DESTDIR}/var/cron/tabs/root ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc pwd_mkdb -p -d ${DESTDIR}/etc /etc/master.passwd + chown root:wheel ${DESTDIR}/etc/passwd ${DESTDIR}/etc/pwd.db + chown root:_shadow ${DESTDIR}/etc/spwd.db ${INSTALL} -c -o root -g wheel -m 600 pf.conf ${DESTDIR}/etc ${INSTALL} -c -o root -g _nsd -m 640 nsd.conf ${DESTDIR}/var/nsd/etc ${INSTALL} -c -o root -g wheel -m 644 unbound.conf ${DESTDIR}/var/unbound/etc @@ -210,6 +212,7 @@ distribution-etc-root-var: distrib-dirs cd ${DESTDIR}/var; ln -fs ../tmp chown -h root:wheel ${DESTDIR}/var/tmp touch ${DESTDIR}/var/sysmerge/etcsum + chown root:wheel ${DESTDIR}/var/sysmerge/etcsum cd ${DESTDIR}/ && \ sort ${.CURDIR}/../distrib/sets/lists/etc/{mi,md.${MACHINE}} | \ xargs sha256 -h ${DESTDIR}/var/sysmerge/etcsum || true |