Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with socket activation. #50

Merged
merged 1 commit into from
May 24, 2022
Merged

Conversation

simo5
Copy link
Contributor

@simo5 simo5 commented May 24, 2022

Related #46

@simo5 simo5 force-pushed the activationfixes branch from e8d00ae to 9b15fc7 Compare May 24, 2022 18:58
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>
@simo5 simo5 force-pushed the activationfixes branch from 9b15fc7 to fb8f825 Compare May 24, 2022 19:07
@simo5 simo5 merged commit c8b9107 into gssapi:main May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant