Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 568) sorted by relevance

12345678910>>...23

/illumos-gate/usr/src/uts/common/os/
H A Dpolicy.c144 #define HAS_ALLPRIVS(cr) priv_isfullset(&CR_OEPRIV(cr)) argument
145 #define ZONEPRIVS(cr) ((cr)->cr_zone->zone_privset) argument
146 #define HAS_ALLZONEPRIVS(cr) priv_issubset(ZONEPRIVS(cr), &CR_OEPRIV(cr)) argument
338 set = *ZONEPRIVS(cr); in priv_policy_override()
401 if ((HAS_PRIVILEGE(cr, priv) && (!allzone || HAS_ALLZONEPRIVS(cr))) || in priv_policy_ap()
496 &CR_OEPRIV(cr))) { in secpolicy_require_set()
1258 cred_t *cr) in secpolicy_setid_setsticky_clear() argument
1527 (cr->cr_uid != ip->ipc_uid && cr->cr_uid != ip->ipc_cuid)) { in secpolicy_ipc_owner()
1662 if (newuid == 0 && cr->cr_uid != 0 && cr->cr_suid != 0 && in secpolicy_allow_setid()
1860 drv_priv(cred_t *cr) in drv_priv() argument
[all …]
H A Dcred.c349 ASSERT(cr->cr_ref != 0xdeadbeef && cr->cr_ref != 0); in crhold()
360 ASSERT(cr->cr_ref != 0xdeadbeef && cr->cr_ref != 0); in crfree()
400 crfree(cr); in crcopy()
812 cr->cr_uid = cr->cr_ruid = cr->cr_suid = uid; in crsetugid()
813 cr->cr_gid = cr->cr_rgid = cr->cr_sgid = gid; in crsetugid()
872 return (cr->cr_grps == NULL ? &cr->cr_gid : cr->cr_grps->crg_groups); in crgetgroups()
1044 if (cr->cr_uid == 0 && cr->cr_ruid != 0) { in crnetadjust()
1045 cr = crdup(cr); in crnetadjust()
1046 cr->cr_uid = cr->cr_ruid; in crnetadjust()
1347 cr->cr_ksid = kcrsid_setsidlist(cr->cr_ksid, ksl); in crsetsidlist()
[all …]
H A Dpriv.c647 priv_union(&CR_LPRIV(cr), &CR_EPRIV(cr)); in priv_set_PA()
649 if (cr->cr_uid == 0 || cr->cr_suid == 0 || cr->cr_ruid == 0) in priv_set_PA()
662 return ((cr->cr_suid != 0 && cr->cr_ruid != 0 && cr->cr_uid != 0) || in priv_can_clear_PA()
664 (cr->cr_uid != 0 || priv_isequalset(&CR_EPRIV(cr), &CR_LPRIV(cr)))); in priv_can_clear_PA()
694 if (cr->cr_suid == 0 || cr->cr_ruid == 0 || cr->cr_uid == 0) { in priv_adjust_PA()
733 if (cr->cr_suid == cr->cr_ruid && cr->cr_suid == cr->cr_uid) { in priv_reset_PA()
735 CR_EPRIV(cr) = CR_IPRIV(cr); in priv_reset_PA()
737 CR_PPRIV(cr) = CR_EPRIV(cr); in priv_reset_PA()
740 CR_EPRIV(cr) = CR_PPRIV(cr); in priv_reset_PA()
742 } else if (cr->cr_uid != 0 && (cr->cr_ruid == 0 || cr->cr_suid == 0)) { in priv_reset_PA()
[all …]
/illumos-gate/usr/src/uts/common/syscall/
H A Duid.c80 crhold(cr); in setuid()
83 if ((uid == cr->cr_ruid || uid == cr->cr_suid) && in setuid()
86 crfree(cr); in setuid()
97 crfree(cr); in setuid()
148 crfree(cr); in setuid()
180 cred_t *cr; in getuid() local
220 if (uid == cr->cr_ruid || uid == cr->cr_uid || uid == cr->cr_suid || in seteuid()
228 crfree(cr); in seteuid()
250 crfree(cr); in seteuid()
305 crfree(cr); in setreuid()
[all …]
H A Dgid.c75 crhold(cr); in setgid()
79 if ((gid == cr->cr_rgid || gid == cr->cr_sgid) && in setgid()
82 crfree(cr); in setgid()
93 crfree(cr); in setgid()
113 crfree(cr); in setgid()
135 cred_t *cr; in getgid() local
174 if (gid == cr->cr_rgid || gid == cr->cr_gid || gid == cr->cr_sgid || in setegid()
177 crfree(cr); in setegid()
194 crfree(cr); in setegid()
250 rgid == cr->cr_rgid || rgid == cr->cr_gid || rgid == cr->cr_sgid) && in setregid()
[all …]
H A Dppriv.c58 cred_t *cr, *pcr; in setppriv() local
69 cr = cralloc(); in setppriv()
92 crfree(cr); in setppriv()
102 crfree(cr); in setppriv()
128 priv_set_PA(cr); in setppriv()
168 cr->cr_uid != 0 && cr->cr_ruid != 0 && cr->cr_suid != 0) { in setppriv()
175 p->p_cred = cr; in setppriv()
291 crfree(cr); in setpflags()
312 crfree(cr); in setpflags()
321 crfree(cr); in setpflags()
[all …]
H A Dgroups.c44 cred_t *cr, *newcr; in setgroups() local
94 cr = p->p_cred; in setgroups()
95 crhold(cr); in setgroups()
104 crfree(cr); in setgroups()
108 crfree(cr); in setgroups()
109 if (cr != p->p_cred) in setgroups()
112 crdup_to(cr, newcr); in setgroups()
118 crfree(cr); /* free the old one */ in setgroups()
132 struct cred *cr; in getgroups() local
135 cr = curthread->t_cred; in getgroups()
[all …]
H A Daccess.c68 cred_t *cr; in caccess() local
76 cr = CRED(); in caccess()
80 (cr->cr_uid == cr->cr_ruid && cr->cr_gid == cr->cr_rgid); in caccess()
83 tmpcr = cr; in caccess()
85 tmpcr = crdup(cr); in caccess()
86 tmpcr->cr_uid = cr->cr_ruid; in caccess()
87 tmpcr->cr_gid = cr->cr_rgid; in caccess()
88 tmpcr->cr_ruid = cr->cr_uid; in caccess()
89 tmpcr->cr_rgid = cr->cr_gid; in caccess()
/illumos-gate/usr/src/uts/common/sys/
H A Dfem.h154 offset_t offset, cred_t *cr, \
161 int flag, cred_t *cr, int *rvalp, \
187 vnode_t **vpp, cred_t *cr, \
225 enum seg_rw rw, cred_t *cr, \
266 xuio_t *xuio, cred_t *cr, \
305 cred_t *cr, caller_context_t *ct);
322 cred_t *cr, caller_context_t *ct,
365 cred_t *cr, caller_context_t *ct);
367 cred_t *cr, caller_context_t *ct);
392 cred_t *cr, caller_context_t *ct);
[all …]
/illumos-gate/usr/src/cmd/tbl/
H A Dtu.c25 int cr, type, shortl; in makeline() local
28 cr=c; in makeline()
32 for(cr=c; cr < ncol && (ctype(i,cr)=='s'||type==thish(i,cr)); cr++); in makeline()
34 for(cr=c+1; cr<ncol && ctype(i,cr)=='s'; cr++); in makeline()
41 int cr, cl; in fullwide() local
44 cr= 0; in fullwide()
45 while (cr<ncol) in fullwide()
47 cl=cr; in fullwide()
50 for(cr=cl; cr<ncol; cr++) in fullwide()
54 drawline(i,cl,(cr<ncol?cr-1:cr),lintype,1,0); in fullwide()
[all …]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcred.c62 crfree(cred_t *cr) in crfree() argument
68 crhold(cred_t *cr) in crhold() argument
74 crgetuid(const cred_t *cr) in crgetuid() argument
76 return (cr->cr_uid); in crgetuid()
81 crgetruid(const cred_t *cr) in crgetruid() argument
83 return (cr->cr_uid); in crgetruid()
88 crgetgid(const cred_t *cr) in crgetgid() argument
102 crgetgroups(const cred_t *cr) in crgetgroups() argument
109 crgetzoneid(const cred_t *cr) in crgetzoneid() argument
116 crgetzone(const cred_t *cr) in crgetzone() argument
[all …]
H A Dksocket.c128 struct cred *cr) in ksocket_socket() argument
134 ASSERT(cr != NULL); in ksocket_socket()
162 struct cred *cr) in ksocket_bind() argument
167 ASSERT(cr != NULL); in ksocket_bind()
186 ASSERT(cr != NULL); in ksocket_listen()
204 ASSERT(cr != NULL); in ksocket_accept()
225 struct cred *cr) in ksocket_connect() argument
228 ASSERT(cr != NULL); in ksocket_connect()
246 ASSERT(cr != NULL); in ksocket_send()
273 ASSERT(cr != NULL); in ksocket_sendto()
[all …]
/illumos-gate/usr/src/uts/common/io/ksocket/
H A Dksocket.c50 struct cred *cr) in ksocket_socket() argument
58 ASSERT(cr != NULL); in ksocket_socket()
65 cr, &error); in ksocket_socket()
103 struct cred *cr) in ksocket_bind() argument
108 ASSERT(cr != NULL); in ksocket_bind()
122 ASSERT(cr != NULL); in ksocket_listen()
138 ASSERT(cr != NULL); in ksocket_accept()
172 struct cred *cr) in ksocket_connect() argument
175 ASSERT(cr != NULL); in ksocket_connect()
194 ASSERT(cr != NULL); in ksocket_send()
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_vnode.c323 cred_t *cr, in vn_rdwr() argument
969 cred_t *cr, in fop_open() argument
1033 cred_t *cr, in fop_close() argument
1064 cred_t *cr, in fop_read() argument
1083 cred_t *cr, in fop_write() argument
1103 cred_t *cr, in fop_ioctl() argument
1121 cred_t *cr, in fop_setfl() argument
1138 cred_t *cr, in fop_getattr() argument
1171 cred_t *cr, in fop_setattr() argument
1204 cred_t *cr, in fop_access() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_cred.c64 cred_t *cr; in smb_cred_create() local
71 cr = crget(); in smb_cred_create()
72 ASSERT(cr != NULL); in smb_cred_create()
82 crfree(cr); in smb_cred_create()
87 crfree(cr); in smb_cred_create()
98 crsetsidlist(cr, ksidlist); in smb_cred_create()
100 return (cr); in smb_cred_create()
155 cred_t *cr; in smb_kcred_create() local
157 cr = crget(); in smb_kcred_create()
158 ASSERT(cr != NULL); in smb_kcred_create()
[all …]
H A Dsmb_fsops.c146 ASSERT(cr); in smb_fsop_create_with_sd()
290 ASSERT(cr); in smb_fsop_create()
602 ASSERT(cr); in smb_fsop_mkdir()
742 ASSERT(cr); in smb_fsop_remove()
871 ASSERT(cr); in smb_fsop_remove_streams()
1477 cr = kcr; in smb_fsop_read()
1571 cr = kcr; in smb_fsop_write()
1765 cr); in smb_fsop_access()
2086 cr); in smb_fsop_lookup()
2710 cr); in smb_fsop_eaccess()
[all …]
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_vnops.c108 struct cred *cr, in lo_close() argument
146 struct cred *cr, in lo_ioctl() argument
169 struct cred *cr, in lo_getattr() argument
188 struct cred *cr, in lo_setattr() argument
203 struct cred *cr, in lo_access() argument
298 struct cred *cr, in lo_lookup() argument
670 struct cred *cr, in lo_create() argument
1041 cred_t *cr, in lo_frlock() argument
1187 cred_t *cr, in lo_pageio() argument
1200 cred_t *cr, in lo_dispose() argument
[all …]
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dapi.h77 crypto_call_req_t *cr);
81 crypto_call_req_t *cr);
83 crypto_call_req_t *cr);
90 crypto_call_req_t *cr);
96 crypto_call_req_t *cr);
106 crypto_call_req_t *cr);
108 crypto_call_req_t *cr);
125 crypto_call_req_t *cr);
127 crypto_call_req_t *cr);
133 crypto_call_req_t *cr);
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ducred.c116 if (cr == NULL) { in ucred_geteuid()
121 return (cr->pr_euid); in ucred_geteuid()
130 if (cr == NULL) { in ucred_getruid()
135 return (cr->pr_ruid); in ucred_getruid()
144 if (cr == NULL) { in ucred_getsuid()
149 return (cr->pr_suid); in ucred_getsuid()
158 if (cr == NULL) { in ucred_getegid()
163 return (cr->pr_egid); in ucred_getegid()
172 if (cr == NULL) { in ucred_getrgid()
186 if (cr == NULL) { in ucred_getsgid()
[all …]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsock_notsupp.c38 sock_upper_handle_t upper, struct cred *cr) in sock_accept_notsupp() argument
46 socklen_t namelen, struct cred *cr) in sock_bind_notsupp() argument
54 struct cred *cr) in sock_listen_notsupp() argument
63 struct cred *cr) in sock_connect_notsupp() argument
71 socklen_t *len, struct cred *cr) in sock_getsockname_notsupp() argument
79 socklen_t *addrlen, struct cred *cr) in sock_getpeername_notsupp() argument
87 int option_name, void *optval, socklen_t *optlenp, struct cred *cr) in sock_getsockopt_notsupp() argument
95 int option_name, const void *optval, socklen_t optlen, struct cred *cr) in sock_setsockopt_notsupp() argument
103 struct msghdr *msg, struct cred *cr) in sock_send_notsupp() argument
111 struct nmsghdr *msg, struct cred *cr) in sock_senduio_notsupp() argument
[all …]
H A Dsockcommon.c135 struct cred *cr; in socket_newconn() local
137 if ((cr = CRED()) == NULL) in socket_newconn()
138 cr = kcred; in socket_newconn()
146 errorp, cr); in socket_newconn()
173 int flags, cred_t *cr) in socket_bind() argument
268 socklen_t *addrlen, cred_t *cr) in socket_getsockname() argument
292 optlenp, flags, cr)); in socket_getsockopt()
317 cred_t *cr) in socket_sendmsg() argument
355 struct cred *cr, mblk_t **mpp) in socket_sendmblk() argument
368 cred_t *cr) in socket_recvmsg() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_pass.c214 uid = crgetruid(cr); in smb_pkey_del()
286 uid = crgetruid(cr); in smb_pkey_add()
306 ret = smb_pkey_check(pk, cr); in smb_pkey_add()
308 (void) smb_pkey_del(pk, cr); in smb_pkey_add()
340 uid = crgetruid(cr); in smb_pkey_check()
392 err = smb_pkey_add(pk, cr); in smb_pkey_ioctl()
396 err = smb_pkey_del(pk, cr); in smb_pkey_ioctl()
400 err = smb_pkey_check(pk, cr); in smb_pkey_ioctl()
407 uid = crgetruid(cr); in smb_pkey_ioctl()
408 err = smb_pkey_deluid(uid, cr); in smb_pkey_ioctl()
[all …]
/illumos-gate/usr/src/lib/libm/common/m9x/
H A Dtgammaf.c92 #define P10 cr[0]
93 #define P11 cr[1]
94 #define P12 cr[2]
95 #define P13 cr[3]
96 #define P14 cr[4]
97 #define P15 cr[5]
98 #define P20 cr[6]
99 #define P21 cr[7]
100 #define P22 cr[8]
101 #define P23 cr[9]
[all …]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/sys/
H A Dvnode.h1027 fop_open(vpp, mode, cr, ct)
1029 fop_close(vp, f, c, o, cr, ct)
1031 fop_read(vp, uiop, iof, cr, ct)
1037 fop_setfl(vp, f, a, cr, ct)
1039 fop_getattr(vp, vap, f, cr, ct)
1041 fop_setattr(vp, vap, f, cr, ct)
1043 fop_access(vp, mode, f, cr, ct)
1049 fop_remove(dvp, p, cr, ct, f)
1063 fop_readlink(vp, uiop, cr, ct)
1067 fop_inactive(vp, cr, ct)
[all …]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/sys/
H A Dvnode.h1034 fop_open(vpp, mode, cr, ct)
1036 fop_close(vp, f, c, o, cr, ct)
1038 fop_read(vp, uiop, iof, cr, ct)
1044 fop_setfl(vp, f, a, cr, ct)
1046 fop_getattr(vp, vap, f, cr, ct)
1048 fop_setattr(vp, vap, f, cr, ct)
1050 fop_access(vp, mode, f, cr, ct)
1056 fop_remove(dvp, p, cr, ct, f)
1070 fop_readlink(vp, uiop, cr, ct)
1074 fop_inactive(vp, cr, ct)
[all …]

12345678910>>...23