Trousers fails to set tpm permissions properly.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
trousers (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
root@antarus-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
trousers
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/138 kB of archives.
After this operation, 431 kB of additional disk space will be used.
Selecting previously unselected package trousers.
(Reading database ... 135516 files and directories currently installed.)
Unpacking trousers (from .../trousers_
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Setting up trousers (0.3.7-2ubuntu1) ...
Adding system user `tss' (UID 115) ...
Adding new group `tss' (GID 126) ...
Adding new user `tss' (UID 115) with group `tss' ...
Not creating home directory `/var/lib/tpm'.
* Starting Trusted Computing daemon tcsd
...fail!
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing trousers (--configure):
subprocess installed post-installation script returned error exit status 137
Errors were encountered while processing:
trousers
E: Sub-process /usr/bin/dpkg returned an error code (1)
In the postinst:
configure)
# Adding tss system user
# Setting owner
# Setting permissions
# we ship udev rules, so trigger an update
;;
However udev seems to not like this:
Mar 24 00:39:14 antarus-precise udevd[31861]: specified user 'tss' unknown
Mar 24 00:39:14 antarus-precise udevd[31861]: specified group 'tss' unknown
root@antarus-
crw------- 1 root root 10, 224 Mar 24 00:39 /dev/tpm0
Because the device is not owned correctly, tcsd fails to start and breaks apt :/
root@antarus-
Description: Ubuntu precise (development branch)
Release: 12.04
Release: 12.04
root@antarus-
trousers:
Installed: 0.3.7-2ubuntu1
Candidate: 0.3.7-2ubuntu1
I expect the udev rules to take affect, so the daemon can start properly.
Example:
root@antarus-
root@antarus-
crw------- 1 tss tss 10, 224 Mar 24 00:39 /dev/tpm0
root@antarus-
root@antarus-
PID TTY TIME CMD
4038 pts/6 00:00:00 sudo
4039 pts/6 00:00:00 bash
4686 pts/6 00:00:00 ps
root@antarus-
PID TTY TIME CMD
4685 ? 00:00:00 tcsd
What happened instead?
root@antarus-
Reading package lists... Done
Building dependency tree
Reading state information... Done
trousers is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up trousers (0.3.7-2ubuntu1) ...
The system user `tss' already exists. Exiting.
* Starting Trusted Computing daemon tcsd
...fail!
invoke-rc.d: initscript trousers, action "start" failed.
dpkg: error processing trousers (--configure):
subprocess installed post-installation script returned error exit status 137
Errors were encountered while processing:
trousers
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@antarus-
crw------- 1 root root 10, 224 Mar 24 00:43 /dev/tpm0
tags: | added: patch |
Triaged because he seems to have found the cause (although the udev interaction may need a bit of a dig)
'Prevents the application or any dependencies from functioning correctly at all' -> High
It's possible 959795, 963587 and 995666 are the same thing.