mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-18 15:54:57 +00:00
Automatic merge from submit-queue (batch tested with PRs 58756, 58758, 58725, 52799, 58534). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. PSP: improve parsing and validation of SELinux levels **What this PR does / why we need it**: At this moment, when we're comparing SELinux levels of PSP and container, we compare them as strings. We don't take into account that categories in a level may be specified in a different order (for example, `s0:c0,c6` is the same as `s0:c6,c0`). This PR improves handling of SELinux levels by doing logical comparison. **Special notes for your reviewer**: Here is the issue in OpenShift tracker from @pweil-: https://github.com/openshift/origin/issues/15627 Relate PR to fixing this in OpenShift: https://github.com/openshift/origin/pull/16432 **Release note**: ```release-note NONE ``` PTAL @pweil- CC @simo5