提交 9b3ddaf6 编写于 作者: jia zhang's avatar jia zhang

rune/libcontainer: Mount aesm.socket from /var/run/aesmd/

/run is usally a symbol link to /var/run but it is not always true.
Signed-off-by: jia zhang's avatarJia Zhang <zhang.jia@linux.alibaba.com>
上级 16012460
......@@ -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"},
})
}
......
......@@ -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},
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册