testing/guestbin/fipson
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | # unmount if we find it mounted |
| 4 | if grep /proc/sys/crypto/fips_enabled /proc/mounts > /dev/null; then |
| 5 | umount /proc/sys/crypto/fips_enabled |
| 6 | fi |
| 7 | echo "1" > /tmp/fips_enabled |
| 8 | mount --bind /tmp/fips_enabled /proc/sys/crypto/fips_enabled |
| 9 | chcon system_u:object_r:proc_t:s0 /proc/sys/crypto/fips_enabled |