forked from intel/intel-technology-enabling-for-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves intel#122 qatlib scc for IPC_LOCK in security/ qatlib needs to run as root SCC based on OCP default restricted-v2 SCC, with root permissions Used for intel#117 Signed-off-by: vbedida79 <veenadhari.bedida@intel.com>
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (c) 2023 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
apiVersion: security.openshift.io/v1 | ||
allowHostDirVolumePlugin: false | ||
allowHostIPC: false | ||
allowHostNetwork: false | ||
allowHostPID: false | ||
allowHostPorts: false | ||
allowPrivilegeEscalation: false | ||
allowPrivilegedContainer: false | ||
allowedCapabilities: | ||
- IPC_LOCK | ||
defaultAddCapabilities: null | ||
fsGroup: | ||
type: MustRunAs | ||
groups: [] | ||
kind: SecurityContextConstraints | ||
metadata: | ||
annotations: | ||
kubernetes.io/description: 'SCC to use IPC_LOCK capability for qatlib pod' | ||
name: intel-qat-scc | ||
priority: null | ||
readOnlyRootFilesystem: false | ||
requiredDropCapabilities: | ||
- ALL | ||
runAsUser: | ||
type: RunAsAny | ||
seLinuxContext: | ||
type: MustRunAs | ||
supplementalGroups: | ||
type: RunAsAny | ||
seccompProfiles: | ||
- runtime/default | ||
volumes: | ||
- configMap | ||
- downwardAPI | ||
- emptyDir | ||
- ephemeral | ||
- persistentVolumeClaim | ||
- projected | ||
- secret |