Re: filesystem labels?

From: Carl Johnson <carlj_at_peak.org>
Date: Fri, 14 Apr 2023 15:46:22 UTC
Polytropon <freebsd@edvax.de> writes:

>
> NB: Dealing with gpart partition creation and destruction
> sometimes requires you to set
>
> 	# sysctl kern.geom.debugflags=16
>
> in order to override some security mechanisms which could
> interfere with what you're intending. But don't ask me where
> this has been properly documented... ;-)

That is somewhat documented in the geom(4) manpage.  That is covered as:

  0x10 (allow foot shooting)
       Allow writing to Rank 1 providers.  This would, for example,
       allow the super-user to overwrite the MBR on the root disk or
       write random sectors elsewhere to a mounted disk.  The
       implications are obvious.

There are settings for bits 0x01 - 0x80.

-- 
Carl Johnson		carlj@peak.org