Package Details: trousers 0.3.15-2

Git Clone URL: (read-only, click to copy)
Package Base: trousers
Description: Open-source TCG Software Stack implementation for use with a TPM
Upstream URL:
Keywords: tpm
Licenses: CPL
Submitter: None
Maintainer: mutantmonkey
Last Packager: mutantmonkey
Votes: 93
Popularity: 0.38
First Submitted: 2007-12-18 23:40 (UTC)
Last Updated: 2021-06-07 08:14 (UTC)

Latest Comments

MG2R commented on 2021-05-20 22:39 (UTC)

Currently can't start tcsd with systemd unless I create a systemd override setting User=root.

mutantmonkey commented on 2020-12-13 01:51 (UTC)

Thanks @grawity, I've made the change.

grawity commented on 2020-12-11 12:19 (UTC)

The current version of tcsd requires that /etc/tcsd.conf be owned by root:tss instead of tss:tss and will refuse to start otherwise, so the tmpfiles.conf needs to be changed:

z /etc/tcsd.conf 0640 root tss

hardfalcon commented on 2020-08-17 22:52 (UTC)

There's been a CVE discovered in TrouSerS <= 0.3.14:

zezadas commented on 2020-05-21 10:00 (UTC)

The bug with "multiple definition of `tcsd_sa_int'" has been reported to gentoo bugs and has been solved. The bug report can be found here And the needed patch here:

zayatura commented on 2020-05-15 20:53 (UTC)

This package fails to compile for me:

