Skip to content

Instantly share code, notes, and snippets.

View sergio-correia's full-sized avatar

Sergio Correia sergio-correia

View GitHub Profile
@sergio-correia
sergio-correia / gist:234bcc244cdff2a8b0d08f85017192d1
Created August 26, 2022 11:51
running `TSS2_LOG=all+ERROR,marshal+TRACE,tcti+DEBUG cargo run`
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Running `target/debug/tpm_err_mini_reproducer`
Hello, TPM world!
debug:tcti:src/tss2-tcti/tctildr.c:147:tctildr_conf_parse() name_conf: "device:/dev/tpmrm0"
debug:tcti:src/tss2-tcti/tctildr.c:165:tctildr_conf_parse() TCTI name: "device"
debug:tcti:src/tss2-tcti/tctildr.c:170:tctildr_conf_parse() TCTI conf: "/dev/tpmrm0"
debug:tcti:src/tss2-tcti/tctildr-dl.c:299:tctildr_get_tcti() name: "device", conf: "/dev/tpmrm0"
debug:tcti:src/tss2-tcti/tctildr-dl.c:92:handle_from_name() Could not load TCTI file: "device": device: cannot open shared object file: No such file or directory
debug:tcti:src/tss2-tcti/tcti-device.c:447:Tss2_Tcti_Device_Init() Trying to open specified TCTI device file /dev/tpmrm0
debug:tcti:src/tss2-tcti/tcti-device.c:459:Tss2_Tcti_Device_Init() Probe device for partial response read support
@sergio-correia
sergio-correia / clients.yml
Created February 20, 2021 09:57
DevConf21 - Source for the ansible demo using nbde_server and nbde_server roles
---
- hosts: nbde_clients
vars:
nbde_client_bindings:
- device: /dev/rhel/root
encryption_key_src: ~/devconf/keyfile
servers:
- http://10.0.138.222
- device: /dev/rhel/swap
@sergio-correia
sergio-correia / clevis
Created December 4, 2019 12:16
clevis bash completion - experimental
# bash completion support for clevis.
_clevis() {
local dir prev cur field
dir=$(dirname "$(command -v clevis)")
prev=${COMP_WORDS[COMP_CWORD-1]}
cur=${COMP_WORDS[COMP_CWORD]}
field=$((COMP_CWORD + 1))
if [ "${prev}" = '-d' ]; then

Keybase proof

I hereby claim:

  • I am sergio-correia on github.
  • I am scorreia (https://keybase.io/scorreia) on keybase.
  • I have a public key ASCBPz_IcKhWgpVimlSKZ0faXueN02vdURjDQ5HVMTLeSAo

To claim this, I am signing this object: