diff --git a/rune/libcontainer/specconv/example.go b/rune/libcontainer/specconv/example.go index 3a3b3d4481058228e01bc0c0a76fce7e79138360..647b08fe0a491239d103e0943b940b438ecad045 100644 --- a/rune/libcontainer/specconv/example.go +++ b/rune/libcontainer/specconv/example.go @@ -175,9 +175,9 @@ func Example() *specs.Spec { } spec.Mounts = append(spec.Mounts, specs.Mount{ - Destination: "/run/aesmd", + Destination: "/var/run/aesmd", Type: "bind", - Source: "/run/aesmd", + Source: "/var/run/aesmd", Options: []string{"rbind", "rprivate"}, }) } diff --git a/rune/libcontainer/specconv/spec_linux.go b/rune/libcontainer/specconv/spec_linux.go index 69c56ddd827b045afe4a7728f0fc63bf2b3786fd..0d96282a5813f6960fa284e767f2a0cc7b581102 100644 --- a/rune/libcontainer/specconv/spec_linux.go +++ b/rune/libcontainer/specconv/spec_linux.go @@ -461,8 +461,8 @@ func createLibcontainerMount(cwd string, m specs.Mount) *configs.Mount { func createLibenclaveMount(cwd string) *configs.Mount { return &configs.Mount{ Device: "bind", - Source: "/run/aesmd", - Destination: "/run/aesmd", + Source: "/var/run/aesmd", + Destination: "/var/run/aesmd", Flags: unix.MS_BIND | unix.MS_REC, PropagationFlags: []int{unix.MS_PRIVATE | unix.MS_REC}, }