DelusionalOptimist / dropit

Network firewall using XDP
MIT License
1 stars 1 forks source link

fix: Potential panic due to race condition #3

Closed Revolyssup closed 1 year ago

Revolyssup commented 1 year ago

Due to the file watcher being started before pointer to BPF map is initialised, there lies a potential race condition where if the file is changed between the time where watcher is started and pointer to BPF map is initialised, there will be a panic.

Screenshot from 2023-08-19 16-02-49