File: /etc/init.d/trousers Package: trousers Version: 0.3.14+fixed1-1.2 Severity: normal X-Debbugs-Cc: none
Dear Maintainer,
The trousers startup script fails with the following messages in the
journal.
--8<---------------cut here---------------start------------->8---
Nov 02 17:37:12 darkstar trousers[179711]: Starting Trusted Computing daemon:
tcsd/etc/init.d/trousers: 32: [: /dev/tpm0: unexpected operator
Nov 02 17:37:12 darkstar tcsd[179717]: TCSD TDDL[179717]: TrouSerS ioctl: (25)
Inappropriate ioctl for device
Nov 02 17:37:12 darkstar tcsd[179717]: TCSD TDDL[179717]: TrouSerS Falling back
to Read/Write device support.
Nov 02 17:37:12 darkstar tcsd[179717]: TCSD TCS[179717]: TrouSerS ERROR: TCS
GetCapability failed with result = 0x1e
Nov 02 17:37:12 darkstar trousers[179718]: failed!
Nov 02 17:37:12 darkstar systemd[1]: trousers.service: Control process exited,
code=exited, status=30/n/a
Nov 02 17:37:12 darkstar systemd[1]: trousers.service: Failed with result
'exit-code'.
Nov 02 17:37:12 darkstar systemd[1]: Failed to start LSB: starts tcsd.
--8<---------------cut here---------------end--------------->8---
The line 32 mentioned above is
if [ ! -e /dev/tpm* ]
which fails because there are two files that match the pattern
--8<---------------cut here---------------start------------->8---
$ ls -l /dev/tpm*
crw-rw---- 1 tss root 10, 224 Nov 2 05:30 /dev/tpm0
crw-rw---- 1 tss tss 244, 65536 Nov 2 05:30 /dev/tpmrm0
--8<---------------cut here---------------end--------------->8---
One possible way to fix it is to change the test to
if ! ls /dev/tpm* >/dev/null 2>&1
-- System Information:
Debian Release: 11.5
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: armel, arm64
Kernel: Linux 5.10.0-15-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages trousers depends on:
ii libc6 2.31-13+deb11u5
ii libssl1.1 1.1.1n-0+deb11u3
ii lsb-base 11.1.0
ii tpm-udev 0.5
trousers recommends no packages.
trousers suggests no packages.
-- Configuration Files:
/etc/tcsd.conf [Errno 13] Brak dostępu: '/etc/tcsd.conf'
-- no debconf information
--
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics
signature.asc
Description: PGP signature

