Skip to content

Fix execution in sudo path

Reiner Hauser requested to merge (removed):pmglauncher-fix into master

The LD_LIBRARY_PATH variable has to be explicitly passed on the sudo command line, since sudo is itself a suid executable.

The final execvp() call has to take the program from the argument list, since it depends on if we wrap it into sudo or not. Since we construct the path we can use execv() and don't do a search in PATH.

Tested with systemd pmgserver v1.0.1 RPM.

Debugging PMG/pmglauncher is a pain

Merge request reports