Daemon
Daemon copied to clipboard
Do we really need nacl_bootstrap_helper-armhf just to set an env var?
The only thing nacl_helper_bootstrap-armhf.cpp does is to set an environment variable and change the working directory. These actions should be doable in the posix_spawn call that starts the VM. The environment variables can be specified as a function argument. The directory change can be added to the file actions with posix_spawn_file_actions_addchdir.
Any other implementation that does the same thing may work, indeed. The nice thing with that external tool is that it's testable from outside dæmon, directly from the command line.
I guess the command tool version could just be a shell script then.