Print this page
NEX-6673 possible NULL pointer dereference in mountd`mount
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Alex Deiter <alex.deiter@nexenta.com>
NEX-4116 mountd: The IP to name translation is usually not needed in nfsauth_access()
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
NEX-1974 Support for more than 16 groups with AUTH_SYS
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
NEX-1128 NFS server: Generic uid and gid remapping for AUTH_SYS
Reviewed by: Jan Kryl <jan.kryl@nexenta.com>
*** 18,33 ****
*
* CDDL HEADER END
*/
/*
- * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
- */
-
- /*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
--- 18,30 ----
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright 2016 Nexenta Systems, Inc.
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
*** 88,110 ****
&result->auth_srv_gids.val);
sharefree(sh);
if (result->auth_perm == NFSAUTH_DENIED) {
! char *host = cln_gethost(&cln);
! if (host != NULL)
! syslog(LOG_ERR, "%s denied access to %s", host,
argp->req_path);
}
cln_fini(&cln);
}
void
! nfsauth_func(void *cookie, char *dataptr, size_t arg_size,
! door_desc_t *dp, uint_t n_desc)
!
{
nfsauth_arg_t *ap;
nfsauth_res_t res = {0};
XDR xdrs_a;
XDR xdrs_r;
--- 85,104 ----
&result->auth_srv_gids.val);
sharefree(sh);
if (result->auth_perm == NFSAUTH_DENIED) {
! syslog(LOG_ERR, "%s denied access to %s", cln_gethost(&cln),
argp->req_path);
}
cln_fini(&cln);
}
void
! nfsauth_func(void *cookie, char *dataptr, size_t arg_size, door_desc_t *dp,
! uint_t n_desc)
{
nfsauth_arg_t *ap;
nfsauth_res_t res = {0};
XDR xdrs_a;
XDR xdrs_r;