diff options
| author | Alex Wilson <alex.wilson@joyent.com> | 2017-04-20 15:30:11 -0400 |
|---|---|---|
| committer | Dan McDonald <danmcd@omniti.com> | 2017-04-20 15:32:26 -0400 |
| commit | b1cdc7203182cbb9ef6b7bc6085ee5b8dbee793b (patch) | |
| tree | 9cbe7ecb846fc5f26d0efa6735d58ae81f58441f /usr/src/cmd/gss | |
| parent | def4fac5882b4ca67bd0f4a53509b6d1fa8ae14e (diff) | |
| download | illumos-joyent-b1cdc7203182cbb9ef6b7bc6085ee5b8dbee793b.tar.gz | |
8085 Handle RPC groups better
Reviewed by: "Joshua M. Clulow" <josh@sysmgr.org>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/cmd/gss')
| -rw-r--r-- | usr/src/cmd/gss/gssd/gssd_proc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/src/cmd/gss/gssd/gssd_proc.c b/usr/src/cmd/gss/gssd/gssd_proc.c index 7a7ee951c2..c6a51aa34a 100644 --- a/usr/src/cmd/gss/gssd/gssd_proc.c +++ b/usr/src/cmd/gss/gssd/gssd_proc.c @@ -1,7 +1,4 @@ /* - * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. - */ -/* * CDDL HEADER START * * The contents of this file are subject to the terms of the @@ -21,6 +18,10 @@ * * CDDL HEADER END */ +/* + * Copyright 2017 Joyent Inc + * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + */ /* * RPC server procedures for the gssapi usermode daemon gssd. @@ -41,6 +42,7 @@ #include <stdlib.h> #include <syslog.h> #include <sys/resource.h> +#include <sys/debug.h> #define SRVTAB "" #define FDCACHE_PERCENTAGE .75 /* Percentage of total FD limit */ @@ -2647,6 +2649,7 @@ uid_t *uidp; syslog(LOG_ERR, gettext("checkfrom: not UNIX credentials")); goto weakauth; } + CTASSERT(sizeof (struct authunix_parms) <= RQCRED_SIZE); /*LINTED*/ aup = (struct authunix_parms *)rqstp->rq_clntcred; *uidp = aup->aup_uid; |
