-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
selinuxpolicy: updates to enable support for OCP 4.11+/K8s 1.24+
In container-selinux versions v2.186.0, v2.187.0 and v2.188.0, due to the updates here: containers/container-selinux@cf704e4 selinuxpolicy updates are required (updating `container_runtime_t` to `kubelet_t`). This is consumed in OCP 4.11 and K8s 1.24 and we need to make sure that the selinuxpolicy is appropriately updated. In addition to that, we need to continue supporting the older selinuxpolicy supplied in older versions (e.g. 4.10) and that is the reason this patch is proposing an additional selinuxpolicy and not completely replacing the original one. Signed-off-by: Swati Sehgal <[email protected]>
- Loading branch information
1 parent
eb5c3f2
commit 55fb124
Showing
6 changed files
with
87 additions
and
24 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
File renamed without changes.
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,21 @@ | ||
(block rte | ||
(type process) | ||
(roletype system_r process) | ||
(typeattributeset domain (process)) | ||
; | ||
; Giving rte.process the same attributes as container_t | ||
(typeattributeset container_domain (process)) | ||
(typeattributeset container_net_domain (process)) | ||
(typeattributeset svirt_sandbox_domain (process)) | ||
(typeattributeset sandbox_net_domain (process)) | ||
|
||
; | ||
; Allow to RTE pod access to /run/rte directory | ||
(allow process container_var_run_t (dir (add_name write))) | ||
(allow process container_var_run_t (file (create read write open))) | ||
|
||
; | ||
; Allow to RTE pod connect, read and write permissions to /var/lib/kubelet/pod-resource/kubelet.sock | ||
(allow process container_var_lib_t (sock_file (open getattr read write ioctl lock append))) | ||
(allow process kubelet_t (unix_stream_socket (connectto))) | ||
) |
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
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
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