/usr/bin/ld: rpc/tcstp/.libs/libtspi_la-rpc_nv.o:(.bss+0xa0): multiple definition of `tcsd_sa_int'; .libs/libtspi_la-tspi_context.o:(.bss+0xa0): first defined here
/usr/bin/ld: rpc/tcstp/.libs/libtspi_la-rpc_delegate.o:(.bss+0x0): multiple definition of `tcsd_sa_chld'; .libs/libtspi_la-tspi_context.o:(.bss+0x0): first defined here
/usr/bin/ld: rpc/tcstp/.libs/libtspi_la-rpc_delegate.o:(.bss+0xa0): multiple definition of `tcsd_sa_int'; .libs/libtspi_la-tspi_context.o:(.bss+0xa0): first defined here
/usr/bin/ld: rpc/tcstp/.libs/libtspi_la-rpc_cmk.o:(.bss+0x0): multiple definition of `tcsd_sa_chld'; .libs/libtspi_la-tspi_context.o:(.bss+0x0): first defined here
/usr/bin/ld: rpc/tcstp/.libs/libtspi_la-rpc_cmk.o:(.bss+0xa0): multiple definition of `tcsd_sa_int'; .libs/libtspi_la-tspi_context.o:(.bss+0xa0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1103:] Error 1
make[2]: Leaving directory '/home/zdonca/.cache/yay/trousers/src/trousers-0.3.14/src/tspi'
make[1]: *** [Makefile:359: all-recursive] Error 1
make[1]: Leaving directory '/home/zdonca/.cache/yay/trousers/src/trousers-0.3.14/src'
make: *** [Makefile:397: all-recursive] Error 1

crazyh commented on 2019-02-27 11:43 (UTC) (edited on 2019-02-27 11:47 (UTC) by crazyh)

It seems that PKGBUILD sets invalid permissions for data directory and configuration file:

After trousers installation and running of tcsd.service:

$ pacman -Qkk 2>&1 1<&- | grep trousers
warning: trousers: /etc/tcsd.conf (UID mismatch)
warning: trousers: /etc/tcsd.conf (GID mismatch)
warning: trousers: /etc/tcsd.conf (Permissions mismatch)
warning: trousers: /var/lib/tpm (UID mismatch)
warning: trousers: /var/lib/tpm (GID mismatch)
warning: trousers: /var/lib/tpm (Permissions mismatch)

mutantmonkey commented on 2018-11-04 20:20 (UTC)

No problems here.

bouk commented on 2018-11-02 17:58 (UTC)

I'm getting a validity error on trousers-0.3.14.tar.gz when attempting to install this package.

blackout commented on 2018-05-28 08:41 (UTC)

C compiler cannot create executables

mutantmonkey commented on 2017-06-10 22:38 (UTC)

Thanks djgera!

djgera commented on 2017-05-27 22:47 (UTC)

I made some changes to this package, please apply it. Thanks. * Remove install file and use sysusers/tmpfiles. * Trigger udev from install does not look good practice. * Avoid user/group/chmod/chown creation at build time (Debian Patch). * Extract source in correct directory.

mutantmonkey commented on 2016-12-04 01:11 (UTC)

So it looks like the previous release of 0.3.14 had a bunch of files that weren't properly updated. For example, the ChangeLog had no mention of 0.3.14. The updated files were to correct this. I really find the lack of care shown by upstream to be quite shocking, especially given that trousers is security-sensitive software. This is the second time they have retroactively updated their released source files. I hope that they will either be more careful going forward or that someone will write a new TCG software stack to take its place.

65b commented on 2016-12-03 23:40 (UTC)

Found "95..." checksum'd tarball here:

mutantmonkey commented on 2016-12-03 21:39 (UTC) (edited on 2016-12-03 21:39 (UTC) by mutantmonkey)

It does appear that the checksum has changed and I cannot find any explanation for this on the mailing lists. Given that the download is hosted on SourceForge, tinfoil investments might be in order. I'm hesitant to update the checksums without a more thorough investigation; unfortunately I don't have the original tarball in order to do a comparison.

65b commented on 2016-12-03 18:56 (UTC)

trousers-0.3.14.tar.gz ... FAILED I am seeing: ce50713a261d14b735ec9ccd97609f0ad5ce69540af560e8c3ce9eb5f2d28f47 trousers-0.3.14.tar.gz instead of: 95db55beb1556b12be9b4cf3123a3a59c7a70cc890d731fae93e6949305fb63b Anyone else seeing that, or should I invest in tinfoil...

twouters commented on 2015-08-18 13:55 (UTC)

The default makepkg.conf file (linked below) removes libtool files from this package, preventing tpm-tools from building. Can this option be overridden in a PKGBUILD?

aricart commented on 2015-04-25 05:46 (UTC)

I had to add -std=gnu89 to CFLAGS in order to build this.

yuvadm commented on 2015-03-03 14:35 (UTC)

Breaks with error: /tmp/yaourt-tmp-yuval/aur-trousers/src/trousers-0.3.13/missing: Unknown '--is-lightweight' option

mutantmonkey commented on 2014-06-13 07:11 (UTC)

Looks like they added to 0.3.11 and 0.3.13; I missed the post on trousers-users: I've gone ahead and updated this now.

mutantmonkey commented on 2014-06-13 07:00 (UTC)

It looks like they uploaded a new tarball on June 10 for this release without any explanation, this seems a bit odd to me. I'm going to poke through the code and see if I can figure out what, if anything, changed. In the meantime, I've uploaded a copy of the old files here if you're suspicious of this like I am:

eltoncarbo commented on 2014-06-13 02:07 (UTC)

Good work! But sha256sum for trouser-0.3.13.tar.gz is incorrect. The correct is bb908e4a3c88a17b247a4fc8e0fff3419d8a13170fe7bdfbe0e2c5c082a276d3. Thanks! :)

commented on 2013-08-15 10:28 (UTC)

mutantmonkey, thanks! it works great now.

mutantmonkey commented on 2013-08-15 06:20 (UTC)

bablo: chown -R tss:tss /var/lib/tpm and see if that helps. I'm going to update the PKGBUILD so it installs that directory with the correct permissions.

commented on 2013-08-13 17:07 (UTC)

Whenever I do: # systemctl start tcsd.service The reported status is: # systemctl status tcsd.service tcsd.service - Manager for Trusted Computing resources Loaded: loaded (/usr/lib/systemd/system/tcsd.service; disabled) Active: failed (Result: exit-code) since Tue 2013-08-13 19:00:02 CEST; 28s ago Process: 2961 ExecStart=/usr/bin/tcsd -f -c /etc/tcsd.conf (code=exited, status=4) Aug 13 19:00:02 tma systemd[1]: Starting Manager for Trusted Computing resources... Aug 13 19:00:02 tma systemd[1]: Started Manager for Trusted Computing resources. Aug 13 19:00:02 tma systemd[1]: tcsd.service: main process exited, code=exited, status=4/NOPERMISSION Aug 13 19:00:02 tma systemd[1]: Unit tcsd.service entered failed state. Any suggestion?

jdarch commented on 2013-06-15 21:19 (UTC)

I believe /var/lib/tpm needs to be owned by the tcsd-daemon-pid/gid (user:group = tss:tss)

bema commented on 2013-05-31 06:15 (UTC)

You have to add --sbindir=/usr/bin to ./configure because to the upcoming /usr-merge. Apart from that you will have to change the path of tcsd in trousers.install and tcsd.service. I urge you to test the changes as the daemon will not start on my machine probably because it does not have a tpm.

mutantmonkey commented on 2013-01-26 19:57 (UTC)

Adopted and updated to 0.3.10.

patryk commented on 2013-01-26 11:27 (UTC)


mutantmonkey commented on 2012-12-10 20:24 (UTC)

RobertBuhren: If you're no longer interested in maintaining this package, I would be happy to take over.

killermoehre commented on 2012-12-03 20:37 (UTC)

And another update

killermoehre commented on 2012-12-03 12:00 (UTC)

Build a new PKGBUILD for 0.3.10 Please update

chenxiaolong commented on 2011-11-11 14:16 (UTC)

@gavinhungry: Wow, that was quick! Thanks :D

gavinhungry commented on 2011-11-11 06:55 (UTC)

@chenxiaolong, done. :)

chenxiaolong commented on 2011-11-11 06:02 (UTC)

Could you add the '-r' parameter to the groupadd and useradd commands in 'trousers.install'? That creates the user as a system user, not a regular one, so it won't show up in the login managers. Here's the modified trousers.install: and the PKGBUILD with fixed checksums: Thanks!

chenxiaolong commented on 2011-08-08 17:37 (UTC)

Please update this package with the following source package: (generated with "makepkg --source") It contains a patch from Fedora to fix the compilations issues. Also, the PKGBUILD is updated to include the patch and the md5sum of the patch.