I want to run a child process with subprocess.Popen
and the application reads a config file.
The application connects to a database. Before I run the application I create an ssh tunnel and overwrite his config file to connect to the tunnel. (I run /path/to/application/app.exe
and the application config is /path/to/application/app.ini
)
But I dont want the user be able to read the config file. (user and password to the database)
Can I run the child process in a "sandbox" that when it wants to read the /path/to/application/app.ini
the parrent process will put an own virtual config file?