summaryrefslogtreecommitdiff
path: root/pkg/secrets
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/secrets')
-rw-r--r--pkg/secrets/secrets.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/secrets/secrets.go b/pkg/secrets/secrets.go
index 6f38f1fd5..be5642eba 100644
--- a/pkg/secrets/secrets.go
+++ b/pkg/secrets/secrets.go
@@ -243,7 +243,7 @@ func addSecretsFromMountsFile(filePath, mountLabel, containerWorkingDir, mountPr
Source: filepath.Join(mountPrefix, ctrDir),
Destination: ctrDir,
Type: "bind",
- Options: []string{"bind"},
+ Options: []string{"bind", "private"},
}
mounts = append(mounts, m)
@@ -278,7 +278,7 @@ func addFIPSModeSecret(mounts *[]rspec.Mount, containerWorkingDir string) error
Source: ctrDirOnHost,
Destination: secretsDir,
Type: "bind",
- Options: []string{"bind"},
+ Options: []string{"bind", "private"},
}
*mounts = append(*mounts, m)
}