From 5d468642c475c4e1160640f71ddcfb4dd49a7145 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 9 Jun 2022 10:43:28 +0200 Subject: [PATCH] system: post 22.7 we will be able to tighten /root permission #5475 This needs to boot 22.7 once and then we can introduce a base update with the 750 permission and adjust the chmod accordingly. --- src/etc/rc.subr.d/var | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/etc/rc.subr.d/var b/src/etc/rc.subr.d/var index cb1592c98..ce7a9a4fa 100755 --- a/src/etc/rc.subr.d/var +++ b/src/etc/rc.subr.d/var @@ -93,6 +93,11 @@ else # config restore for install media does not support # this as neither /var/log nor /root are persistent USE_MFS_VAR=0 + + # force the permission of /root to avoid a health audit + # error on ISO format that will not have the correct + # permission on boot + chmod 755 /root # XXX 750 when ready fi # XXX remove all renmants of /root/var handling after 22.7