Skip to content

Commit 6666f24

Browse files
committed
Add devfs and fdescfs as default mounts for FreeBSD
Signed-off-by: Doug Rabson <[email protected]>
1 parent 91a7b1d commit 6666f24

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

generate/generate.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,21 @@ func New(os string) (generator Generator, err error) {
237237
},
238238
Seccomp: seccomp.DefaultProfile(&config),
239239
}
240+
} else if os == "freebsd" {
241+
config.Mounts = []rspec.Mount{
242+
{
243+
Destination: "/dev",
244+
Type: "devfs",
245+
Source: "devfs",
246+
Options: []string{"ruleset=4"},
247+
},
248+
{
249+
Destination: "/dev/fd",
250+
Type: "fdescfs",
251+
Source: "fdesc",
252+
Options: []string{},
253+
},
254+
}
240255
}
241256

242257
envCache := map[string]int{}

0 commit comments

Comments
 (0)