summaryrefslogtreecommitdiff
path: root/pcr/trousers/01-tss-user.patch
blob: 37f74617aa3aafa966dd70d44f94d0fe2f9d885a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Author: Daniel Baumann <daniel@debian.org>
Author: Pierre Chifflier <pollux@debian.org>
Description: Avoiding chown/chmod for tss user at build-time.
 Note that we do not use NOUSERCHECK or --enable-usercheck=no,
 since these are also used in the sources and will change the
 binary.

Index: trousers/dist/Makefile.am
===================================================================
--- trousers.orig/dist/Makefile.am
+++ trousers/dist/Makefile.am
@@ -3,24 +3,10 @@ EXTRA_DIST = system.data.auth system.dat
 
 install: install-exec-hook
 	if test ! -e ${DESTDIR}/@sysconfdir@/tcsd.conf; then mkdir -p ${DESTDIR}/@sysconfdir@ && cp tcsd.conf ${DESTDIR}/@sysconfdir@; fi
-if !NOUSERCHECK
-	/bin/chown tss:tss ${DESTDIR}/@sysconfdir@/tcsd.conf || true
-	/bin/chmod 0600 ${DESTDIR}/@sysconfdir@/tcsd.conf
-endif
 
 install-exec-hook:
 	/bin/sh -c 'if [ ! -e ${DESTDIR}/@localstatedir@/lib/tpm ];then mkdir -p ${DESTDIR}/@localstatedir@/lib/tpm; fi'
-if !NOUSERCHECK
-	/usr/sbin/groupadd tss || true
-	/usr/sbin/useradd -r tss -g tss || true
-	/bin/chown tss:tss ${DESTDIR}/@localstatedir@/lib/tpm || true
-	/bin/chmod 0700 ${DESTDIR}/@localstatedir@/lib/tpm
-endif
 
 uninstall-hook:
 	rm ${DESTDIR}/@sysconfdir@/tcsd.conf
 	rmdir ${DESTDIR}/@localstatedir@/lib/tpm
-if !NOUSERCHECK
-	/usr/sbin/userdel tss || true
-	/usr/sbin/groupdel tss || true
-endif