From 9da5a0f1d05776801b85bd3a584652ad418644b2 Mon Sep 17 00:00:00 2001 From: Pat Maddox Date: Sun, 15 Dec 2024 01:20:24 -0800 Subject: [PATCH] certctl: Set METALOG ownership to root:wheel when run unprivileged This sets the correct ownership values in when building base.txz PR: 283340 Signed-off-by: Pat Maddox --- usr.sbin/certctl/certctl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/certctl/certctl.sh b/usr.sbin/certctl/certctl.sh index f95b4561d852c7..3c5516b14dfceb 100755 --- a/usr.sbin/certctl/certctl.sh +++ b/usr.sbin/certctl/certctl.sh @@ -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}