Project

General

Profile

Actions

action #175563

closed

[security] Restaring tcsd fails in tpm_selftest on 15-SP7

Added by tjyrinki_suse 24 days ago. Updated 11 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
8.00 h
Difficulty:
Tags:

Description

Always latest result in this scenario: latest

Last good: 51.1 (or more recent)

In journal: "tcsd[2424]: TCSD TDDL[2424]: TrouSerS ERROR: Could not find a device to open!"

Acceptance Criteria

  1. Find out what has changed in the product, either report a product bug or fix our test
Actions #1

Updated by amanzini 15 days ago

  • Assignee set to amanzini
Actions #2

Updated by amanzini 12 days ago

  • Status changed from Workable to In Progress
  • % Done changed from 0 to 10

trying to reproduce, it passes: https://openqa.suse.de/tests/16580974
now trying some repetitions

Actions #3

Updated by amanzini 12 days ago

both pass and fail run installs the same package, so seems not a product issue.

passed:
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: trousers-0.3.15-150600.8.2.x86_64 (SLE-Module-Basesystem15-SP7-Pool) (1/4), 605.9 KiB    
Retrieving: trousers-0.3.15-150600.8.2.x86_64.rpm [.done]
Retrieving: libtspi1-0.3.15-150600.8.2.x86_64 (SLE-Module-Basesystem15-SP7-Pool) (2/4), 149.6 KiB    
Retrieving: libtspi1-0.3.15-150600.8.2.x86_64.rpm [.done]
Retrieving: libtpm_unseal1-1.3.9.2-150600.7.3.x86_64 (SLE-Module-Basesystem15-SP7-Pool) (3/4),  26.1 KiB    
Retrieving: libtpm_unseal1-1.3.9.2-150600.7.3.x86_64.rpm [.done]
Retrieving: tpm-tools-1.3.9.2-150600.7.3.x86_64 (SLE-Module-Basesystem15-SP7-Pool) (4/4), 126.4 KiB    
Retrieving: tpm-tools-1.3.9.2-150600.7.3.x86_64.rpm [.done]


failed:
Continue? [y/n/v/...? shows all options] (y): y
Retrieving: trousers-0.3.15-150600.8.2.x86_64 (SLE-Module-Basesystem15-SP7-Pool) (1/4), 605.9 KiB    
Retrieving: trousers-0.3.15-150600.8.2.x86_64.rpm [.done]
Retrieving: libtspi1-0.3.15-150600.8.2.x86_64 (SLE-Module-Basesystem15-SP7-Pool) (2/4), 149.6 KiB    
Retrieving: libtspi1-0.3.15-150600.8.2.x86_64.rpm [.done]
Retrieving: libtpm_unseal1-1.3.9.2-150600.7.3.x86_64 (SLE-Module-Basesystem15-SP7-Pool) (3/4),  26.1 KiB    
Retrieving: libtpm_unseal1-1.3.9.2-150600.7.3.x86_64.rpm [.done]
Retrieving: tpm-tools-1.3.9.2-150600.7.3.x86_64 (SLE-Module-Basesystem15-SP7-Pool) (4/4), 126.4 KiB    
Retrieving: tpm-tools-1.3.9.2-150600.7.3.x86_64.rpm [.done]
Actions #4

Updated by amanzini 12 days ago · Edited

on a failing test, the /dev/tpm0 device is owned by root:

# ls -l /dev/tpm*
crw------- 1 root root 10, 224 Jan 20 19:28 /dev/tpm0

on a passing test, the /dev/tpm0 device is owned by tss and can be read-write by root group:

# ls -l /dev/tpm*
crw-rw---- 1 tss root 10, 224 Jan 27 10:24 /dev/tpm0
Actions #5

Updated by amanzini 12 days ago · Edited

the issue is that the package trousers does contain and install a new udev rules file, but it's not being triggered.
The bug is similar to https://bugzilla.suse.com/show_bug.cgi?id=1231071

Actions #6

Updated by amanzini 12 days ago

  • % Done changed from 10 to 60
Actions #7

Updated by amanzini 12 days ago

  • Status changed from In Progress to Feedback
  • % Done changed from 60 to 100

PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/21060

filed https://bugzilla.suse.com/show_bug.cgi?id=1236457 as well to keep track, more an annoying thing that is solved upon reboot than a proper product bug.

Actions #8

Updated by tjyrinki_suse 11 days ago

  • Status changed from Feedback to Resolved

Created ticket #176247 to remind of possible future removal of manual udev rules reloading.

Actions

Also available in: Atom PDF