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

1234567891011>>

/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/lib/smbclnt/libfknsmb/common/
H A Dfake_pkey.c45 smb_pkey_ioctl(int cmd, intptr_t arg, int flags, cred_t *cr) argument
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_stat.c64 cred_t *cr = CRED(); local
71 if (error = VOP_GETATTR(vp, &vattr, flag, cr, NULL))
/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/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/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/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/rpc/sec/
H A Dauthu_prot.c113 xdr_authkern(XDR *xdrs, cred_t *cr) argument
125 uid = crgetuid(cr);
126 gid = crgetgid(cr);
127 len = crgetngroups(cr);
132 groups = (caddr_t)crgetgroups(cr);
148 xdr_authloopback(XDR *xdrs, cred_t *cr) argument
160 uid = crgetuid(cr);
161 gid = crgetgid(cr);
162 len = crgetngroups(cr);
163 groups = (caddr_t)crgetgroups(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/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,
184 cred_t *cr; local
[all...]
/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/ktli/
H A Dt_kopen.c69 t_kopen(file_t *fp, dev_t rdev, int flags, TIUSER **tiptr, cred_t *cr) argument
85 cr = kcred;
110 if (cr != fp->f_cred) {
111 crhold(cr);
113 fp->f_cred = cr;
124 if ((error = VOP_OPEN(&vp, flags, cr, NULL))
172 error = strioctl(vp, I_FIND, (intptr_t)"timod", 0, K_TO_K, cr, &retval);
183 error = strioctl(vp, I_PUSH, (intptr_t)"timod", 0, K_TO_K, cr,
218 error = strdoioctl(vp->v_stream, &strioc, FNATIVE, K_TO_K, cr, &retval);

Completed in 323 milliseconds

1234567891011>>