lockc
lockc copied to clipboard
After a container process exits, the process information is still stored in the map
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
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.