alarm-central-station-receiver
alarm-central-station-receiver copied to clipboard
Drop from root privileges once hidraw0 and hiddev0 opened
Once hidraw0 and hiddev0 have been loaded, downgrade privileges. python-daemon supports running as a different user, so this could probably be leveraged.
This will require opening hidraw0 before forking (its done after now.) So need to figure out the correct way to pass the FD to the unprivileged child process. Also probably can't use the 'with' statement, or maybe do the daemon fork inside of the 'with' statement?