mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
daemon: relabel secrets path
Signed-off-by: Antonio Murdaca <runcom@redhat.com> Upstream-commit: b11af7b2f686fe3724d0cfce260000a3d2b8fbc1 Component: engine
This commit is contained in:
@@ -214,6 +214,8 @@ func (daemon *Daemon) setupSecretDir(c *container.Container) (setupErr error) {
|
||||
}
|
||||
}
|
||||
|
||||
label.Relabel(localMountPath, c.MountLabel, false)
|
||||
|
||||
// remount secrets ro
|
||||
if err := mount.Mount("tmpfs", localMountPath, "tmpfs", "remount,ro,"+tmpfsOwnership); err != nil {
|
||||
return errors.Wrap(err, "unable to remount secret dir as readonly")
|
||||
|
||||
Reference in New Issue
Block a user