Print this page
13026 SMB and NFS use the global zone's IDMAP when they shouldn't
Change-Id: I3b5f7bc68bb77764aa7cb59a48dd1740a8387ccf

*** 18,27 **** --- 18,28 ---- * * CDDL HEADER END */ /* * Copyright (c) 2013, Ira Cooper. All rights reserved. + * Copyright 2020 Nexenta by DDN, Inc. All rights reserved. */ /* * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. */
*** 286,296 **** cred_t * crget(void) { cred_t *cr = kmem_cache_alloc(cred_cache, KM_SLEEP); ! bcopy(kcred, cr, crsize); cr->cr_ref = 1; zone_cred_hold(cr->cr_zone); if (cr->cr_label) label_hold(cr->cr_label); ASSERT(cr->cr_klpd == NULL); --- 287,297 ---- cred_t * crget(void) { cred_t *cr = kmem_cache_alloc(cred_cache, KM_SLEEP); ! bcopy(zone_kcred(), cr, crsize); cr->cr_ref = 1; zone_cred_hold(cr->cr_zone); if (cr->cr_label) label_hold(cr->cr_label); ASSERT(cr->cr_klpd == NULL);