Searched defs:cr (Results 1 - 25 of 414) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfksmb_cred.c44 cred_t *cr; local
45 cr = (cred_t *)token; /* hack */
46 return (cr);
50 smb_user_setcred(smb_user_t *user, cred_t *cr, uint32_t privileges) argument
52 user->u_cred = cr;
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dcred.c38 crfree(cred_t *cr) argument
44 crhold(cred_t *cr) argument
50 crgetuid(const cred_t *cr) 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/ufs/
H A Dufs_log.c42 ufs_fiologenable(vnode_t *vp, fiolog_t *ufl, cred_t *cr, int flags) argument
52 error = lufs_enable(vp, &fl, cr);
61 ufs_fiologdisable(vnode_t *vp, fiolog_t *ufl, cred_t *cr, int flags) argument
84 ufs_fioislog(vnode_t *vp, uint32_t *islog, cred_t *cr, int flags) argument
H A Dufs_xattr.c64 struct cred *cr)
75 error = ufs_iget(vfsp, ip->i_oeftflag, sip, cr);
98 error = ufs_xattrmkdir(ip, sip, 1, cr);
105 error = ufs_xattrmkdir(ip, sip, 1, cr);
60 ufs_xattr_getattrdir( vnode_t *dvp, struct inode **sip, int flags, struct cred *cr) argument
/illumos-gate/usr/src/uts/common/fs/ctfs/
H A Dctfs_sym.c88 cred_t *cr,
112 ctfs_sym_readlink(vnode_t *vp, uio_t *uiop, cred_t *cr, caller_context_t *ct) argument
125 ctfs_sym_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) argument
84 ctfs_sym_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
H A Dctfs_cdir.c102 cred_t *cr,
137 ctfs_cdir_inactive(vnode_t *vp, cred_t *cr, caller_context_t *cct) argument
98 ctfs_cdir_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
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/fs/objfs/
H A Dobjfs_common.c39 objfs_dir_open(vnode_t **cpp, int flag, cred_t *cr, argument
53 objfs_common_close(vnode_t *vp, int flag, int count, offset_t off, cred_t *cr, argument
64 objfs_dir_access(vnode_t *vp, int mode, int flags, cred_t *cr, argument
H A Dobjfs_odir.c66 objfs_odir_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, argument
/illumos-gate/usr/src/uts/common/fs/specfs/
H A Dspecvfsops.c110 struct cred *cr)
157 (void) VOP_PUTPAGE(vp, (offset_t)0, (uint_t)0, B_ASYNC, cr,
108 spec_sync(struct vfs *vfsp, short flag, struct cred *cr) argument
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauthu_prot.c120 struct cred *cr; local
126 cr = CRED();
127 uid = crgetuid(cr);
128 gid = crgetgid(cr);
129 len = crgetngroups(cr);
134 groups = (caddr_t)crgetgroups(cr);
158 struct cred *cr; local
164 cr = CRED();
165 uid = crgetuid(cr);
166 gid = crgetgid(cr);
[all...]
H A Dauth_none.c102 authnone_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) argument
139 authnone_refresh(AUTH *auth, struct rpc_msg *msg, cred_t *cr) argument
/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 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 Dpathconf.c56 cpathconf(register vnode_t *vp, int cmd, struct cred *cr) argument
64 if (error = VOP_PATHCONF(vp, _PC_SYMLINK_MAX, &val, cr, NULL))
110 if (!(error = VOP_FSYNC(vp, FSYNC, cr, NULL)))
118 if (error = VOP_PATHCONF(vp, cmd, &val, cr, NULL))
H A Dumount.c64 umount2_engine(vfs_t *vfsp, int flag, cred_t *cr, int is_syscall) argument
114 if ((error = dounmount(vfsp, flag, cr)) != 0)
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 Dsidsys.c90 cred_t *cr = CRED(); local
92 if ((err = secpolicy_idmap(cr)) != 0)
100 if ((err = idmap_reg_dh(crgetzone(cr), dh)) != 0)
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...]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_cred.c59 cred_t *cr; local
66 cr = crget();
67 ASSERT(cr != NULL);
76 if (crsetugid(cr, token->tkn_user.i_id, gid) != 0) {
77 crfree(cr);
81 if (crsetgroups(cr, posix_grps->pg_ngrps, posix_grps->pg_grps) != 0) {
82 crfree(cr);
87 crsetsid(cr, &ksid, KSID_USER);
89 crsetsid(cr, &ksid, KSID_GROUP);
91 crsetsid(cr,
[all...]
/illumos-gate/usr/src/cmd/bnu/
H A Dgetprm.c193 wchar_t *cl, *cr, *n; local
235 if (cl != (cr = wcsrchr(n, (wchar_t)'!'))) {
237 wcsncpy(tmpbuf, cl+1, cr-cl-1);
238 tmpbuf[cr-cl-1] = NULL;
242 cr = cl;
245 (void) wcstombs(file, cr+1, MAXFULLNAME);
/illumos-gate/usr/src/uts/common/fs/
H A Dnbmlock.c135 nbl_svmand(vnode_t *vp, cred_t *cr, int *svp) argument
141 error = VOP_GETATTR(vp, &va, 0, cr, NULL);
/illumos-gate/usr/src/uts/common/inet/sockmods/
H A Dsockmod_sdp.c75 int version, int sflags, int *errorp, cred_t *cr)
74 socksdp_create(struct sockparams *sp, int family, int type, int protocol, int version, int sflags, int *errorp, cred_t *cr) argument
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp_tunables.c34 udp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, argument
38 cr, pinfo, ifname, pval, flags));
55 udp_smallest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, argument
73 udp_largest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, argument

Completed in 83 milliseconds

1234567891011>>