From 97102f1e7e19f3ea869335afbdbeba619042d694 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 19 Mar 2013 18:53:20 -0400 Subject: 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. --- proxy/src/gp_proxy.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proxy/src/gp_proxy.h') diff --git a/proxy/src/gp_proxy.h b/proxy/src/gp_proxy.h index c599eee..beddf61 100644 --- a/proxy/src/gp_proxy.h +++ b/proxy/src/gp_proxy.h @@ -34,6 +34,8 @@ #define _(STRING) gettext(STRING) +#define LINUX_PROC_USE_GSS_PROXY_FILE "/proc/net/rpc/use-gss-proxy" + #define GP_CRED_KRB5 0x01 struct gp_cred_krb5 { @@ -48,6 +50,7 @@ struct gp_service { char *name; uid_t euid; bool trusted; + bool kernel_nfsd; uint32_t mechs; struct gp_cred_krb5 krb5; @@ -84,6 +87,7 @@ void free_config(struct gp_config *config); void init_server(bool daemonize); void fini_server(void); verto_ctx *init_event_loop(void); +void init_proc_nfsd(struct gp_config *cfg); /* from gp_socket.c */ int init_unix_socket(const char *file_name); -- cgit