Skip to content

Commit

Permalink
issue 8249: disable selinux relabel for backupPod (#8250)
Browse files Browse the repository at this point in the history
Signed-off-by: Lyndon-Li <[email protected]>
  • Loading branch information
Lyndon-Li authored Sep 27, 2024
1 parent aab2140 commit 0ccdc7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/exposer/csi_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,9 @@ func (e *csiSnapshotExposer) createBackupPod(
RestartPolicy: corev1.RestartPolicyNever,
SecurityContext: &corev1.PodSecurityContext{
RunAsUser: &userID,
SELinuxOptions: &corev1.SELinuxOptions{
Type: "spc_t",
},
},
},
}
Expand Down

0 comments on commit 0ccdc7c

Please sign in to comment.