SETPRIMARYPOLICY(1)
β¨ NAME β¨
okay so bestie, meet setprimarypolicy β it's a User Commands girly (that's section 1 of the manual, iykyk π
) and what it does is literally:
Runs TPM2_SetPrimarypolicy π
that's the whole name line, no cap. she's an icon, she's a legend, and she runs exactly one thing.
π¦ DESCRIPTION π¦
okay so first thing the page tells you, and I quote:
--version-string=v1045 is not a valid option
not a vibe check, just a straight-up "no β". noted. moving on.
setprimarypolicy
Runs TPM2_SetPrimaryPolicy π
[-hi authhandle hierarchy (l, e, o, p) (default platform)] [-pwda authorization password (default empty)] [-pol policy file (default empty policy)] [-halg (sha1, sha256) (default null)]
so let's break down those flags like the main characters they are π
-hiβ the authhandle hierarchy. your choices arel,e,o,p. the default?platformπ-pwdaβ the authorization password. default isempty(she's lowkey mysterious, she says nothing π€«)-polβ the policy file. default isempty policyπ-halgβ the hash algorithm, and the options aresha1,sha256. default isnullβ¨
and then there's the session situation:
-se[0-2]β session handle / attributes, defaultPWAPπ«Ά
and the attribute values you can slot in are:
01continue20command decrypt40response encrypt
no notes, that's just what it says π
okay and then β and I need you to sit down for this β the page does it again. yes really. the exact same bit, twice. we don't make the rules, we just report them π
so, one more time, fr fr:
--version is not a valid option
π« not valid. love that for us.
setprimarypolicy
Runs TPM2_SetPrimaryPolicy π
[-hi authhandle hierarchy (l, e, o, p) (default platform)] [-pwda authorization password (default empty)] [-pol policy file (default empty policy)] [-halg (sha1, sha256) (default null)]
-hiβ authhandle hierarchy, optionsl,e,o,p, defaultplatformπ-pwdaβ authorization password, defaultempty-polβ policy file, defaultempty policy-halgβsha1,sha256, defaultnullβ-se[0-2]β session handle / attributes, defaultPWAPπ§01continue20command decrypt40response encrypt
periodt. that's the description. both of them. π
π SEE ALSO π
okay so if you want the full tea, the complete documentation for setprimarypolicy is maintained as a Texinfo manual πβ¨. and if the info and setprimarypolicy programs are properly installed at your site, then this:
info setprimarypolicy
should give you access to the complete manual π«Ά go get your info bestie, she has everything.
and that's the whole page, babe π
this is setprimarypolicy, out of the SETPRIMARYPOLICY(1) manual, dated July 2017 β yeah she's a lil vintage, but vintage is iconic π bye bye, go run your TPM stuff π
π¦ where this page comes from
- debian bookworm: tss2 1045-2 Β· BSD-3-Clause
- ubuntu jammy: tss2 1045-1.2build1 Β· BSD-3-Clause
- ubuntu noble: tss2 1045-2.1build2 Β· BSD-3-Clause
- ubuntu questing: tss2 1045-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms