diff --git a/deploy/charts/rook-ceph-cluster/templates/securityContextConstraints.yaml b/deploy/charts/rook-ceph-cluster/templates/securityContextConstraints.yaml index 44f84af38..cf4ab6ddc 100644 --- a/deploy/charts/rook-ceph-cluster/templates/securityContextConstraints.yaml +++ b/deploy/charts/rook-ceph-cluster/templates/securityContextConstraints.yaml @@ -17,7 +17,7 @@ allowHostNetwork: false allowHostPorts: false {{- end }} priority: -allowedCapabilities: ["MKNOD"] +allowedCapabilities: ["MKNOD", "SYS_ADMIN"] allowHostIPC: true readOnlyRootFilesystem: false # drop all default privileges diff --git a/deploy/charts/rook-ceph/templates/securityContextConstraints.yaml b/deploy/charts/rook-ceph/templates/securityContextConstraints.yaml index bf74f5e08..edc5b2999 100644 --- a/deploy/charts/rook-ceph/templates/securityContextConstraints.yaml +++ b/deploy/charts/rook-ceph/templates/securityContextConstraints.yaml @@ -19,7 +19,7 @@ allowHostNetwork: false allowHostPorts: false {{- end }} priority: -allowedCapabilities: ["MKNOD"] +allowedCapabilities: ["MKNOD", "SYS_ADMIN"] allowHostIPC: true readOnlyRootFilesystem: false # drop all default privileges diff --git a/pkg/apis/ceph.rook.io/v1/scc.go b/pkg/apis/ceph.rook.io/v1/scc.go index 736e5b76b..452514bdb 100644 --- a/pkg/apis/ceph.rook.io/v1/scc.go +++ b/pkg/apis/ceph.rook.io/v1/scc.go @@ -41,7 +41,7 @@ func NewSecurityContextConstraints(name string, namespaces ...string) *secv1.Sec AllowHostIPC: true, AllowHostNetwork: false, AllowHostPorts: false, - AllowedCapabilities: []corev1.Capability{"MKNOD"}, + AllowedCapabilities: []corev1.Capability{"MKNOD", "SYS_ADMIN"}, RequiredDropCapabilities: []corev1.Capability{"ALL"}, DefaultAddCapabilities: []corev1.Capability{}, RunAsUser: secv1.RunAsUserStrategyOptions{