forked from security/hakurei
hst/fs: rename method Target to Path
This allows adapter structs to use the same field names as Op structs. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -29,17 +29,17 @@ var testCasesNixos = []sealTestCase{
|
||||
Container: &hst.ContainerConfig{
|
||||
Userns: true, Net: true, MapRealUID: true, Env: nil, AutoEtc: true,
|
||||
Filesystem: []hst.FilesystemConfigJSON{
|
||||
f(&hst.FSBind{Src: m("/bin")}),
|
||||
f(&hst.FSBind{Src: m("/usr/bin/")}),
|
||||
f(&hst.FSBind{Src: m("/nix/store")}),
|
||||
f(&hst.FSBind{Src: m("/run/current-system")}),
|
||||
f(&hst.FSBind{Src: m("/sys/block"), Optional: true}),
|
||||
f(&hst.FSBind{Src: m("/sys/bus"), Optional: true}),
|
||||
f(&hst.FSBind{Src: m("/sys/class"), Optional: true}),
|
||||
f(&hst.FSBind{Src: m("/sys/dev"), Optional: true}),
|
||||
f(&hst.FSBind{Src: m("/sys/devices"), Optional: true}),
|
||||
f(&hst.FSBind{Src: m("/run/opengl-driver")}),
|
||||
f(&hst.FSBind{Src: m("/dev/dri"), Device: true, Optional: true}),
|
||||
f(&hst.FSBind{Source: m("/bin")}),
|
||||
f(&hst.FSBind{Source: m("/usr/bin/")}),
|
||||
f(&hst.FSBind{Source: m("/nix/store")}),
|
||||
f(&hst.FSBind{Source: m("/run/current-system")}),
|
||||
f(&hst.FSBind{Source: m("/sys/block"), Optional: true}),
|
||||
f(&hst.FSBind{Source: m("/sys/bus"), Optional: true}),
|
||||
f(&hst.FSBind{Source: m("/sys/class"), Optional: true}),
|
||||
f(&hst.FSBind{Source: m("/sys/dev"), Optional: true}),
|
||||
f(&hst.FSBind{Source: m("/sys/devices"), Optional: true}),
|
||||
f(&hst.FSBind{Source: m("/run/opengl-driver")}),
|
||||
f(&hst.FSBind{Source: m("/dev/dri"), Device: true, Optional: true}),
|
||||
},
|
||||
},
|
||||
SystemBus: &dbus.Config{
|
||||
|
||||
Reference in New Issue
Block a user