certctl: Set METALOG ownership to root:wheel

This sets the correct ownership values when building base.txz

This is an updated version of commit 10fa3f2518, omitting the
`-N ${DESTDIR}${DISTBASE}/etc` from the original commit.

install(1) does not validate the arguments passed to -o or -g
(see PR283355) so there's no need to have the passwd db available
for now.  Future work includes plumbing the appropriate passwd db
path through certctl, and validating uid and gid in install(1).

PR:		283340
Reviewed by:	jrtc27
Differential Revision: https://reviews.freebsd.org/D48506
This commit is contained in:
Pat Maddox
2024-12-15 01:20:24 -08:00
committed by Ed Maste
parent a8b49e7c66
commit 4d15b58365
+1 -1
View File
@@ -334,7 +334,7 @@ fi
: ${METALOG:=${DESTDIR}/METALOG}
INSTALLFLAGS=
if "$UNPRIV" ; then
INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR}"
INSTALLFLAGS="-U -M ${METALOG} -D ${DESTDIR} -o root -g wheel"
fi
: ${LOCALBASE:=$(sysctl -n user.localbase)}
: ${TRUSTPATH:=${DESTDIR}${DISTBASE}/usr/share/certs/trusted:${DESTDIR}${LOCALBASE}/share/certs:${DESTDIR}${LOCALBASE}/etc/ssl/certs}