Yes, that looks like the proper thing. Now, the app would need to be resumed/woken up when such an event happens (and probably apparmor adjusted)
Yes, that looks like the proper thing. Now, the app would need to be resumed/woken up when such an event happens (and probably apparmor adjusted)