alarm-central-station-receiver icon indicating copy to clipboard operation
alarm-central-station-receiver copied to clipboard

Drop from root privileges once hidraw0 and hiddev0 opened

Open scudre opened this issue 7 years ago • 0 comments

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?

scudre avatar Jan 02 '18 01:01 scudre