forked from security/hakurei
container/path: fhs path constants
This increases readability since this can help disambiguate absolute paths from similarly named path segments. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -42,7 +42,7 @@ func (r *AutoRootOp) early(params *Params) error {
|
||||
if IsAutoRootBindable(name) {
|
||||
op := &BindMountOp{
|
||||
Source: path.Join(r.Host, name),
|
||||
Target: "/" + name,
|
||||
Target: FHSRoot + name,
|
||||
Flags: r.Flags,
|
||||
}
|
||||
if err = op.early(params); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user