diff options
Diffstat (limited to 'pcr/trousers/trousers.install')
-rw-r--r-- | pcr/trousers/trousers.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pcr/trousers/trousers.install b/pcr/trousers/trousers.install new file mode 100644 index 000000000..3725e078b --- /dev/null +++ b/pcr/trousers/trousers.install @@ -0,0 +1,21 @@ +post_install() { + groupadd -r tss + + useradd -r -g tss -d /var/lib/tpm -s /bin/false tss + chown -R tss:tss /var/lib/tpm + chown tss:tss /usr/bin/tcsd + + chown tss:tss /etc/tcsd.conf + chmod 0600 /etc/tcsd.conf + + udevadm trigger --sysname-match="tpm[0-9]*" +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + systemctl stop tcsd + userdel tss +} |