We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7a4cb36 + c2f774c commit 32b6ee1Copy full SHA for 32b6ee1
validation/mounts.go
@@ -1,9 +1,26 @@
1
package main
2
3
import (
4
+ rspec "github.com/opencontainers/runtime-spec/specs-go"
5
"github.com/opencontainers/runtime-tools/validation/util"
6
)
7
8
func main() {
- util.Skip("TODO: mounts generation options have not been implemented", "")
9
+ g := util.GetDefaultGenerator()
10
+ mount := rspec.Mount{
11
+ Destination: "/tmp",
12
+ Type: "tmpfs",
13
+ Source: "tmpfs",
14
+ Options: []string{
15
+ "nosuid",
16
+ "strictatime",
17
+ "mode=755",
18
+ "size=1k",
19
+ },
20
+ }
21
+ g.AddMount(mount)
22
+ err := util.RuntimeInsideValidate(g, nil)
23
+ if err != nil {
24
+ util.Fatal(err)
25
26
}
0 commit comments