TB_POLGEN(8)
π TB_POLGEN β the tb_polgen(8) glow-up π
okay bestie, sit down, hydrate, and let's talk about tb_polgen β it lives in section 8 of the User Manuals, it's a system administration girly, and its whole job is managing the tboot verified launch policy. no cap. β¨
β¨ SYNOPSIS β¨
tb_polgen COMMAND [OPTION]
that's it. one command, a pile of options, and you're slaying. π
πΈ DESCRIPTION πΈ
tb_polgen is used to manage tboot verified launch policy. that's the vibe. that's the whole vibe. π
π COMMANDS π
π« --create
Create an empty tboot verified launch policy file. literally birthing a policy file from nothing. iconic. π¦
--typenonfatal|continue|haltβ the energy check for errors, fr:- Nonfatal means ignoring all non-fatal errors and continuing.
- Continue means ignoring verification errors and halting otherwise.
- Halt means halting on any errors. (she's strict, respect it π)
--ctrlpolicy-control-value β optional! The default value1is to extend policy into PCR 17. π«Ά--algsha1|sha256|sha384|sha512β optional, and it's the policy hashing algorithm. pick your fighter. β- policy-file β the file, the moment, the main character. π
π« --add
Add a module hash entry into a policy file. feeding the policy, she's hungry. π
--nummodule-number |anyβ the module-number is the0-based module number corresponding to modules loaded by the bootloader.--pcrTPM-PCR-number |noneβ the TPM-PCR-number is the PCR to extend the module's measurement into.--hashany|image--cmdlinecommand-line β optional! The command line is fromgrub.conf, and it should not include the module name (e.g."/xen.gz"). read that again bestie, don't include it. π--imageimage-file-name β optional too, live your life.- policy-file
π« --del
Delete a module hash entry from a policy file. it's giving spring cleaning. π§
--nummodule-number |anyβ the module-number is the0-based module number corresponding to modules loaded by the bootloader.--poshash-number β optional. The hash-number is the0-based index of the hash, within the list of hashes for the specified module.- policy-file
π« --unwrap
Extract the tboot verified launch policy from a TXT LCP element file. unwrapping gifts but make it firmware. π
--eltelt-file- policy-file
π« --show policy-file
Show the policy information in a policy file. she's showing off and honestly? she earned it. π
π« --help
Print out the help message. when in doubt, ask her directly. π
π« --verbose
Enable verbose output; can be specified with any command. more words, more lore, more everything. π₯
π EXAMPLES π
go off, queen:
tb_polgen --create --type nonfatal vl.pol
tb_polgen --add --num 0 --pcr none --hash image --cmdline "cmdline" --image /boot/xen.gz vl.pol
tb_polgen --add --num 1 --pcr 19 --hash image --cmdline "cmdline" --image /boot/vmlinuz-2.6.18.8-xen vl.pol
tb_polgen --add --num 2 --pcr 19 --hash image --cmdline "" --image /boot/initrd-2.6.18.8-xen.img vl.pol
tb_polgen --del --num 1 vl.pol
tb_polgen --show --verbose vl.pol
π Note1 π
It is not necessary to specify a PCR for module 0, since this module's measurement will always be extended to PCR 18. If a PCR is specified, then the measurement will be extended to that PCR in addition to PCR 18. so like, extra credit. π
π Note2 π
--unwrap is not implemented correctly. There should be a defined UUID for this and that should be checked before copying the data. There should be a wrap or similar command to generates an element file for a policy.
bestie I'm gonna hold your hand when I say this: it's lowkey broken. noted, documented, moving on. π
π¦ SEE ALSO π¦
lcp_crtpol(8), lcp_crtpol2(8), lcp_crtpolelt(8). the friend group. go say hi. πΈ
and that's the whole page, bestie β brought to you by tboot, dated 2011-12-31, from the User Manuals corner of the internet. periodt. π
β¨π«Ά
π¦ where this page comes from
- centos-stream 10: tboot 1:1.11.12-1.el10 Β· BSD-3-Clause
- centos-stream 9: tboot 1:1.11.12-1.el9 Β· BSD
- debian bookworm: tboot 1.10.5-4 Β· BSD-3-Clause
- debian trixie: tboot 1.10.5-5 Β· BSD-3-Clause
- fedora 43: tboot 1:1.11.7-13.fc43 Β· BSD-3-Clause
- fedora 44: tboot 1:1.11.7-15.fc44 Β· BSD-3-Clause
- nixos 26.05: tboot 1.11.9
- opensuse-leap 16.0: tboot 20250417_1.11.10-160000.2.1 Β· BSD-3-Clause
- ubuntu noble: tboot 1.10.5-4 Β· BSD-3-Clause
- ubuntu questing: tboot 1.10.5-5ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms