MCPcopy
hub / github.com/opencontainers/runc / TestCheckCryptoFipsEnabled

Function TestCheckCryptoFipsEnabled

libcontainer/rootfs_linux_test.go:137–150  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

135}
136
137func TestCheckCryptoFipsEnabled(t *testing.T) {
138 m := mountEntry{
139 Mount: &configs.Mount{
140 Destination: "/proc/sys/crypto/fips_enabled",
141 Source: "tmpfs",
142 Device: "tmpfs",
143 },
144 }
145 dest := "/rootfs/proc/sys/crypto/fips_enabled"
146 err := checkProcMount("/rootfs", dest, m)
147 if err != nil {
148 t.Fatalf("/proc/sys/crypto/fips_enabled should not return an error: %v", err)
149 }
150}
151
152func TestNeedsSetupDev(t *testing.T) {
153 config := &configs.Config{

Callers

nothing calls this directly

Calls 1

checkProcMountFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…