Allow /dev/tpmrm0 on older systemd versions ()

Older systemd versions require a specific device allow for the tpm to be accessed.
This commit is contained in:
Firstyear 2024-02-27 12:13:31 +10:00 committed by GitHub
parent adb575947f
commit 7b490d73dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions
platform

View file

@ -35,6 +35,8 @@ NoNewPrivileges=true
PrivateTmp=true
# We have to disable this to allow tpmrm0 access for tpm binding.
PrivateDevices=false
# Older versions of systemd require this to be explicitly allowed.
DeviceAllow=/dev/tpmrm0 rw
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true

View file

@ -35,6 +35,9 @@ NoNewPrivileges=true
PrivateTmp=true
# We have to disable this to allow tpmrm0 access for tpm binding.
PrivateDevices=false
# Older versions of systemd require this to be explicitly allowed.
DeviceAllow=/dev/tpmrm0 rw
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true