Branch: refs/heads/main Home: https://github.com/gssapi/gssproxy Commit: c8b9107288f9de4650612074efcca592eb6a2f0c https://github.com/gssapi/gssproxy/commit/c8b9107288f9de4650612074efcca592eb... Author: Simo Sorce simo@redhat.com Date: 2022-05-24 (Tue, 24 May 2022)
Changed paths: M src/gp_config.c M src/gp_proxy.h M src/gp_socket.c M src/gssproxy.c M systemd/gssuserproxy.service.in
Log Message: ----------- Fix issues with socket activation.
Adjust systemd's service file for usermode. Socket activation requires that we used the interactive mode (-i) so that gssproxy does not fork on startup. Forking causes sd_listen_fds() to fail as that function checks that the pid of the process calling it is the same process systemd forked via the internal envvar LISTEN_PID.
Additionally make sure to set the socket name for the artificial config service in usermode as well as the socket set up during socket activation to all use the same string (the usermode socket) so that the checks in gp_creds_match_conn() work properly in the socket activation case too.
Signed-off-by: Simo Sorce simo@redhat.com
gss-proxy@lists.fedorahosted.org