mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
95sel-ebc: Fix SICS existence check
Fix the sel-ebc-pvebc.service unit to execute the failure action when the sics directory does not exist instead of getting skipped. Reviewed-by: Holger Dengler <dengler@linux.ibm.com> Signed-off-by: Finn Callies <fcallies@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
a93146d976
commit
8a52693acc
@@ -20,6 +20,12 @@ if [[ $(cat $SYSFS) -ne 1 ]]; then
|
||||
fi
|
||||
echo "Running in SEL guest."
|
||||
|
||||
# Check SICS existence
|
||||
if [[ ! -d "${SICS}" ]]; then
|
||||
echo "${SICS} does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Copy EBC resources from /boot/sics to tmpfs for security
|
||||
# This protects against host injection attacks by moving resources to UV-protected RAM
|
||||
echo "Copying EBC resources from $SICS to $EBC_TMPFS"
|
||||
|
||||
@@ -17,7 +17,6 @@ After=sel-ebc-boot-mount.service
|
||||
DefaultDependencies=no
|
||||
# Make absolutely sure this only runs in initramfs
|
||||
ConditionPathExists=/etc/initrd-release
|
||||
AssertPathIsDirectory=/boot/sics
|
||||
ConditionKernelCommandLine=rd.sel-ebc
|
||||
|
||||
[Service]
|
||||
|
||||
Reference in New Issue
Block a user