diff options
Diffstat (limited to 'utils/svcgssd')
-rw-r--r-- | utils/svcgssd/svcgssd.c | 17 | ||||
-rw-r--r-- | utils/svcgssd/svcgssd.man | 6 |
2 files changed, 20 insertions, 3 deletions
diff --git a/utils/svcgssd/svcgssd.c b/utils/svcgssd/svcgssd.c index 8e5cc99..3b5a981 100644 --- a/utils/svcgssd/svcgssd.c +++ b/utils/svcgssd/svcgssd.c @@ -37,6 +37,8 @@ */ +#include "config.h" + #include <sys/param.h> #include <sys/types.h> #include <sys/stat.h> @@ -154,7 +156,7 @@ sig_hup(int signal) static void usage(char *progname) { - fprintf(stderr, "usage: %s [-n] [-f] [-v]\n", + fprintf(stderr, "usage: %s [-n] [-f] [-v] [-r]\n", progname); exit(1); } @@ -165,11 +167,12 @@ main(int argc, char *argv[]) int get_creds = 1; int fg = 0; int verbosity = 0; + int rpc_verbosity = 0; int opt; extern char *optarg; char *progname; - while ((opt = getopt(argc, argv, "fvnp:")) != -1) { + while ((opt = getopt(argc, argv, "fvrnp:")) != -1) { switch (opt) { case 'f': fg = 1; @@ -180,6 +183,9 @@ main(int argc, char *argv[]) case 'v': verbosity++; break; + case 'r': + rpc_verbosity++; + break; default: usage(argv[0]); break; @@ -192,6 +198,13 @@ main(int argc, char *argv[]) progname = argv[0]; initerr(progname, verbosity, fg); +#ifdef HAVE_AUTHGSS_SET_DEBUG_LEVEL + authgss_set_debug_level(rpc_verbosity); +#else + if (rpc_verbosity > 0) + printerr(0, "Warning: rpcsec_gss library does not " + "support setting debug level\n"); +#endif if (!fg) mydaemon(0, 0); diff --git a/utils/svcgssd/svcgssd.man b/utils/svcgssd/svcgssd.man index f17f772..a770662 100644 --- a/utils/svcgssd/svcgssd.man +++ b/utils/svcgssd/svcgssd.man @@ -6,7 +6,7 @@ .SH NAME rpc.svcgssd \- server-side rpcsec_gss daemon .SH SYNOPSIS -.B "rpc.svcgssd [-v] [-f] [-p pipefsdir]" +.B "rpc.svcgssd [-v] [-r] [-f] [-p pipefsdir]" .SH DESCRIPTION The rpcsec_gss protocol gives a means of using the gss-api generic security api to provide security for protocols using rpc (in particular, nfs). Before @@ -27,6 +27,10 @@ in the foreground and sends output to stderr (as opposed to syslogd) .TP .B -v Increases the verbosity of the output (can be specified multiple times). +.TP +.B -r +If the rpcsec_gss library supports setting debug level, +increases the verbosity of the output (can be specified multiple times). .SH SEE ALSO .BR rpc.gssd(8), |