Comment 2 for bug 963587

Revision history for this message
kimj (emailadhoc) wrote :

this bug seems to be still present on ubuntu 13.10 as of today, and it breaks apt/dpkg when trying to install 'trousers'.

the initscript tries to start tcsd under the 'tss' user:

execve("/sbin/start-stop-daemon", ["start-stop-daemon", "--start", "--quiet", "--oknodo", "--pidfile", "/var/run/tcsd.pid", "--user", "tss", "--chuid", "tss", "--exec", "/usr/sbin/tcsd", "--"], [/* 4 vars */]) = 0

but /dev/tpm0 is only accessible by root:

crw------- 1 root root 10, 224 dic 23 10:43 /dev/tpm0

and tcsd fails to start:
open("/dev/tpm0", O_RDWR) = -1 EACCES (Permission denied)
returning error code 137.

after changing /dev/tpm0 ownership to 'tss:tss;, tcsd still fails to start because of (other) permission problems:
open("/var/lib/tpm/system.data", O_RDWR|O_CREAT, 0600) = -1 EACCES (Permission denied)