This PR is linked to #4.
It moves the save video functionality from collector to an own Vprocess. This functionality is meant to be used in case of errors occuring to save the last few seconds of the video before this happening.
Additionally, I added restricted classes to the spawner, the idea is that this process will always be running, if an error occurs in the process, they will be restarted, otherwise they cannot be started or terminated via Server request and should be defined in the server config, so that the server can start them at the beginning.
Also the paths that are given from requests for saving must be inside a server defined main folder (If you do not try to exit the main folder by including "../" to your path for example, your path will always be in the main folder) otherwise, you cannot save. To restrict memory access from server requests.
This PR is linked to #4. It moves the save video functionality from collector to an own Vprocess. This functionality is meant to be used in case of errors occuring to save the last few seconds of the video before this happening.
Additionally, I added restricted classes to the spawner, the idea is that this process will always be running, if an error occurs in the process, they will be restarted, otherwise they cannot be started or terminated via Server request and should be defined in the server config, so that the server can start them at the beginning.
Also the paths that are given from requests for saving must be inside a server defined main folder (If you do not try to exit the main folder by including "../" to your path for example, your path will always be in the main folder) otherwise, you cannot save. To restrict memory access from server requests.