TPM2 (Trusted Platform Module) userspace development
 help / color / mirror / Atom feed
From: Petko Manolov <sti at nucleusys.com>
To: tpm2@lists.01.org
Subject: [tpm2] how can i use abrmd/tpmrm0 with tpm2-tools
Date: Wed, 12 Dec 2018 17:45:32 +0200	[thread overview]
Message-ID: <20181212154532.GD1889@carbon> (raw)

[-- Attachment #1: Type: text/plain, Size: 976 bytes --]

	Hey guys,

I'm on Debian testing (tpm2-abrmd version 2.0.3, tpm2-tools 3.1.3, kernel 
v4.19.8) and no matter how i play with environment variables i can't get the 
tpm2_xxx to talk to the abrm daemon.  Since this kernel has builtin RM i assume 
there might be a collision between the userspace and kernel implementations.

I ran into this issue as my script's 'tpm2_load' runs out of memory (error 
0x902).  Running "tpm2-abrmd -f --allow-root" doesn't complain but:

# tpm2_takeownership -c
ERROR:tcti:src/tss2-tcti/tcti-device.c:319:Tss2_Tcti_Device_Init() Failed to open device file /dev/tpm0: Device or resource busy
ERROR: tcti init allocation routine failed for library: "device" options: "(null)"
ERROR: Could not load tcti, got: "device"

How do i tell tpm2_xxx to use the userspace daemon instead of /dev/tpm0?

I'd like to apologize if this has been answered before.  If that's the case 
please point me to the corresponding thread.


		Petko

             reply	other threads:[~2018-12-12 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-12 15:45 Petko Manolov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-12-12 15:55 [tpm2] how can i use abrmd/tpmrm0 with tpm2-tools Tadeusz Struk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181212154532.GD1889@carbon \
    --to=tpm2@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox