USBGuard / usbguard

USBGuard is a software framework for implementing USB device authorization policies (what kind of USB devices are authorized) as well as method of use policies (how a USB device may interact with the system)
https://usbguard.github.io/
GNU General Public License v2.0
1.12k stars 138 forks source link

why does `watch -e` create two processes ? #560

Open bows7ring opened 1 year ago

bows7ring commented 1 year ago

Hey there!

Problem details :

I write an executable in Python, in order to get the usbguard events via watch -e interface.

However, usbguard may create two process,only when USBGUARD_IPC_SIGNAL is classified as Device type, such as Device.PresenceChanged, Device.PolicyChanged.

Here is my log :

image

Actually, I printed the pid of processes using C++, the result was the same.

Is this the right execution result?

I wonder why, and how to deal with it, because this issue may affect the results of my monitor program.

Any help would be appreciated! And, of course, thank you for opensourcing this excellent tool.