Bug 1886380 - tpm2-abrmd won't start from Beaker because of EPERM on /dev/tpm0
Summary: tpm2-abrmd won't start from Beaker because of EPERM on /dev/tpm0
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: tpm2-abrmd
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: rc
: 8.0
Assignee: Štěpán Horáček
QA Contact: Vilém Maršík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-08 10:37 UTC by Vilém Maršík
Modified: 2023-08-08 02:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-08 07:27:23 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Jerry Snitselaar 2020-11-17 21:58:46 UTC
Any chance I can get access to this system? The lenovo-sr650 I just looked at has a tpm1.2 device.

Comment 2 Jerry Snitselaar 2020-11-17 22:36:04 UTC
Does the rlRun "udevadm trigger --action=change" wait for the udevadm command to complete before the next thing happens? Since it is complaining about permissions, I'm wondering if the udev rule hasn't kicked in yet. Maybe try a sleep after the rlRun?
Also should there be a 'systemctl enable tpm2-abrmd' somewhere before the systemctl start tpm2-abrmd to set up the symlink?

Comment 3 Jerry Snitselaar 2020-11-17 23:30:07 UTC
I guess a systemctl enable isn't needed.

Has this been encountered on any system besides the Lenovo? Are you able to log into the system after the test has run? It would be interesting to see what the permissions are on /dev/tpm0.

Doesn't look like it is necessary right now, but you can read specific banks and registers with the tpm2_pcrread command, so tpm2_pcrread -T tabrmd sha1:4 would just return register 4 from the sha1 bank. I know some systems report multiple banks, and I believe we have a Dell somewhere where you can flip between sha1 and sha256. We might need to get more complicated at some point and look at 'tpm2_getcap pcrs' to see what banks are available on the system, and then use that to decide what to read and extend.

Comment 4 Vilém Maršík 2020-11-24 15:48:05 UTC
Jerry, do you want me to reserve the machine for you? I though you try a Loan request.

Comment 5 Jerry Snitselaar 2020-11-24 18:07:35 UTC
Are you able to try the test with a sleep in between the udevadm trigger call and the systemctl start?

Comment 8 RHEL Program Management 2022-04-08 07:27:23 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.