Print this page
8115 parallel zfs mount
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libfakekernel/common/cred.c
+++ new/usr/src/lib/libfakekernel/common/cred.c
1 1 /*
2 2 * This file and its contents are supplied under the terms of the
3 3 * Common Development and Distribution License ("CDDL"), version 1.0.
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
4 4 * You may only use this file in accordance with the terms of version
5 5 * 1.0 of the CDDL.
6 6 *
7 7 * A full copy of the text of the CDDL should have accompanied this
8 8 * source. A copy of the CDDL is also available via the Internet at
9 9 * http://www.illumos.org/license/CDDL.
10 10 */
11 11
12 12 /*
13 13 * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
14 + * Copyright 2017 RackTop Systems.
14 15 */
15 16
16 17
17 18 #include <sys/types.h>
18 19 #include <sys/time.h>
19 20 #include <sys/thread.h>
20 21 #include <sys/cred.h>
21 22
22 23 struct cred {
23 24 uint32_t pad[100];
24 25 };
25 26
26 27 cred_t cred0;
27 28 cred_t *kcred = &cred0;
28 29
29 30 cred_t *
30 31 _curcred(void)
31 32 {
32 33 /* Thread-specific data? */
33 34 return (&cred0);
34 35 }
35 36
36 37 /*ARGSUSED*/
37 38 void
38 39 crfree(cred_t *cr)
39 40 {
40 41 }
41 42
42 43 /*ARGSUSED*/
43 44 void
44 45 crhold(cred_t *cr)
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
45 46 {
46 47 }
47 48
48 49 /*ARGSUSED*/
49 50 uid_t
50 51 crgetuid(const cred_t *cr)
51 52 {
52 53 return (0);
53 54 }
54 55
56 +/*ARGSUSED*/
57 +uid_t
58 +crgetruid(const cred_t *cr)
59 +{
60 + return (0);
61 +}
62 +
63 +/*ARGSUSED*/
64 +uid_t
65 +crgetgid(const cred_t *cr)
66 +{
67 + return (0);
68 +}
69 +
70 +/*ARGSUSED*/
71 +int
72 +crgetngroups(const cred_t *cr)
73 +{
74 + return (0);
75 +}
76 +
77 +/*ARGSUSED*/
78 +const gid_t *
79 +crgetgroups(const cred_t *cr)
80 +{
81 + return (NULL);
82 +}
83 +
55 84 cred_t *
56 85 zone_kcred(void)
57 86 {
58 87 return (kcred);
59 88 }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX