-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selinux: Allow using other container-selinux policy templates than container #1495
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/hold
for @JAORMX eyes on this one
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1495 +/- ##
==========================================
+ Coverage 43.98% 44.06% +0.07%
==========================================
Files 50 50
Lines 5716 5724 +8
==========================================
+ Hits 2514 2522 +8
Misses 3081 3081
Partials 121 121 |
…ntainer The container-selinux package (at least on RHEL/Fedora) ships a number of policy templates. One of them is called simply `container` is special in the sense that using it also creates a `type process`, the others do not. The effect is that if the other templates such as `net_container` should be used, the CIL policy must also include the raw container type. This patch amends the generation of the CIL policy from the SPO-specific format so that the `container` type is always used.
8f0c951
to
25c2af9
Compare
New patch version attempts to resolve the verify failure |
Looks like we're hitting the rate limiter more often:
|
/unhold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JAORMX, jhrozek, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The container-selinux package (at least on RHEL/Fedora) ships a number
of policy templates. One of them is called simply
container
is specialin the sense that using it also creates a
type process
, theothers do not.
The effect is that if the other templates such as
net_container
shouldbe used, the CIL policy must also include the raw container type.
This patch amends the generation of the CIL policy from the SPO-specific
format so that the
container
type is always used.Which issue(s) this PR fixes:
None
Does this PR have test?
Yes
Special notes for your reviewer:
N/A
Does this PR introduce a user-facing change?