NVDEFINESPACE(1)

πŸ“¦
version 1045 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble, ubuntu questing

🌸 NVDEFINESPACE(1) 🌸

User Commands Β· nvdefinespace Β· the one and only πŸŽ€

okay so bestie, we're doing a whole manual page today and it's giving chaos but I gotchu. it's nvdefinespace, it's a User Command, and we're gonna read it together, top to bottom, no skimming, no cap. πŸ’…


✨ NAME ✨

nvdefinespace β€” Runs TPM2_NV_DefineSpace πŸ¦‹


πŸ’– DESCRIPTION πŸ’–

First things first, and I need you to hear me on this one:

--version-string=v1045 is not a valid option

Noted. Moving on, periodt.

nvdefinespace

Runs TPM2_NV_DefineSpace

Like. That's the whole vibe. It runs TPM2_NV_DefineSpace. Iconic. πŸ”₯

Now the options, and there are a lot of them, so grab a snack πŸ“:

  • -ha β€” NV index handle. It looks like 01xxxxxx.
  • -hi β€” authorizing hierarchy (o, p). o = owner, p = platform, and p sets PLATFORMCREATE.
    • [-pwdp password for hierarchy (default empty)]
    • [-hia hierarchy authorization (o, p) (default index authorization)]
    • default is AUTHWRITE, AUTHREAD; o sets OWNERWRITE, OWNERREAD; p sets PPWRITE, PPREAD (platform)
    • [-pwdn password for NV index (default empty)]
    • ssts AUTHWRITE (if not PIN index), AUTHREAD
    • [-nalg name algorithm (sha1, sha256, sha384) (default sha256)]
    • [-sz data size (default 0)] β€” ignored for other than ordinary index
    • [-ty index type (o, c, b, e, p, f) (default ordinary)] β€” ordinary, counter, bits, extend, pin pass, pin fail
    • [-pol policy file (default empty)] β€” sets POLICYWRITE, POLICYREAD
  • +at β€” attributes to add (may be specified more than once):
    • ppw (PPWRITE)
    • ppr (PPREAD)
    • ow (OWNERWRITE)
    • or (OWNERREAD)
    • aw (AUTHWRITE)
    • ar (AUTHREAD)
    • wd (WRITEDEFINE)
    • gl (GLOBALLOCK)
    • rst (READ_STCLEAR)
    • wst (WRITE_STCLEAR)
    • wa (WRITEALL)
    • ody (ORDERLY)
    • pold (POLICY_DELETE)
    • stc (CLEAR_STCLEAR)
  • -at β€” attributes to delete (may be specified more than once):
    • ppw (PPWRITE)
    • ppr (PPREAD)
    • ow (OWNERWRITE)
    • or (OWNERREAD)
    • aw (AUTHWRITE)
    • ar (AUTHREAD)
    • pw (POLICYWRITE)
    • pr (POLICYREAD)
    • da (NO_DA) (default set)
  • -se[0-2] β€” session handle / attributes (default PWAP)
    • 01 continue

okay and then πŸ’€ the page just… says it all again. like it looked at its own reflection and fell in love. main character energy fr. but I promised I'd keep every single detail, so here's round two, exactly as written:

--version is not a valid option

nvdefinespace

Runs TPM2_NV_DefineSpace

  • -ha β€” NV index handle. It looks like 01xxxxxx.
  • -hi β€” authorizing hierarchy (o, p). o = owner, p = platform, and p sets PLATFORMCREATE.
    • [-pwdp password for hierarchy (default empty)]
    • [-hia hierarchy authorization (o, p) (default index authorization)]
    • default is AUTHWRITE, AUTHREAD; o sets OWNERWRITE, OWNERREAD; p sets PPWRITE, PPREAD (platform)
    • [-pwdn password for NV index (default empty)]
    • ssts AUTHWRITE (if not PIN index), AUTHREAD
    • [-nalg name algorithm (sha1, sha256, sha384) (default sha256)]
    • [-sz data size (default 0)] β€” ignored for other than ordinary index
    • [-ty index type (o, c, b, e, p, f) (default ordinary)] β€” ordinary, counter, bits, extend, pin pass, pin fail
    • [-pol policy file (default empty)] β€” sets POLICYWRITE, POLICYREAD
  • +at β€” attributes to add (may be specified more than once):
    • ppw (PPWRITE)
    • ppr (PPREAD)
    • ow (OWNERWRITE)
    • or (OWNERREAD)
    • aw (AUTHWRITE)
    • ar (AUTHREAD)
    • wd (WRITEDEFINE)
    • gl (GLOBALLOCK)
    • rst (READ_STCLEAR)
    • wst (WRITE_STCLEAR)
    • wa (WRITEALL)
    • ody (ORDERLY)
    • pold (POLICY_DELETE)
    • stc (CLEAR_STCLEAR)
  • -at β€” attributes to delete (may be specified more than once):
    • ppw (PPWRITE)
    • ppr (PPREAD)
    • ow (OWNERWRITE)
    • or (OWNERREAD)
    • aw (AUTHWRITE)
    • ar (AUTHREAD)
    • pw (POLICYWRITE)
    • pr (POLICYREAD)
    • da (NO_DA) (default set)
  • -se[0-2] β€” session handle / attributes (default PWAP)
    • 01 continue

πŸ¦‹ SEE ALSO πŸ¦‹

The full documentation for nvdefinespace is maintained as a Texinfo manual. If the info and nvdefinespace programs are properly installed at your site, the command

info nvdefinespace

should give you access to the complete manual. 🌈


okay that's the whole page!! it's from July 2017, it's part of the nvdefinespace source, and it lives under the name NVDEFINESPACE(1). love that for it. mwah πŸ’‹ you read the whole thing, that's highkey iconic of you, bestie 🫢✨

πŸ“¦ where this page comes from