Signed-off-by: Antonio Murdaca <runcom@redhat.com>
(cherry picked from commit b11af7b2f686fe3724d0cfce260000a3d2b8fbc1)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
| ... | ... |
@@ -214,6 +214,8 @@ func (daemon *Daemon) setupSecretDir(c *container.Container) (setupErr error) {
|
| 214 | 214 |
} |
| 215 | 215 |
} |
| 216 | 216 |
|
| 217 |
+ label.Relabel(localMountPath, c.MountLabel, false) |
|
| 218 |
+ |
|
| 217 | 219 |
// remount secrets ro |
| 218 | 220 |
if err := mount.Mount("tmpfs", localMountPath, "tmpfs", "remount,ro,"+tmpfsOwnership); err != nil {
|
| 219 | 221 |
return errors.Wrap(err, "unable to remount secret dir as readonly") |