GSHSEC(8)

πŸ“¦
version 15.1 Β· 2 versions
, in freebsd 15.1

πŸŽ€ GSHSEC(8) β€” the gshsec situation πŸŽ€

ok so bestie, welcome to the gshsec page (that's section 8 of the System Manager's Manual, mwah) πŸ’…

✨ NAME ✨

gshsec β€” the control utility for shared secret devices. yep, that's the whole vibe.

🌸 SYNOPSIS 🌸

gshsec label [-hv] name prov prov ...
gshsec stop [-fv] name ...
gshsec clear [-v] prov ...
gshsec dump prov ...
gshsec list
gshsec status
gshsec load
gshsec unload

πŸ’– DESCRIPTION πŸ’–

So gshsec sets up a device that holds a shared secret, and the way that works is that the secret is shared between the given providers. To actually collect the secret, you need all of the providers. Every single one. If one component is missing, there is literally no way to get any useful data out of the rest of them β€” not a crumb, not a byte 😭 that's the whole point of it.

The first argument you hand to gshsec is the action you want performed:

  • label β€” set up a shared secret device from the given components, with the name you specify. Metadata lives in the last sector of every component. 🫢
  • stop β€” turn off an existing shared secret device by its name. heads up: this command does not touch on-disk metadata!
  • clear β€” clear the metadata on the given providers.
  • dump β€” dump the metadata stored on the given providers.
  • list β€” see geom(8).
  • status β€” see geom(8).
  • load β€” see geom(8).
  • unload β€” see geom(8).

🌈 additional options 🌈

  • -f β€” force the removal of the specified shared secret device.
  • -h β€” hardcode the providers' names in the metadata.
  • -v β€” be more verbose (she's chatty, she tells you things πŸ’¬).

⭐ EXIT STATUS ⭐

Exit status is 0 on success, and 1 if the command fails. no in-between, we love a clean binary 😌

πŸ¦‹ EXAMPLES πŸ¦‹

ok so here's how you actually create a shared secret device. The secret gets split between a slice on a local disk and a USB Pen drive:

gshsec label -v secret /dev/ada0s1 /dev/da0
newfs /dev/shsec/secret

From now on, when the USB Pen drive is inserted, it will be automatically detected and connected, making the secret available via the /dev/shsec/secret device. iconic behaviour honestly πŸŽ€βœ¨

πŸ”₯ SEE ALSO πŸ”₯

geom(4), geom(8), newfs(8)

πŸ‘‘ HISTORY πŸ‘‘

The gshsec utility appeared in FreeBSD 5.4. vintage, but make it slay πŸ’œ

πŸ“ AUTHORS πŸ“

Pawel Jakub Dawidek <pjd@FreeBSD.org> β€” thank you for your service πŸ«‘πŸ’–


and that's the page, bestie! this little beauty is from the Debian gang, dated October 1, 2013 β€” so like, a whole era ago, but the info still eats πŸŒΈπŸ¦‹πŸ’…

πŸ“¦ where this page comes from
  • freebsd 15.1: base 15.1
  • πŸ“œ the page's license: BSD-2-Clause
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms