mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #32529 from runcom/relabel-secrets
daemon: relabel secrets path
This commit is contained in:
commit
2aec48f448
1 changed files with 2 additions and 0 deletions
|
@ -214,6 +214,8 @@ func (daemon *Daemon) setupSecretDir(c *container.Container) (setupErr error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label.Relabel(localMountPath, c.MountLabel, false)
|
||||||
|
|
||||||
// remount secrets ro
|
// remount secrets ro
|
||||||
if err := mount.Mount("tmpfs", localMountPath, "tmpfs", "remount,ro,"+tmpfsOwnership); err != nil {
|
if err := mount.Mount("tmpfs", localMountPath, "tmpfs", "remount,ro,"+tmpfsOwnership); err != nil {
|
||||||
return errors.Wrap(err, "unable to remount secret dir as readonly")
|
return errors.Wrap(err, "unable to remount secret dir as readonly")
|
||||||
|
|
Loading…
Add table
Reference in a new issue