1757446 condition: Check that subsystem is enabled in ConditionSecurity=tpm2

5 files Authored by daandemeyer a year ago, Committed by bluca a year ago,
    condition: Check that subsystem is enabled in ConditionSecurity=tpm2
    
    Instead of succeeding when either the firmware reports a TPM device
    or we find a TPM device, let's check that the firmware reports a TPM
    device and the TPM subsystem is enabled in the kernel.
    
    To check whether the subsystem enabled, we check if the relevant
    subdirectory in /sys exists at all.
    
    (cherry picked from commit 300bba79c22e4be1effe2faad0e59ac725d396a1)
    
        
file modified
+2 -2
file modified
+4 -2
file modified
+4 -5
file modified
+5 -1
file modified
+6 -5