mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
pid1: allowlist all tpm devices for a unit when encrypted creds are needed
We might be configured to use some ther device than /dev/tpmrm0, hence allow them all by allowlisting the tpm char device class as a whole.
This commit is contained in:
parent
50a4217bbe
commit
df637af460
@ -4217,7 +4217,7 @@ int unit_patch_contexts(Unit *u) {
|
||||
|
||||
/* If there are encrypted credentials we might need to access the TPM. */
|
||||
if (exec_context_has_encrypted_credentials(ec)) {
|
||||
r = cgroup_add_device_allow(cc, "/dev/tpmrm0", "rw");
|
||||
r = cgroup_add_device_allow(cc, "char-tpm", "rw");
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user