forked from security/hakurei
hst/fsbind: optional autoetc behaviour
This generalises the special field allowing any special behaviour to be matched from target. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -38,7 +38,7 @@ func (e *FSEphemeral) Host() []*container.Absolute { return nil }
|
||||
|
||||
const fsEphemeralDefaultPerm = os.FileMode(0755)
|
||||
|
||||
func (e *FSEphemeral) Apply(ops *container.Ops) {
|
||||
func (e *FSEphemeral) Apply(z *ApplyState) {
|
||||
if !e.Valid() {
|
||||
return
|
||||
}
|
||||
@@ -54,9 +54,9 @@ func (e *FSEphemeral) Apply(ops *container.Ops) {
|
||||
}
|
||||
|
||||
if e.Write {
|
||||
ops.Tmpfs(e.Target, size, perm)
|
||||
z.Tmpfs(e.Target, size, perm)
|
||||
} else {
|
||||
ops.Readonly(e.Target, perm)
|
||||
z.Readonly(e.Target, perm)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user