Searched refs:cr (Results 1 - 25 of 494) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/os/
H A Dpolicy.c144 #define HAS_ALLPRIVS(cr) priv_isfullset(&CR_OEPRIV(cr))
145 #define ZONEPRIVS(cr) ((cr)->cr_zone->zone_privset)
146 #define HAS_ALLZONEPRIVS(cr) priv_issubset(ZONEPRIVS(cr), &CR_OEPRIV(cr))
147 #define HAS_PRIVILEGE(cr, pr) ((pr) == PRIV_ALL ? \
148 HAS_ALLPRIVS(cr) : \
149 PRIV_ISASSERT(&CR_OEPRIV(cr), p
215 priv_policy_errmsg(const cred_t *cr, int priv, const char *msg) argument
327 priv_policy_override(const cred_t *cr, int priv, boolean_t allzone, va_list ap) argument
348 priv_policy_override_set(const cred_t *cr, const priv_set_t *req, va_list ap) argument
359 priv_policy_override_set_va(const cred_t *cr, const priv_set_t *req, ...) argument
374 priv_policy_err(const cred_t *cr, int priv, boolean_t allzone, const char *msg) argument
398 priv_policy_ap(const cred_t *cr, int priv, boolean_t allzone, int err, const char *msg, va_list ap) argument
422 priv_policy_va(const cred_t *cr, int priv, boolean_t allzone, int err, const char *msg, ...) argument
436 priv_policy(const cred_t *cr, int priv, boolean_t allzone, int err, const char *msg) argument
446 priv_policy_choice(const cred_t *cr, int priv, boolean_t allzone) argument
469 priv_policy_only(const cred_t *cr, int priv, boolean_t allzone) argument
486 secpolicy_require_set(const cred_t *cr, const priv_set_t *req, const char *msg, ...) argument
545 priv_policy_global(const cred_t *cr) argument
561 secpolicy_raisepriority(const cred_t *cr) argument
572 secpolicy_setpriority(const cred_t *cr) argument
585 secpolicy_net_privaddr(const cred_t *cr, in_port_t port, int proto) argument
634 secpolicy_net_bindmlp(const cred_t *cr) argument
644 secpolicy_net_mac_aware(const cred_t *cr) argument
653 secpolicy_net_mac_implicit(const cred_t *cr) argument
667 secpolicy_fs_common(cred_t *cr, vnode_t *mvp, const vfs_t *vfsp, boolean_t *needoptcheck) argument
741 secpolicy_fs_mount_clearopts(cred_t *cr, struct vfs *vfsp) argument
817 secpolicy_fs_mount(cred_t *cr, vnode_t *mvp, struct vfs *vfsp) argument
849 secpolicy_fs_owner(cred_t *cr, const struct vfs *vfsp) argument
864 secpolicy_fs_unmount(cred_t *cr, struct vfs *vfsp) argument
874 secpolicy_fs_quota(const cred_t *cr, const vfs_t *vfsp) argument
883 secpolicy_fs_minfree(const cred_t *cr, const vfs_t *vfsp) argument
889 secpolicy_fs_config(const cred_t *cr, const vfs_t *vfsp) argument
896 secpolicy_fs_linkdir(const cred_t *cr, const vfs_t *vfsp) argument
929 secpolicy_vnode_access(const cred_t *cr, vnode_t *vp, uid_t owner, mode_t mode) argument
969 secpolicy_vnode_access2(const cred_t *cr, vnode_t *vp, uid_t owner, mode_t curmode, mode_t wantmode) argument
1034 secpolicy_vnode_any_access(const cred_t *cr, vnode_t *vp, uid_t owner) argument
1085 secpolicy_vnode_setid_modify(const cred_t *cr, uid_t owner) argument
1227 secpolicy_vnode_remove(const cred_t *cr) argument
1234 secpolicy_vnode_owner(const cred_t *cr, uid_t owner) argument
1245 secpolicy_setid_clear(vattr_t *vap, cred_t *cr) argument
1257 secpolicy_setid_setsticky_clear(vnode_t *vp, vattr_t *vap, const vattr_t *ovap, cred_t *cr) argument
1297 secpolicy_xvattr(xvattr_t *xvap, uid_t owner, cred_t *cr, vtype_t vtype) argument
1387 secpolicy_vnode_setattr(cred_t *cr, struct vnode *vp, struct vattr *vap, const struct vattr *ovap, int flags, int unlocked_access(void *, int, cred_t *), void *node) argument
1524 secpolicy_ipc_owner(const cred_t *cr, const struct kipc_perm *ip) argument
1537 secpolicy_ipc_config(const cred_t *cr) argument
1543 secpolicy_ipc_access(const cred_t *cr, const struct kipc_perm *ip, mode_t mode) argument
1565 secpolicy_rsm_access(const cred_t *cr, uid_t owner, mode_t mode) argument
1589 secpolicy_audit_config(const cred_t *cr) argument
1598 secpolicy_audit_modify(const cred_t *cr) argument
1609 secpolicy_audit_getattr(const cred_t *cr, boolean_t checkonly) argument
1629 secpolicy_lock_memory(const cred_t *cr) argument
1638 secpolicy_acct(const cred_t *cr) argument
1658 secpolicy_allow_setid(const cred_t *cr, uid_t newuid, boolean_t checkonly) argument
1727 secpolicy_pset(const cred_t *cr) argument
1734 secpolicy_psecflags(const cred_t *cr, proc_t *tp, proc_t *sp) argument
1749 secpolicy_pbind(const cred_t *cr) argument
1757 secpolicy_ponline(const cred_t *cr) argument
1763 secpolicy_pool(const cred_t *cr) argument
1769 secpolicy_blacklist(const cred_t *cr) argument
1778 secpolicy_sys_config(const cred_t *cr, boolean_t checkonly) argument
1792 secpolicy_zone_admin(const cred_t *cr, boolean_t checkonly) argument
1807 secpolicy_zone_config(const cred_t *cr) argument
1820 secpolicy_coreadm(const cred_t *cr) argument
1826 secpolicy_systeminfo(const cred_t *cr) argument
1832 secpolicy_dispadm(const cred_t *cr) argument
1838 secpolicy_settime(const cred_t *cr) argument
1847 secpolicy_clock_highres(const cred_t *cr) argument
1860 drv_priv(cred_t *cr) argument
1866 secpolicy_sys_devices(const cred_t *cr) argument
1872 secpolicy_excl_open(const cred_t *cr) argument
1878 secpolicy_rctlsys(const cred_t *cr, boolean_t is_zone_rctl) argument
1887 secpolicy_resource(const cred_t *cr) argument
1893 secpolicy_resource_anon_mem(const cred_t *cr) argument
1903 secpolicy_newproc(const cred_t *cr) argument
1915 secpolicy_net_rawaccess(const cred_t *cr) argument
1921 secpolicy_net_observability(const cred_t *cr) argument
1930 secpolicy_net_icmpaccess(const cred_t *cr) argument
1941 secpolicy_net_config(const cred_t *cr, boolean_t checkonly) argument
1961 secpolicy_ip_config(const cred_t *cr, boolean_t checkonly) argument
1979 secpolicy_dl_config(const cred_t *cr) argument
1990 secpolicy_iptun_config(const cred_t *cr) argument
2004 secpolicy_ip(const cred_t *cr, int netpriv, boolean_t checkonly) argument
2031 secpolicy_net(const cred_t *cr, int netpriv, boolean_t checkonly) argument
2058 secpolicy_nfs(const cred_t *cr) argument
2068 secpolicy_rpcmod_open(const cred_t *cr) argument
2077 secpolicy_chroot(const cred_t *cr) argument
2083 secpolicy_tasksys(const cred_t *cr) argument
2089 secpolicy_meminfo(const cred_t *cr) argument
2095 secpolicy_pfexec_register(const cred_t *cr) argument
2104 secpolicy_basic_exec(const cred_t *cr, vnode_t *vp) argument
2113 secpolicy_basic_fork(const cred_t *cr) argument
2121 secpolicy_basic_proc(const cred_t *cr) argument
2136 secpolicy_basic_procinfo(const cred_t *cr, proc_t *tp, proc_t *sp) argument
2147 secpolicy_basic_link(const cred_t *cr) argument
2155 secpolicy_basic_net_access(const cred_t *cr) argument
2164 secpolicy_basic_file_read(const cred_t *cr, vnode_t *vp, const char *pn) argument
2174 secpolicy_basic_file_write(const cred_t *cr, vnode_t *vp, const char *pn) argument
2197 secpolicy_spec_open(const cred_t *cr, struct vnode *vp, int oflag) argument
2249 secpolicy_modctl(const cred_t *cr, int cmd) argument
2281 secpolicy_console(const cred_t *cr) argument
2287 secpolicy_power_mgmt(const cred_t *cr) argument
2297 secpolicy_sti(const cred_t *cr) argument
2303 secpolicy_net_reply_equal(const cred_t *cr) argument
2309 secpolicy_swapctl(const cred_t *cr) argument
2315 secpolicy_cpc_cpu(const cred_t *cr) argument
2326 secpolicy_contract_identity(const cred_t *cr) argument
2337 secpolicy_contract_observer(const cred_t *cr, struct contract *ct) argument
2351 secpolicy_contract_observer_choice(const cred_t *cr) argument
2363 secpolicy_contract_event(const cred_t *cr) argument
2376 secpolicy_contract_event_choice(const cred_t *cr) argument
2388 secpolicy_gart_access(const cred_t *cr) argument
2400 secpolicy_gart_map(const cred_t *cr) argument
2418 secpolicy_xhci(const cred_t *cr) argument
2430 secpolicy_zinject(const cred_t *cr) argument
2442 secpolicy_zfs(const cred_t *cr) argument
2454 secpolicy_idmap(const cred_t *cr) argument
2503 secpolicy_require_privs(const cred_t *cr, const priv_set_t *nset) argument
2527 secpolicy_smb(const cred_t *cr) argument
2547 secpolicy_vscan(const cred_t *cr) argument
2569 secpolicy_smbfs_login(const cred_t *cr, uid_t uid) argument
2590 secpolicy_xvm_control(const cred_t *cr) argument
2604 secpolicy_ppp_config(const cred_t *cr) argument
[all...]
H A Dcred.c250 cred_t *cr = kmem_cache_alloc(cred_cache, flgs); local
252 if (cr == NULL)
255 cr->cr_ref = 1; /* So we can crfree() */
256 cr->cr_zone = NULL;
257 cr->cr_label = NULL;
258 cr->cr_ksid = NULL;
259 cr->cr_klpd = NULL;
260 cr->cr_grps = NULL;
261 return (cr);
276 cred_t *cr local
289 cred_t *cr = kmem_cache_alloc(cred_cache, KM_SLEEP); local
313 crset(proc_t *p, cred_t *cr) argument
346 crhold(cred_t *cr) argument
357 crfree(cred_t *cr) argument
383 crcopy(cred_t *cr) argument
439 crdup_flags(const cred_t *cr, int flgs) argument
464 crdup(cred_t *cr) argument
503 cred_t *cr; local
519 suser(cred_t *cr) argument
530 groupmember(gid_t gid, const cred_t *cr) argument
541 supgroupmember(gid_t gid, const cred_t *cr) argument
677 crgetuid(const cred_t *cr) argument
683 crgetruid(const cred_t *cr) argument
689 crgetsuid(const cred_t *cr) argument
695 crgetgid(const cred_t *cr) argument
701 crgetrgid(const cred_t *cr) argument
707 crgetsgid(const cred_t *cr) argument
713 crgetauinfo(const cred_t *cr) argument
719 crgetauinfo_modifiable(cred_t *cr) argument
725 crgetzoneid(const cred_t *cr) argument
733 crgetprojid(const cred_t *cr) argument
739 crgetzone(const cred_t *cr) argument
745 crgetlabel(const cred_t *cr) argument
753 crisremote(const cred_t *cr) argument
762 crsetresuid(cred_t *cr, uid_t r, uid_t e, uid_t s) argument
782 crsetresgid(cred_t *cr, gid_t r, gid_t e, gid_t s) argument
802 crsetugid(cred_t *cr, uid_t uid, gid_t gid) argument
832 crsetgroups(cred_t *cr, int n, gid_t *grp) argument
856 crsetprojid(cred_t *cr, projid_t projid) argument
869 crgetgroups(const cred_t *cr) argument
875 crgetngroups(const cred_t *cr) argument
881 cred2prcred(const cred_t *cr, prcred_t *pcrp) argument
898 cred2ucaud(const cred_t *cr, auditinfo64_addr_t *ainfo, const cred_t *rcr) argument
923 cred2uclabel(const cred_t *cr, bslabel_t *labelp) argument
941 cred2ucred(const cred_t *cr, pid_t pid, void *buf, const cred_t *rcr) argument
992 ucredminsize(const cred_t *cr) argument
1020 cred_t *cr; local
1041 crnetadjust(cred_t *cr) argument
1056 crgetref(const cred_t *cr) argument
1090 crsetzone(cred_t *cr, zone_t *zptr) argument
1109 cred_t *cr = NULL; local
1128 copycred_from_tslabel(const cred_t *cr, ts_label_t *label, int flags) argument
1146 copycred_from_bslabel(const cred_t *cr, bslabel_t *blabel, uint32_t doi, int flags) argument
1304 crgetmapped(const cred_t *cr) argument
1331 crsetsid(cred_t *cr, ksid_t *ksp, int index) argument
1341 crsetsidlist(cred_t *cr, ksidlist_t *ksl) argument
1350 crgetsid(const cred_t *cr, int i) argument
1359 crgetsidlist(const cred_t *cr) argument
1373 crsetpriv(cred_t *cr, ...) argument
1404 crset_zone_privall(cred_t *cr) argument
1417 crgetcrklpd(const cred_t *cr) argument
1423 crsetcrklpd(cred_t *cr, struct credklpd *crklpd) argument
1459 crsetcredgrp(cred_t *cr, credgrp_t *grps) argument
[all...]
H A Dpriv.c167 priv_pr_spriv(proc_t *p, prpriv_t *prpriv, const cred_t *cr) argument
191 if (priv_proc_cred_perm(cr, p, &oldcred, VWRITE) != 0) {
203 eset = CR_OEPRIV(cr);
311 priv_getset(const cred_t *cr, int set) argument
315 if ((CR_FLAGS(cr) & PRIV_AWARE) == 0)
318 return (&CR_OEPRIV(cr));
320 return (&CR_OPPRIV(cr));
322 return (&CR_PRIVS(cr)->crprivs[set]);
332 priv_getinfo(const cred_t *cr, void *buf) argument
337 ii->val = CR_FLAGS(cr);
452 priv_valid(const cred_t *cr) argument
636 priv_set_PA(cred_t *cr) argument
654 priv_can_clear_PA(const cred_t *cr) argument
675 priv_adjust_PA(cred_t *cr) argument
708 priv_reset_PA(cred_t *cr, boolean_t finalize) argument
[all...]
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcred.c62 crfree(cred_t *cr) argument
68 crhold(cred_t *cr) argument
74 crgetuid(const cred_t *cr) argument
76 return (cr->cr_uid);
81 crgetruid(const cred_t *cr) argument
83 return (cr->cr_uid);
88 crgetgid(const cred_t *cr) argument
95 crgetngroups(const cred_t *cr) argument
102 crgetgroups(const cred_t *cr) argument
109 crgetzoneid(const cred_t *cr) argument
116 crgetzone(const cred_t *cr) argument
129 crgetsid(const cred_t *cr, int i) argument
[all...]
H A Dksocket.c128 struct cred *cr)
134 ASSERT(cr != NULL);
162 struct cred *cr)
167 ASSERT(cr != NULL);
183 ksocket_listen(ksocket_t ks, int backlog, struct cred *cr) argument
186 ASSERT(cr != NULL);
199 socklen_t *addrlenp, ksocket_t *nks, struct cred *cr)
204 ASSERT(cr != NULL);
225 struct cred *cr)
228 ASSERT(cr !
127 ksocket_socket(ksocket_t *ksp, int domain, int type, int protocol, int flags, struct cred *cr) argument
161 ksocket_bind(ksocket_t ks, struct sockaddr *addr, socklen_t addrlen, struct cred *cr) argument
198 ksocket_accept(ksocket_t ks, struct sockaddr *addr, socklen_t *addrlenp, ksocket_t *nks, struct cred *cr) argument
224 ksocket_connect(ksocket_t ks, struct sockaddr *addr, socklen_t addrlen, struct cred *cr) argument
240 ksocket_send(ksocket_t ks, void *msg, size_t msglen, int flags, size_t *sent, struct cred *cr) argument
267 ksocket_sendto(ksocket_t ks, void *msg, size_t msglen, int flags, struct sockaddr *name, socklen_t namelen, size_t *sent, struct cred *cr) argument
294 ksocket_sendmsg(ksocket_t ks, struct nmsghdr *msg, int flags, size_t *sent, struct cred *cr) argument
342 ksocket_recv(ksocket_t ks, void *msg, size_t msglen, int flags, size_t *recvd, struct cred *cr) argument
369 ksocket_recvfrom(ksocket_t ks, void *msg, size_t msglen, int flags, struct sockaddr *name, socklen_t *namelen, size_t *recvd, struct cred *cr) argument
396 ksocket_recvmsg(ksocket_t ks, struct nmsghdr *msg, int flags, size_t *recvd, struct cred *cr) argument
423 ksocket_shutdown(ksocket_t ks, int how, struct cred *cr) argument
438 ksocket_close(ksocket_t ks, struct cred *cr) argument
473 ksocket_getsockname(ksocket_t ks, struct sockaddr *addr, socklen_t *addrlen, struct cred *cr) argument
492 ksocket_getpeername(ksocket_t ks, struct sockaddr *addr, socklen_t *addrlen, struct cred *cr) argument
511 ksocket_setsockopt(ksocket_t ks, int level, int optname, const void *optval, int optlen, struct cred *cr) argument
530 ksocket_ioctl(ksocket_t ks, int cmd, intptr_t arg, int *rvp, struct cred *cr) argument
[all...]
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_cred.c51 cred_t *cr;
52 cr = CRED();
53 return (cr);
59 cred_t *cr; local
60 cr = CRED();
61 return (cr);
65 smb_user_setcred(smb_user_t *user, cred_t *cr, uint32_t privileges) argument
67 user->u_cred = cr;
/illumos-gate/usr/src/uts/common/syscall/
H A Dgid.c49 cred_t *cr, *newcr; local
74 cr = p->p_cred;
75 crhold(cr);
79 if ((gid == cr->cr_rgid || gid == cr->cr_sgid) &&
80 secpolicy_allow_setid(cr, -1, B_TRUE) != 0) {
82 crfree(cr);
83 if (cr != p->p_cred)
86 crcopy_to(cr, newcr);
91 } else if ((error = secpolicy_allow_setid(cr,
135 cred_t *cr; local
147 cred_t *cr, *newcr; local
224 cred_t *cr, *newcr; local
[all...]
H A Duid.c50 cred_t *cr, *newcr; local
79 cr = p->p_cred;
80 crhold(cr);
83 if ((uid == cr->cr_ruid || uid == cr->cr_suid) &&
84 secpolicy_allow_setid(cr, uid, B_TRUE) != 0) {
86 crfree(cr);
87 if (cr != p->p_cred)
90 crcopy_to(cr, newcr);
95 } else if ((error = secpolicy_allow_setid(cr, ui
180 cred_t *cr; local
194 cred_t *cr, *newcr; local
271 cred_t *cr, *newcr; local
[all...]
H A Dgroups.c44 cred_t *cr, *newcr; local
94 cr = p->p_cred;
95 crhold(cr);
98 if ((error = secpolicy_allow_setid(cr, -1, B_FALSE)) != 0) {
104 crfree(cr);
108 crfree(cr);
109 if (cr != p->p_cred)
112 crdup_to(cr, newcr);
118 crfree(cr); /* free the old one */
132 struct cred *cr; local
[all...]
H A Daccess.c68 cred_t *cr; local
76 cr = CRED();
80 (cr->cr_uid == cr->cr_ruid && cr->cr_gid == cr->cr_rgid);
83 tmpcr = cr;
85 tmpcr = crdup(cr);
86 tmpcr->cr_uid = cr->cr_ruid;
87 tmpcr->cr_gid = cr
[all...]
H A Dppriv.c58 cred_t *cr, *pcr; local
69 cr = cralloc();
92 crfree(cr);
102 crfree(cr);
121 crcopy_to(pcr, cr);
128 priv_set_PA(cr);
130 target = &(CR_PRIVS(cr)->crprivs[type]);
155 priv_intersect(&pset, &CR_EPRIV(cr));
168 cr->cr_uid != 0 && cr
247 cred_t *cr, *pcr; local
358 getpflags(uint_t flag, const cred_t *cr) argument
[all...]
/illumos-gate/usr/src/tools/onbld/Checks/
H A DDbLookups.py83 def __illbug(self, cr):
84 url = "http://illumos.org/issues/%s.xml" % cr
91 raise NonExistentBug(cr)
119 for cr in crs:
121 results[str(cr)] = self.__illbug(cr)
127 for cr in crs:
128 if cr in results:
129 crs.remove(cr)
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_cred.c64 cred_t *cr; local
71 cr = crget();
72 ASSERT(cr != NULL);
81 if (crsetugid(cr, token->tkn_user.i_id, gid) != 0) {
82 crfree(cr);
86 if (crsetgroups(cr, posix_grps->pg_ngrps, posix_grps->pg_grps) != 0) {
87 crfree(cr);
92 crsetsid(cr, &ksid, KSID_USER);
94 crsetsid(cr, &ksid, KSID_GROUP);
96 crsetsid(cr,
155 cred_t *cr; local
[all...]
H A Dsmb_fsops.c123 smb_fsop_create_with_sd(smb_request_t *sr, cred_t *cr, argument
145 ASSERT(cr);
180 &vp, flags, cr, vsap);
184 &vp, flags, cr, vsap);
215 *ret_snode = smb_node_lookup(sr, &sr->arg.open, cr, vp,
235 flags, cr, NULL);
238 flags, cr, NULL);
244 *ret_snode = smb_node_lookup(sr, &sr->arg.open, cr, vp,
261 (void) smb_vop_rmdir(dnode->vp, name, flags, cr);
263 (void) smb_vop_remove(dnode->vp, name, flags, cr);
282 smb_fsop_create(smb_request_t *sr, cred_t *cr, smb_node_t *dnode, char *name, smb_attr_t *attr, smb_node_t **ret_snode) argument
373 smb_fsop_create_stream(smb_request_t *sr, cred_t *cr, smb_node_t *dnode, char *fname, char *sname, int flags, smb_attr_t *attr, smb_node_t **ret_snode) argument
453 smb_fsop_create_file(smb_request_t *sr, cred_t *cr, smb_node_t *dnode, char *name, int flags, smb_attr_t *attr, smb_node_t **ret_snode) argument
538 smb_fsop_mkdir( smb_request_t *sr, cred_t *cr, smb_node_t *dnode, char *name, smb_attr_t *attr, smb_node_t **ret_snode) argument
677 smb_fsop_remove( smb_request_t *sr, cred_t *cr, smb_node_t *dnode, char *name, uint32_t flags) argument
810 smb_fsop_remove_streams(smb_request_t *sr, cred_t *cr, smb_node_t *fnode) argument
879 smb_fsop_rmdir( smb_request_t *sr, cred_t *cr, smb_node_t *dnode, char *name, uint32_t flags) argument
951 smb_fsop_getattr(smb_request_t *sr, cred_t *cr, smb_node_t *snode, smb_attr_t *attr) argument
1019 smb_fsop_link(smb_request_t *sr, cred_t *cr, smb_node_t *from_fnode, smb_node_t *to_dnode, char *to_name) argument
1084 smb_fsop_rename( smb_request_t *sr, cred_t *cr, smb_node_t *from_dnode, char *from_name, smb_node_t *to_dnode, char *to_name) argument
1234 smb_fsop_setattr( smb_request_t *sr, cred_t *cr, smb_node_t *snode, smb_attr_t *set_attr) argument
1322 smb_fsop_freesp( smb_request_t *sr, cred_t *cr, smb_ofile_t *ofile, off64_t off, off64_t len) argument
1382 smb_fsop_read(smb_request_t *sr, cred_t *cr, smb_node_t *snode, smb_ofile_t *ofile, uio_t *uio, int ioflag) argument
1465 smb_fsop_write( smb_request_t *sr, cred_t *cr, smb_node_t *snode, smb_ofile_t *ofile, uio_t *uio, uint32_t *lcount, int ioflag) argument
1578 smb_fsop_next_alloc_range( cred_t *cr, smb_node_t *node, off64_t *datap, off64_t *holep) argument
1602 smb_fsop_statfs( cred_t *cr, smb_node_t *snode, struct statvfs64 *statp) argument
1633 smb_fsop_access(smb_request_t *sr, cred_t *cr, smb_node_t *snode, uint32_t faccess) argument
1754 smb_fsop_lookup_name( smb_request_t *sr, cred_t *cr, int flags, smb_node_t *root_node, smb_node_t *dnode, char *name, smb_node_t **ret_snode) argument
1890 smb_fsop_lookup( smb_request_t *sr, cred_t *cr, int flags, smb_node_t *root_node, smb_node_t *dnode, char *name, smb_node_t **ret_snode) argument
2055 smb_fsop_commit(smb_request_t *sr, cred_t *cr, smb_node_t *snode) argument
2085 smb_fsop_aclread(smb_request_t *sr, cred_t *cr, smb_node_t *snode, smb_fssd_t *fs_sd) argument
2143 smb_fsop_aclwrite(smb_request_t *sr, cred_t *cr, smb_node_t *snode, smb_fssd_t *fs_sd) argument
2233 smb_fsop_sdread(smb_request_t *sr, cred_t *cr, smb_node_t *snode, smb_fssd_t *fs_sd) argument
2396 smb_fsop_sdwrite(smb_request_t *sr, cred_t *cr, smb_node_t *snode, smb_fssd_t *fs_sd, int overwrite) argument
2560 smb_fsop_eaccess(smb_request_t *sr, cred_t *cr, smb_node_t *snode, uint32_t *eaccess) argument
2646 smb_fsop_shrlock(cred_t *cr, smb_node_t *node, uint32_t uniq_fid, uint32_t desired_access, uint32_t share_access) argument
2668 smb_fsop_unshrlock(cred_t *cr, smb_node_t *node, uint32_t uniq_fid) argument
2674 smb_fsop_frlock(smb_node_t *node, smb_lock_t *lock, boolean_t unlock, cred_t *cr) argument
[all...]
/illumos-gate/usr/src/cmd/tbl/
H A Dtu.c25 int cr, type, shortl; local
28 cr=c;
32 for(cr=c; cr < ncol && (ctype(i,cr)=='s'||type==thish(i,cr)); cr++);
34 for(cr=c+1; cr<ncol && ctype(i,cr)
41 int cr, cl; local
62 drawline(int i, int cl, int cr, int lintype, int noheight, int shortl) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsock_notsupp.c38 sock_upper_handle_t upper, struct cred *cr)
46 socklen_t namelen, struct cred *cr)
54 struct cred *cr)
63 struct cred *cr)
71 socklen_t *len, struct cred *cr)
79 socklen_t *addrlen, struct cred *cr)
87 int option_name, void *optval, socklen_t *optlenp, struct cred *cr)
95 int option_name, const void *optval, socklen_t optlen, struct cred *cr)
103 struct msghdr *msg, struct cred *cr)
111 struct nmsghdr *msg, struct cred *cr)
37 sock_accept_notsupp(sock_lower_handle_t low1, sock_lower_handle_t low2, sock_upper_handle_t upper, struct cred *cr) argument
45 sock_bind_notsupp(sock_lower_handle_t handle, struct sockaddr *name, socklen_t namelen, struct cred *cr) argument
53 sock_listen_notsupp(sock_lower_handle_t handle, int backlog, struct cred *cr) argument
61 sock_connect_notsupp(sock_lower_handle_t handle, const struct sockaddr *name, socklen_t namelen, sock_connid_t *conp, struct cred *cr) argument
70 sock_getsockname_notsupp(sock_lower_handle_t handle, struct sockaddr *sa, socklen_t *len, struct cred *cr) argument
78 sock_getpeername_notsupp(sock_lower_handle_t handle, struct sockaddr *addr, socklen_t *addrlen, struct cred *cr) argument
86 sock_getsockopt_notsupp(sock_lower_handle_t handle, int level, int option_name, void *optval, socklen_t *optlenp, struct cred *cr) argument
94 sock_setsockopt_notsupp(sock_lower_handle_t handle, int level, int option_name, const void *optval, socklen_t optlen, struct cred *cr) argument
102 sock_send_notsupp(sock_lower_handle_t handle, mblk_t *mp, struct msghdr *msg, struct cred *cr) argument
110 sock_senduio_notsupp(sock_lower_handle_t handle, struct uio *uiop, struct nmsghdr *msg, struct cred *cr) argument
118 sock_recvuio_notsupp(sock_lower_handle_t handle, struct uio *uiop, struct nmsghdr *msg, struct cred *cr) argument
134 sock_shutdown_notsupp(sock_lower_handle_t handle, int how, struct cred *cr) argument
155 sock_close_notsupp(sock_lower_handle_t proto_handle, int flags, cred_t *cr) argument
[all...]
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/
H A Dfake_policy.c41 secpolicy_vnode_access2(const cred_t *cr, vnode_t *vp, uid_t owner, argument
54 secpolicy_vnode_owner(const cred_t *cr, uid_t owner) argument
56 /* cr->cr_uid */
57 if (owner == crgetruid(cr))
64 secpolicy_vnode_setattr(cred_t *cr, struct vnode *vp, struct vattr *vap, argument
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dhayes.c29 char code = 0, cr = 0; local
72 (void) read(FD, &cr, 1);
73 if (code == '1' && cr == '0')
74 (void) read(FD, &cr, 1);
77 if ((code == '1' || code == '5') && cr == '\r')
113 char code = 0, cr = 0; local
145 (void) read(FD, &cr, 1);
146 if (code == '0' && cr == '\r')
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dzvol.h42 extern void zvol_create_cb(objset_t *os, void *arg, cred_t *cr, dmu_tx_t *tx);
48 extern int zvol_open(dev_t *devp, int flag, int otyp, cred_t *cr);
50 extern int zvol_close(dev_t dev, int flag, int otyp, cred_t *cr);
52 extern int zvol_read(dev_t dev, uio_t *uiop, cred_t *cr);
53 extern int zvol_write(dev_t dev, uio_t *uiop, cred_t *cr);
54 extern int zvol_aread(dev_t dev, struct aio_req *aio, cred_t *cr);
55 extern int zvol_awrite(dev_t dev, struct aio_req *aio, cred_t *cr);
56 extern int zvol_ioctl(dev_t dev, int cmd, intptr_t arg, int flag, cred_t *cr,
H A Ddsl_deleg.h79 int dsl_deleg_access(const char *ddname, const char *perm, cred_t *cr);
80 int dsl_deleg_access_impl(struct dsl_dataset *ds, const char *perm, cred_t *cr);
81 void dsl_deleg_set_create_perms(dsl_dir_t *dd, dmu_tx_t *tx, cred_t *cr);
82 int dsl_deleg_can_allow(char *ddname, nvlist_t *nvp, cred_t *cr);
83 int dsl_deleg_can_unallow(char *ddname, nvlist_t *nvp, cred_t *cr);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ducred.c114 const prcred_t *cr = UCCRED(uc); local
116 if (cr == NULL) {
121 return (cr->pr_euid);
128 const prcred_t *cr = UCCRED(uc); local
130 if (cr == NULL) {
135 return (cr->pr_ruid);
142 const prcred_t *cr = UCCRED(uc); local
144 if (cr == NULL) {
149 return (cr->pr_suid);
156 const prcred_t *cr local
170 const prcred_t *cr = UCCRED(uc); local
184 const prcred_t *cr = UCCRED(uc); local
198 const prcred_t *cr = UCCRED(uc); local
[all...]
/illumos-gate/usr/src/uts/common/fs/ctfs/
H A Dctfs_latest.c68 ctfs_latest_nested_open(vnode_t *vp, cred_t *cr) argument
81 cr, 0, NULL, NULL) == 0);
102 cred_t *cr,
110 if (nvp = ctfs_latest_nested_open(vp, cr)) {
125 ctfs_latest_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *ct) argument
132 if (nvp = ctfs_latest_nested_open(*vpp, cr)) {
135 return (VOP_OPEN(vpp, flag, cr, ct));
152 cred_t *cr,
157 if (nvp = ctfs_latest_nested_open(vp, cr)) {
158 int res = VOP_GETATTR(nvp, vap, flags, cr, c
98 ctfs_latest_access( vnode_t *vp, int mode, int flags, cred_t *cr, caller_context_t *ct) argument
148 ctfs_latest_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
[all...]
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dapi.h72 crypto_data_t *digest, crypto_call_req_t *cr);
77 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);
101 crypto_ctx_template_t tmpl, crypto_context_t *ctxp, crypto_call_req_t *cr);
106 crypto_call_req_t *cr);
108 crypto_call_req_t *cr);
115 crypto_data_t *signature, crypto_call_req_t *cr);
[all...]
/illumos-gate/usr/src/uts/common/sys/
H A Dfem.h151 int (*femop_open)(femarg_t *vf, int mode, cred_t *cr, \
154 offset_t offset, cred_t *cr, \
157 cred_t *cr, caller_context_t *ct); \
159 cred_t *cr, caller_context_t *ct); \
161 int flag, cred_t *cr, int *rvalp, \
164 cred_t *cr, caller_context_t *ct); \
166 cred_t *cr, caller_context_t *ct); \
168 cred_t *cr, caller_context_t *ct); \
170 cred_t *cr, caller_context_t *ct); \
173 cred_t *cr, caller_context_
[all...]
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_vnops.c50 lo_open(vnode_t **vpp, int flag, struct cred *cr, caller_context_t *ct) argument
69 error = VOP_OPEN(&rvp, flag, cr, ct);
86 svp = specvp(*vpp, (*vpp)->v_rdev, (*vpp)->v_type, cr);
108 struct cred *cr,
115 return (VOP_CLOSE(vp, flag, count, offset, cr, ct));
119 lo_read(vnode_t *vp, struct uio *uiop, int ioflag, struct cred *cr, argument
126 return (VOP_READ(vp, uiop, ioflag, cr, ct));
130 lo_write(vnode_t *vp, struct uio *uiop, int ioflag, struct cred *cr, argument
137 return (VOP_WRITE(vp, uiop, ioflag, cr, ct));
146 struct cred *cr,
103 lo_close( vnode_t *vp, int flag, int count, offset_t offset, struct cred *cr, caller_context_t *ct) argument
141 lo_ioctl( vnode_t *vp, int cmd, intptr_t arg, int flag, struct cred *cr, int *rvalp, caller_context_t *ct) argument
158 lo_setfl(vnode_t *vp, int oflags, int nflags, cred_t *cr, caller_context_t *ct) argument
165 lo_getattr( vnode_t *vp, struct vattr *vap, int flags, struct cred *cr, caller_context_t *ct) argument
184 lo_setattr( vnode_t *vp, struct vattr *vap, int flags, struct cred *cr, caller_context_t *ct) argument
199 lo_access( vnode_t *vp, int mode, int flags, struct cred *cr, caller_context_t *ct) argument
218 lo_fsync(vnode_t *vp, int syncflag, struct cred *cr, caller_context_t *ct) argument
229 lo_inactive(vnode_t *vp, struct cred *cr, caller_context_t *ct) argument
291 lo_lookup( vnode_t *dvp, char *nm, vnode_t **vpp, struct pathname *pnp, int flags, vnode_t *rdir, struct cred *cr, caller_context_t *ct, int *direntflags, pathname_t *realpnp) argument
663 lo_create( vnode_t *dvp, char *nm, struct vattr *va, enum vcexcl exclusive, int mode, vnode_t **vpp, struct cred *cr, int flag, caller_context_t *ct, vsecattr_t *vsecp) argument
745 lo_remove( vnode_t *dvp, char *nm, struct cred *cr, caller_context_t *ct, int flags) argument
760 lo_link( vnode_t *tdvp, vnode_t *vp, char *tnm, struct cred *cr, caller_context_t *ct, int flags) argument
817 lo_rename( vnode_t *odvp, char *onm, vnode_t *ndvp, char *nnm, struct cred *cr, caller_context_t *ct, int flags) argument
902 lo_mkdir( vnode_t *dvp, char *nm, struct vattr *va, vnode_t **vpp, struct cred *cr, caller_context_t *ct, int flags, vsecattr_t *vsecp) argument
938 lo_rmdir( vnode_t *dvp, char *nm, vnode_t *cdir, struct cred *cr, caller_context_t *ct, int flags) argument
959 lo_symlink( vnode_t *dvp, char *lnm, struct vattr *tva, char *tnm, struct cred *cr, caller_context_t *ct, int flags) argument
976 lo_readlink( vnode_t *vp, struct uio *uiop, struct cred *cr, caller_context_t *ct) argument
987 lo_readdir( vnode_t *vp, struct uio *uiop, struct cred *cr, int *eofp, caller_context_t *ct, int flags) argument
1034 lo_frlock( vnode_t *vp, int cmd, struct flock64 *bfp, int flag, offset_t offset, struct flk_callback *flk_cbp, cred_t *cr, caller_context_t *ct) argument
1049 lo_space( vnode_t *vp, int cmd, struct flock64 *bfp, int flag, offset_t offset, struct cred *cr, caller_context_t *ct) argument
1063 lo_getpage( vnode_t *vp, offset_t off, size_t len, uint_t *prot, struct page *parr[], size_t psz, struct seg *seg, caddr_t addr, enum seg_rw rw, struct cred *cr, caller_context_t *ct) argument
1082 lo_putpage( vnode_t *vp, offset_t off, size_t len, int flags, struct cred *cr, caller_context_t *ct) argument
1095 lo_map( vnode_t *vp, offset_t off, struct as *as, caddr_t *addrp, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument
1112 lo_addmap( vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uchar_t prot, uchar_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument
1130 lo_delmap( vnode_t *vp, offset_t off, struct as *as, caddr_t addr, size_t len, uint_t prot, uint_t maxprot, uint_t flags, struct cred *cr, caller_context_t *ct) argument
1169 lo_pathconf( vnode_t *vp, int cmd, ulong_t *valp, struct cred *cr, caller_context_t *ct) argument
1181 lo_pageio( vnode_t *vp, struct page *pp, u_offset_t io_off, size_t io_len, int flags, cred_t *cr, caller_context_t *ct) argument
1195 lo_dispose( vnode_t *vp, page_t *pp, int fl, int dn, cred_t *cr, caller_context_t *ct) argument
1209 lo_setsecattr( vnode_t *vp, vsecattr_t *secattr, int flags, struct cred *cr, caller_context_t *ct) argument
1223 lo_getsecattr( vnode_t *vp, vsecattr_t *secattr, int flags, struct cred *cr, caller_context_t *ct) argument
1235 lo_shrlock( vnode_t *vp, int cmd, struct shrlock *shr, int flag, cred_t *cr, caller_context_t *ct) argument
[all...]

Completed in 231 milliseconds

1234567891011>>