-
Notifications
You must be signed in to change notification settings - Fork 110
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
Cleanup the apparmor recorder maps after processing #2658
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ccojocar 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 |
cc @mhils |
LGTM! |
1865618
to
8d2cec8
Compare
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.
func (b *AppArmorRecorder) Unload() {
}
in bpfrecorder_apparmor.go
needs to be fixed as well.
abac239
to
3f40fdf
Compare
It seems that that closing the module will destroy all the links and also unload the programs from the kernel.
This is what actually happens in module close
I'm not sure if we need to do anything extra in the AppArmorRecorder |
Change-Id: Ic5db65e30c8c13dce4204de6b4ab481142da4f25 Signed-off-by: Cosmin Cojocar <[email protected]>
Change-Id: Idae3a0be22df8143697bb9e556d13dfd3bd5bea1 Signed-off-by: Cosmin Cojocar <[email protected]>
Change-Id: I6dea16a829cbe2ba9b0fcecc325966b91b22b1c4 Signed-off-by: Cosmin Cojocar <[email protected]>
3f40fdf
to
c8ab1b1
Compare
I just saw that the seccomp recorder is cleaning itself up in Unload and the AppArmor recorder isn't, which kind of fits the theme of this PR. Not sure if the userspace datastructures survive. :) |
Change-Id: Id45d0a68465f5f372090647c8a76514a3d988c9e Signed-off-by: Cosmin Cojocar <[email protected]>
Got it! I cleaned up all the internal maps in the Unload. |
Close in favour of #/2675. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Cleans up the apparmor recorder maps after processing.
Which issue(s) this PR fixes:
Does this PR have test?
Yes
Special notes for your reviewer:
Does this PR introduce a user-facing change?