1*b819cea2SGordon Ross /* 2*b819cea2SGordon Ross * This file and its contents are supplied under the terms of the 3*b819cea2SGordon Ross * Common Development and Distribution License ("CDDL"), version 1.0. 4*b819cea2SGordon Ross * You may only use this file in accordance with the terms of version 5*b819cea2SGordon Ross * 1.0 of the CDDL. 6*b819cea2SGordon Ross * 7*b819cea2SGordon Ross * A full copy of the text of the CDDL should have accompanied this 8*b819cea2SGordon Ross * source. A copy of the CDDL is also available via the Internet at 9*b819cea2SGordon Ross * http://www.illumos.org/license/CDDL. 10*b819cea2SGordon Ross */ 11*b819cea2SGordon Ross 12*b819cea2SGordon Ross /* 13*b819cea2SGordon Ross * Copyright 2013 Nexenta Systems, Inc. All rights reserved. 14*b819cea2SGordon Ross */ 15*b819cea2SGordon Ross 16*b819cea2SGordon Ross 17*b819cea2SGordon Ross #include <sys/types.h> 18*b819cea2SGordon Ross #include <sys/time.h> 19*b819cea2SGordon Ross #include <sys/thread.h> 20*b819cea2SGordon Ross #include <sys/cred.h> 21*b819cea2SGordon Ross 22*b819cea2SGordon Ross struct cred { 23*b819cea2SGordon Ross uint32_t pad[100]; 24*b819cea2SGordon Ross }; 25*b819cea2SGordon Ross 26*b819cea2SGordon Ross cred_t cred0; 27*b819cea2SGordon Ross cred_t *kcred = &cred0; 28*b819cea2SGordon Ross 29*b819cea2SGordon Ross cred_t * 30*b819cea2SGordon Ross _curcred(void) 31*b819cea2SGordon Ross { 32*b819cea2SGordon Ross /* Thread-specific data? */ 33*b819cea2SGordon Ross return (&cred0); 34*b819cea2SGordon Ross } 35*b819cea2SGordon Ross 36*b819cea2SGordon Ross /*ARGSUSED*/ 37*b819cea2SGordon Ross void 38*b819cea2SGordon Ross crfree(cred_t *cr) 39*b819cea2SGordon Ross { 40*b819cea2SGordon Ross } 41*b819cea2SGordon Ross 42*b819cea2SGordon Ross /*ARGSUSED*/ 43*b819cea2SGordon Ross void 44*b819cea2SGordon Ross crhold(cred_t *cr) 45*b819cea2SGordon Ross { 46*b819cea2SGordon Ross } 47*b819cea2SGordon Ross 48*b819cea2SGordon Ross /*ARGSUSED*/ 49*b819cea2SGordon Ross uid_t 50*b819cea2SGordon Ross crgetuid(const cred_t *cr) 51*b819cea2SGordon Ross { 52*b819cea2SGordon Ross return (0); 53*b819cea2SGordon Ross } 54*b819cea2SGordon Ross 55*b819cea2SGordon Ross cred_t * 56*b819cea2SGordon Ross zone_kcred(void) 57*b819cea2SGordon Ross { 58*b819cea2SGordon Ross return (kcred); 59*b819cea2SGordon Ross } 60