-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[release-0.59] SELinux policy: ensure it never gets installed if the feature gate is set #9655
[release-0.59] SELinux policy: ensure it never gets installed if the feature gate is set #9655
Conversation
… set Most of the virt-handler callbacks are setup before refreshing the cache. Also, callbacks are called once on setup. It means that on first time, callbacks get called with mostly unpopulated objects, including a crucially empty set of feature gates. Since the SELinux policy feature gate is of the "disable" type, the policy is then considered enabled and therefore gets installed. Adding the callback after the cache refresh fixes the issue. Signed-off-by: Jed Lejosne <jed@redhat.com> (cherry picked from commit e99b4fc) Signed-off-by: Jed Lejosne <jed@redhat.com>
/cc @xpivarc |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xpivarc 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 |
/retest-required |
8 similar comments
/retest-required |
/retest-required |
/retest-required |
/retest-required |
/retest-required |
/retest-required |
/retest-required |
/retest-required |
@jean-edouard: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest-required |
This is a manual backport of #9639