Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2021 10:56:34 -0800 (PST)
From:      "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net>
To:        Brandon Bergren <bdragon@FreeBSD.org>
Cc:        rgrimes@FreeBSD.org, Nathan Whitehorn <nwhitehorn@FreeBSD.org>, src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 2c26d77d989a - main - Remove /boot/efi from mtree, missed in 0b7472b3d8d2.
Message-ID:  <202103021856.122IuYgV048086@gndrsh.dnsmgr.net>
In-Reply-To: <79dbff79-c40b-4742-98a6-5ce3e2079b70@www.fastmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> On Tue, Mar 2, 2021, at 12:26 PM, Rodney W. Grimes wrote:
> > 
> > This fails to apply the proper owner/group and mode values
> > using what ever defaults are in place of the process running
> > the build.
> 
> Keep in mind that this is the root of a mounted filesystem in the case where it matters, and the filesystem being mounted there doesn't support proper modes anyway, so the mtree values are a bit irrelevant anyway as the actual control of that is in the fstab.

That assumes the mount is done and/or kept.  My concern is more
of a lack security (aka world writable) /boot/efi getting created
in a distribution that then is *not* mounted for some reason,
either by choice or error.

mkdir should be stricken from use when possible, install -d
should be used instead.

-- 
Rod Grimes                                                 rgrimes@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103021856.122IuYgV048086>