summaryrefslogtreecommitdiffstats
path: root/proxy/src/gssproxy.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-03-19 18:53:20 -0400
committerSimo Sorce <simo@redhat.com>2013-03-22 11:34:32 -0400
commit97102f1e7e19f3ea869335afbdbeba619042d694 (patch)
tree8f414af9010beb52d5584c8755a0789a48eaeddc /proxy/src/gssproxy.c
parent6c3b7b20306894d4719df967e708fe9316eeeb89 (diff)
downloadgss-proxy-97102f1e7e19f3ea869335afbdbeba619042d694.tar.gz
gss-proxy-97102f1e7e19f3ea869335afbdbeba619042d694.tar.xz
gss-proxy-97102f1e7e19f3ea869335afbdbeba619042d694.zip
Enable kernel support.
The Linux kernel now requires the gss-proxy to signal when it is available. This is done by writing 1 to the file /proc/net/rpc/use-gss-proxy Once this happens the kernel will try to attach to the gss-proxy socket and use it instead of the classic rpc.svcgssd daemon.
Diffstat (limited to 'proxy/src/gssproxy.c')
-rw-r--r--proxy/src/gssproxy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proxy/src/gssproxy.c b/proxy/src/gssproxy.c
index 498ee59..f1f0d13 100644
--- a/proxy/src/gssproxy.c
+++ b/proxy/src/gssproxy.c
@@ -103,6 +103,9 @@ int main(int argc, const char *argv[])
return 1;
}
+ /* special call to tell the Linux kernel gss-proxy is available */
+ init_proc_nfsd(gpctx->config);
+
vctx = init_event_loop();
if (!vctx) {
return 1;