mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 04:27:02 +01:00
Allow /dev/tpmrm0 on older systemd versions (#2587)
Older systemd versions require a specific device allow for the tpm to be accessed.
This commit is contained in:
parent
6fb4fac5d0
commit
81298e8b81
|
@ -32,6 +32,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
|
||||
|
|
|
@ -32,6 +32,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
|
||||
|
|
|
@ -78,9 +78,8 @@ impl Display for UidAttr {
|
|||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub enum HsmType {
|
||||
#[cfg_attr(not(feature = "tpm"), default)]
|
||||
#[default]
|
||||
Soft,
|
||||
#[cfg_attr(feature = "tpm", default)]
|
||||
Tpm,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue