2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-22 15:48:14 +00:00
Files
xcat-core/xCAT-genesis-scripts/usr/lib/xcat/fips.sh
T
2026-10-05 18:14:20 -03:00

21 lines
261 B
Bash

#!/bin/sh
xcat_fips_enabled()
{
grep -q '^1$' "${1:-/proc/sys/crypto/fips_enabled}" 2>/dev/null
}
xcat_fips_state()
{
if xcat_fips_enabled "${1:-}"; then
printf '1'
else
printf '0'
fi
}
xcat_dsa_allowed()
{
[ "$1" = 0 ]
}