-
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
Fix apparmor profile to work with COS Linux used by GKE #2541
Conversation
Signed-off-by: Sascha Grunert <[email protected]>
…rofile Change-Id: I14fbf59d58d7617386578a3bb410dfe3fd0d492f Signed-off-by: Cosmin Cojocar <[email protected]>
Update the go-apparmor to main version to include the fix pjbgf/go-apparmor#30 Change-Id: I45997ac722b830b9589751db034f9e89ba8526e4 Signed-off-by: Cosmin Cojocar <[email protected]>
…me the host pid namespace This assumes that the container runs into the host pid namespace, which is typically the case in Kubernetes. Otherwise the go-apparmor will auto-detect this and that check will require that the Linux kernel was compiled with CONFIG_SCHED_DEBUG. Disabiling this check will ensure that the apparmor works with Linux distributions which don't have this kernel option active such as COS used by GKE. Change-Id: I1435b63d2f9c5b8d8f527ef1d77dcc2b9cb74bc9 Signed-off-by: Cosmin Cojocar <[email protected]>
Change-Id: Ie4f329ea92c2548266311d500d553ccb22537d8e Signed-off-by: Cosmin Cojocar <[email protected]>
/test all |
1 similar comment
/test all |
Change-Id: I0181d6fd17ecae835c2ec2dbf1971b6eda87bdaf Signed-off-by: Cosmin Cojocar <[email protected]>
@saschagrunert I fixed also the vagrant issue in this pull request. |
That's awesome, thank you! |
Change-Id: I14955f4a2568babe8f24c5a3664f0a26c34fc02c Signed-off-by: Cosmin Cojocar <[email protected]>
I just bumped the versions in the examples to get the test passing. Should I merge your branch into this? |
Yes this would work as well. |
Change-Id: I1bf38a8e11e3603ab24370fac819889e7fb4290d
Adding label 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-sigs/prow repository. |
I merged your branch. Hopefully now it will pass. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ccojocar, 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:
These are a number of fixes required in order to get working the apparmor profile recording and installation with COS Linux used by GKE.
The fixes include:
will try to auto-detect if a container runs into the host namespace but this will require the Linux kernel to be built with CONFIG_SCHED_DEBUG.
This is not the case for COS Linux used by the GKE. This check is not required in a Kubernetes environment since typically the containers run
into the Host PID namespace. For more details see the fix in Add an option to skip the check that a container runs into the host PID namespace pjbgf/go-apparmor#30.
(deleted)
returned by the Linux kernel. These should not land into the apparmor profile.Which issue(s) this PR fixes:
fixes #2462
Does this PR have test?
Special notes for your reviewer:
Does this PR introduce a user-facing change?