lockc icon indicating copy to clipboard operation
lockc copied to clipboard

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

Open leiqi96 opened this issue 2 years ago • 1 comments

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

leiqi96 avatar Jun 04 '22 14:06 leiqi96

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.

vadorovsky avatar Jun 08 '22 11:06 vadorovsky