qubes-core-agent-linux/qrexec
Marek Marczykowski-Górecki d5c5715bc0
qrexec: launch services in login shell
Previously the script was called through shell as:
    execl(shell, "-sh", "-c", "/usr/lib/qubes/qubes-rpc-multiplexer
            ...", 0);
This tells the shell to load login scripts, including /etc/profile.
Since 5512e4eada this is no longer the
case and the script is called directly. Since most services do expect
proper user session initialized (/etc/profile loaded etc), adjust the
script's shebang to behave like a login shell and load those startup
scripts.

Fixes QubesOS/qubes-issues#3615

(cherry picked from commit f0b057479e)
2018-02-22 12:44:26 +01:00
..
Makefile qrexec: enable compiler optimization 2015-03-20 12:06:33 +01:00
qrexec-agent-data.c qrexec: code style fix - use spaces for indentation 2017-12-13 03:17:00 +01:00
qrexec-agent.c qrexec: use exec_qubes_rpc_if_requested() from qubes-utils 2018-02-19 02:41:47 +01:00
qrexec-agent.h qrexec: use exec_qubes_rpc_if_requested() from qubes-utils 2018-02-19 02:41:47 +01:00
qrexec-client-vm.c qrexec: translate keywords in target specification on the client side 2018-02-19 02:41:53 +01:00
qrexec-fork-server.c qrexec: use exec_qubes_rpc_if_requested() from qubes-utils 2018-02-19 02:41:47 +01:00
qubes-rpc-multiplexer qrexec: launch services in login shell 2018-02-22 12:44:26 +01:00