GETCAPABILITY(1)

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

πŸ’– NAME πŸ’–

getcapability β€” bestie, it Runs TPM2_GetCapability. That's it, that's the whole job description. πŸ‘‘

This is the GETCAPABILITY(1) page from the User Commands manual, and we're gonna get through it together, okay? 🫢


✨ DESCRIPTION ✨

Okay so first thing first, the page just... opens with this:

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

Not me getting yelled at by a manpage before it even says hi 😭 But fr fr, that line is in there, so we're keeping it. No cap.

πŸŽ€ getcapability πŸŽ€

Runs TPM2_GetCapability. That's the mission. Main character energy, zero filler.

the flags, babe πŸ’…

  • -cap capability β€” the capability you're asking about
  • -pr property β€” defaults to 0
  • -pc propertyCount β€” defaults to 64
  • -se[0-2] β€” session handle / attributes, and the default is PWAP
    • 01 continue
    • 80 command audit

-cap values πŸ¦‹

Pick your fighter, these are the exact names and numbers:

  • TPM_CAP_ALGS β€” 0
  • TPM_CAP_HANDLES β€” 1
  • TPM_CAP_COMMANDS β€” 2
  • TPM_CAP_PP_COMMANDS β€” 3
  • TPM_CAP_AUDIT_COMMANDS β€” 4
  • TPM_CAP_PCRS β€” 5
  • TPM_CAP_TPM_PROPERTIES β€” 6
  • TPM_CAP_PCR_PROPERTIES β€” 7
  • TPM_CAP_ECC_CURVES β€” 8

🌸 and then it does it AGAIN 🌸

Not the manpage hitting copy-paste and calling it a day πŸ’€ Bestie, I'm not editing the lore, so here's the whole thing a second time, exactly as it appears:

--version is not a valid option

🧚 getcapability 🧚

Runs TPM2_GetCapability.

  • -cap capability
  • -pr property β€” defaults to 0
  • -pc propertyCount β€” defaults to 64
  • -se[0-2] β€” session handle / attributes, default PWAP
    • 01 continue
    • 80 command audit

-cap values, the sequel ✨

  • TPM_CAP_ALGS β€” 0
  • TPM_CAP_HANDLES β€” 1
  • TPM_CAP_COMMANDS β€” 2
  • TPM_CAP_PP_COMMANDS β€” 3
  • TPM_CAP_AUDIT_COMMANDS β€” 4
  • TPM_CAP_PCRS β€” 5
  • TPM_CAP_TPM_PROPERTIES β€” 6
  • TPM_CAP_PCR_PROPERTIES β€” 7
  • TPM_CAP_ECC_CURVES β€” 8
Okay real talk: yes, the description literally repeats itself word for word, and the second round leads with a different error line (--version is not a valid option). I'm not fixing it, I'm not merging it, I'm not guessing what it means. I'm just holding it up to the light like the icon it is. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

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

info getcapability

should give you access to the complete manual. Slay. 🌈


And that's the page, bestie!! πŸ’– Written by the getcapability girlies, dated July 2017, living in section GETCAPABILITY(1) of the manual. Mwah. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from