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

After a container process exits, the process information is still stored in the map #214

Open
leiqi96 opened this issue Jun 4, 2022 · 1 comment

Comments

@leiqi96
Copy link

leiqi96 commented Jun 4, 2022

lockc record all process of a container. If the process exits, the process is still stored in the processes map, but the process is unused for the container. So I think these process must be removed from the processes map after it exits.
I wrote some code to handle this in this commit

but the tag v0.1.6 can not be pull request

@vadorovsky
Copy link
Member

On the main branch, I rewrote all BPF programs in Rust and I also added a program (similar to yours) deleting processes:

https://github.com/lockc-project/lockc/blob/main/lockc-ebpf/src/proc.rs#L81-L100

I will try to make a new release later this week. I'm not planning to maintain the old versions and C BPF code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants