Skip to content
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

[v0.16.0] fix: enrich post control plane (#3285) #3289

Conversation

NDStrahilevitz
Copy link
Collaborator

@NDStrahilevitz NDStrahilevitz commented Jun 29, 2023

Cherry pick #3285 to v0.16.0

Locks in the container package were as short as possible.
This caused transaction issues once a few actors interacted with it.

Change the locking scheme to be more "transactional" with large locks,
instead of combining read locks and write locks in the same transaction.

Additional chores in the scope of the commit:
1. Initialize enrichEnabled field in control plane.
2. Control Plane's Run started a go routine internally, which was
    redundant.
3. Rename mutex in cgroups code to cgroupsMutex.
4. Capitalize BPF in RemoveFromBpfMap.
5. Delete the unused processing code for cgroup events.

commit: f638b4e (main), cherry-pick
Copy link
Collaborator

@yanivagman yanivagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK to cherry-pick into v0.16.0

@NDStrahilevitz NDStrahilevitz merged commit 3944fe7 into aquasecurity:v0.16.0 Jun 29, 2023
3 checks passed
@rafaeldtinoco rafaeldtinoco changed the title fix: enrich post control plane (#3285) [v0.16.0] fix: enrich post control plane (#3285) Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants