LCP2_CRTPOL(8)
π LCP2_CRTPOL π (section 8 of the user manuals, bestie)
okay so bestie, welcome to lcp2_crtpol β the little icon that makes an Intel TXT Launch Control Policy β¨. Yes, the whole manual page, section 8, and yes I'm gonna walk you through every single flag because I love you and I want you to slay.
πΈ NAME πΈ
lcp2_crtpol β create an Intel TXT Launch Control Policy. That's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
lcp2_crtpol <--create|--show|--help> [--brief] [--verbose] --alg alg
--type <any|list> [LISTFILES] [--minver <ver>] [--rev
<counter1>[,counterN]] [--ctrl <pol_ctrl>] --pol <POLICY FILE> [--data
<POLICY DATA FILE>] [--mask mask] [--auxalg alg] --sign alg [--polver
version]
Like, yes, it's a lot. But we're gonna go through it together, one flag at a time, no cap. π«Ά
π DESCRIPTION π
So here's the tea: lcp2_crtpol is the tool you use to create a TXT LCP policy (and, if you want, policy data too), which you can later write to the TPM. It's giving glow up your boot chain energy.
And the best part? This tool lets you create policies for TPM 1.2 and TPM 2.0 β versatile queen behavior, honestly. π
The policy format you get is decided by the --polver option, so keep that in mind, iykyk.
π COMMANDS π
--createβ creates a policy. Boom, done, new policy, slay. β¨--showβ shows you the contents of a policy file, a policy data file, or both. If you pass one file it has to be either a policy file or a policy data file. If you pass two files, one of them must be a policy file and the other a policy data file. Like, the math has to math, bestie. π--helpβ shows the help text. We love a supportive king. π--versionβ shows the tool version. Simple. Iconic. Periodt. β
π OPTIONS π
--briefβ use brief format for output. short n sweet, lowkey minimalism. β¨--verboseβ use verbose format for output. the opposite vibe, highkey chatty. π£οΈ--alg algβ specify the algorithm for the LCP. Supported values aresha1,sha256orsm3. pick your fighter. πΈ--type <any|list>β specify the type of the policy. If--typeislist, you specify a comma-separated list of up to 8 policy list files (created with thelcp2_crtpollistcommand). eight!! that's the cap, bestie, don't push it. π¦--minver versionβ specify minimum allowed SINIT module version number (SINITMinVersion). π§--max_sinit_min versionβ specify maximum allowed value of the minimal SINIT module version number (MaxSinitMinVersion). yes it's a mouthful, no I'm not renaming it, it's literally the name. π--rev <counter1>[,counterN]β specify a comma-separated list of revocation counters. bye bye to the old stuff ππ--ctrl <pol ctrl>β specify thePolicyControlvalue. The default is0(LCP_DEFAULT_POLICY_CONTROL). default queen, no notes. π--pol <POLICY FILE>β specify the output file for the policy. the main character file, fr fr. π--data <POLICY DATA FILE>β specify the output file for the policy data. the sidekick, but a very important sidekick. π«Ά--mask maskβ specify the policy hash algorithm mask. Supported values aresha1,sha256,sha384,sha512orsm3. This option can be used multiple times to specify several allowed algorithms. β οΈ Policy versions2.0-2.4only supportSHA1β that's not a suggestion, that's just how it is, bestie.--auxalg algβ specify the AUX hash algorithm. Supported values aresha1,sha256,sha384,sha512orsm3. You can also specify a raw value in hex β and it must start with"0x", no exceptions. This option is only valid for policy versions3.0or3.1. π--sign algβ specify the allowed LCP signature algorithm mask. Supported values are:rsa-2048-sha1,rsa-2048-sha256,rsa-3072-sha256,rsa-3072-sha384,ecdsa-p256,ecdsa-p384sm3. This option can be used multiple times to specify several allowed algorithms. stack 'em up π₯--polver versionβ specify LCP policy version. Supported values are2.0-2.4(for TPM 1.2) and3.0-3.2(for TPM 2.0). If you don't specify it, this option defaults to3.0. β¨
π¦ EXAMPLES π¦
here's one, copy it, run it, feel powerful:
lcp2_crtpol --create --type list --pol list.pol --alg sha256 --data list.data --sign 0x8 list.lst
look at her go ππ
π SEE ALSO π
Full documentation of MLE, Intel(R) TXT and LCP is available in Intel(R) TXT Measured Launch Environment Deleveloper's Guide, available at:
http://www.intel.com/content/www/us/en/software-developers/intel-txt-software-development-guide.html
and also, go read your sisters:
and that's the whole page, bestie!! πβ¨ this one came to you from tboot, dated 2020-05-10 β so yeah, it's giving vintage but make it slay. go make a policy, you got this. 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 jammy: tboot 1.10.2+dfsg.0-1ubuntu1 Β· 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