Skip to content

Commit

Permalink
Allow /dev/tpmrm0 on older systemd versions (kanidm#2587)
Browse files Browse the repository at this point in the history
Older systemd versions require a specific device allow for the tpm to be accessed.
  • Loading branch information
Firstyear authored Feb 27, 2024
1 parent adb5759 commit 7b490d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/debian/systemd/kanidm-unixd.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions platform/opensuse/kanidm-unixd.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b490d7

Please sign in to comment.