summaryrefslogtreecommitdiffstats
path: root/proxy/src/gp_config.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-04-12 17:09:06 -0400
committerSimo Sorce <simo@redhat.com>2013-04-23 12:02:50 -0700
commitedf939632c9a1dbab4e769f0c23fe393d7fc8a6a (patch)
treeb6fabfe341663ee072ef6cbe5be7f62e956991fd /proxy/src/gp_config.c
parent7f8078e906b138dcd34f84e0260cba87b63ca62f (diff)
downloadgss-proxy-edf939632c9a1dbab4e769f0c23fe393d7fc8a6a.tar.gz
gss-proxy-edf939632c9a1dbab4e769f0c23fe393d7fc8a6a.tar.xz
gss-proxy-edf939632c9a1dbab4e769f0c23fe393d7fc8a6a.zip
Add support for per-service sockets
This way different processes running as the same user can be configured as different servervices Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Günther Deschner <gdeschner@redhat.com>
Diffstat (limited to 'proxy/src/gp_config.c')
-rw-r--r--proxy/src/gp_config.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/proxy/src/gp_config.c b/proxy/src/gp_config.c
index 012094a..630f56d 100644
--- a/proxy/src/gp_config.c
+++ b/proxy/src/gp_config.c
@@ -184,6 +184,15 @@ static int load_services(struct gp_config *cfg, struct gp_ini_context *ctx)
}
}
+ value = gp_config_get_string(ctx, secname, "socket");
+ if (value != NULL) {
+ cfg->svcs[n]->socket = strdup(value);
+ if (!cfg->svcs[n]->socket) {
+ ret = ENOMEM;
+ goto done;
+ }
+ }
+
ret = setup_service_creds_handle(cfg->svcs[n]);
if (ret) {
goto done;