Merge pull request #32529 from runcom/relabel-secrets
daemon: relabel secrets path Upstream-commit: 2aec48f44843016d13dfe4b5f53d29d0226fc769 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