matanui159 / ReplaySorcery

An open-source, instant-replay solution for Linux
GNU General Public License v3.0
854 stars 27 forks source link

Split ReplaySorcery into two services #109

Closed matanui159 closed 3 years ago

matanui159 commented 3 years ago

Is your feature request related to a problem? Please describe. Currently ReplaySorcery runs with root setuid which is very insecure.

Describe the solution you'd like Split ReplaySorcery into two services. One that runs all the time and has root access to KMS, and another that runs on user login that connects to the first service to grab frames.

Describe alternatives you've considered Over time the security of the setuid implementation has been improved but eventually this will have to be removed.

Additional context Should the setuid method still be supported? And for how long? What IPC method should we use? My first thought is unix pipes since they're simple and allow sending file handles (which is needed to KMS).