mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +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
|
PrivateTmp=true
|
||||||
# We have to disable this to allow tpmrm0 access for tpm binding.
|
# We have to disable this to allow tpmrm0 access for tpm binding.
|
||||||
PrivateDevices=false
|
PrivateDevices=false
|
||||||
|
# Older versions of systemd require this to be explicitly allowed.
|
||||||
|
DeviceAllow=/dev/tpmrm0 rw
|
||||||
ProtectHostname=true
|
ProtectHostname=true
|
||||||
ProtectClock=true
|
ProtectClock=true
|
||||||
ProtectKernelTunables=true
|
ProtectKernelTunables=true
|
||||||
|
|
|
@ -32,6 +32,9 @@ NoNewPrivileges=true
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
# We have to disable this to allow tpmrm0 access for tpm binding.
|
# We have to disable this to allow tpmrm0 access for tpm binding.
|
||||||
PrivateDevices=false
|
PrivateDevices=false
|
||||||
|
# Older versions of systemd require this to be explicitly allowed.
|
||||||
|
DeviceAllow=/dev/tpmrm0 rw
|
||||||
|
|
||||||
ProtectHostname=true
|
ProtectHostname=true
|
||||||
ProtectClock=true
|
ProtectClock=true
|
||||||
ProtectKernelTunables=true
|
ProtectKernelTunables=true
|
||||||
|
|
|
@ -78,9 +78,8 @@ impl Display for UidAttr {
|
||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub enum HsmType {
|
pub enum HsmType {
|
||||||
#[cfg_attr(not(feature = "tpm"), default)]
|
#[default]
|
||||||
Soft,
|
Soft,
|
||||||
#[cfg_attr(feature = "tpm", default)]
|
|
||||||
Tpm,
|
Tpm,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue