summaryrefslogtreecommitdiff
path: root/debian/patches/01-tss-user.patch
blob: 9b22ec02579e468f55b6b0084a7743d6edec2713 (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
Author: Daniel Baumann <daniel@debian.org>
Description: Avoiding chown/chmod for tss user at build-time.

--- a/dist/Makefile.am
+++ b/dist/Makefile.am
@@ -2,15 +2,15 @@
        fedora/fedora.initrd.tcsd
 install: install-exec-hook
 	if test ! -e ${DESTDIR}/@sysconfdir@/tcsd.conf; then mkdir -p ${DESTDIR}/@sysconfdir@ && cp tcsd.conf ${DESTDIR}/@sysconfdir@; fi
-	/bin/chown tss:tss ${DESTDIR}/@sysconfdir@/tcsd.conf || true
-	/bin/chmod 0600 ${DESTDIR}/@sysconfdir@/tcsd.conf
+#	/bin/chown tss:tss ${DESTDIR}/@sysconfdir@/tcsd.conf || true
+#	/bin/chmod 0600 ${DESTDIR}/@sysconfdir@/tcsd.conf
 
 install-exec-hook:
 	/usr/sbin/groupadd tss || true
 	/usr/sbin/useradd -r tss -g tss || true
 	/bin/sh -c 'if [ ! -e ${DESTDIR}/@localstatedir@/lib/tpm ];then mkdir -p ${DESTDIR}/@localstatedir@/lib/tpm; fi'
-	/bin/chown tss:tss ${DESTDIR}/@localstatedir@/lib/tpm || true
-	/bin/chmod 0700 ${DESTDIR}/@localstatedir@/lib/tpm
+#	/bin/chown tss:tss ${DESTDIR}/@localstatedir@/lib/tpm || true
+#	/bin/chmod 0700 ${DESTDIR}/@localstatedir@/lib/tpm
 
 uninstall-hook:
 	/usr/sbin/userdel tss || true