Searched defs:cr (Results 76 - 100 of 422) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/fs/bootfs/
H A Dbootfs_vfsops.c65 bootfs_mount(vfs_t *vfsp, vnode_t *mvp, struct mounta *uap, cred_t *cr) argument
72 if ((ret = secpolicy_fs_mount(cr, mvp, vfsp)) != 0)
156 bootfs_unmount(vfs_t *vfsp, int flag, cred_t *cr) argument
162 if ((ret = secpolicy_fs_unmount(cr, vfsp)) != 0)
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_deleg_ops.c102 deleg_rd_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) argument
122 return (vnext_open(arg, mode, cr, ct));
127 deleg_wr_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) argument
146 return (vnext_open(arg, mode, cr, ct));
155 deleg_wr_read(femarg_t *arg, uio_t *uiop, int ioflag, cred_t *cr, argument
168 return (vnext_read(arg, uiop, ioflag, cr, ct));
176 deleg_rd_write(femarg_t *arg, uio_t *uiop, int ioflag, cred_t *cr, argument
187 return (vnext_write(arg, uiop, ioflag, cr, ct));
195 deleg_wr_write(femarg_t *arg, uio_t *uiop, int ioflag, cred_t *cr, argument
208 return (vnext_write(arg, uiop, ioflag, cr, c
213 deleg_rd_setattr(femarg_t *arg, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
233 deleg_wr_setattr(femarg_t *arg, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
294 deleg_rd_space(femarg_t *arg, int cmd, flock64_t *bfp, int flag, offset_t offset, cred_t *cr, caller_context_t *ct) argument
309 deleg_wr_space(femarg_t *arg, int cmd, flock64_t *bfp, int flag, offset_t offset, cred_t *cr, caller_context_t *ct) argument
327 deleg_rd_setsecattr(femarg_t *arg, vsecattr_t *vsap, int flag, cred_t *cr, caller_context_t *ct) argument
344 deleg_wr_setsecattr(femarg_t *arg, vsecattr_t *vsap, int flag, cred_t *cr, caller_context_t *ct) argument
[all...]
H A Dnfs4_dispatch.c383 cred_t *cr = NULL; local
447 rfs4_compound(cap, rbp, NULL, req, cr, &rv);
480 rfs4_compound(cap, rbp, NULL, req, cr, &rv);
H A Dnfs_acl_vnops.c125 acl_getacl2(vnode_t *vp, vsecattr_t *vsp, int flag, cred_t *cr) argument
138 error = nfs_validate_caches(vp, cr);
168 xdr_GETACL2res, (caddr_t)&res, cr,
176 (void) nfs_cache_fattr(vp, &res.resok.attr, &va, t, cr);
180 PURGE_STALE_FH(error, vp, cr);
188 acl_setacl2(vnode_t *vp, vsecattr_t *vsp, int flag, cred_t *cr) argument
207 xdr_SETACL2res, (caddr_t)&res, cr,
229 (void) nfs_cache_fattr(vp, &res.resok.attr, &va, t, cr);
231 PURGE_STALE_FH(error, vp, cr);
238 acl_getattr2_otw(vnode_t *vp, vattr_t *vap, cred_t *cr) argument
278 acl_access2(vnode_t *vp, int mode, int flags, cred_t *cr) argument
420 acl_getxattrdir2(vnode_t *vp, vnode_t **vpp, bool_t create, cred_t *cr, int rfscall_flags) argument
506 acl_getacl3(vnode_t *vp, vsecattr_t *vsp, int flag, cred_t *cr) argument
570 acl_setacl3(vnode_t *vp, vsecattr_t *vsp, int flag, cred_t *cr) argument
620 acl_getxattrdir3(vnode_t *vp, vnode_t **vpp, bool_t create, cred_t *cr, int rfscall_flags) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dquota_ufs.c126 chkdq(struct inode *ip, long change, int force, struct cred *cr, argument
325 ip->i_uid == crgetruid(cr)) {
340 if (ip->i_uid == crgetruid(cr)) {
347 ip->i_uid == crgetruid(cr)) {
421 int force, struct cred *cr, char **uerrp, size_t *lenp)
523 if ((dqp->dq_flags & DQ_FILES) == 0 && uid == crgetruid(cr)) {
536 if (uid == crgetruid(cr))
542 uid == crgetruid(cr)) {
420 chkiq(struct ufsvfs *ufsvfsp, int change, struct inode *ip, uid_t uid, int force, struct cred *cr, char **uerrp, size_t *lenp) argument
H A Dquotacalls.c88 quotactl(struct vnode *vp, intptr_t arg, int flag, struct cred *cr) argument
111 quot.uid = crgetruid(cr);
126 error = opendq(ufsvfsp, vp, cr);
130 error = closedq(ufsvfsp, cr);
139 quot.addr, cr);
144 cr);
198 struct cred *cr)
205 if (secpolicy_fs_quota(cr, ufsvfsp->vfs_vfs) != 0)
269 if (ufs_itrunc(qip, (u_offset_t)qlen, (int)0, cr) != 0)
371 closedq(struct ufsvfs *ufsvfsp, struct cred *cr) argument
195 opendq( struct ufsvfs *ufsvfsp, struct vnode *vp, struct cred *cr) argument
491 setquota(int cmd, uid_t uid, struct ufsvfs *ufsvfsp, caddr_t addr, struct cred *cr) argument
681 getquota(uid_t uid, struct ufsvfs *ufsvfsp, caddr_t addr, cred_t *cr) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_subr.c87 struct cred *cr)
89 uid_t uid = crgetuid(cr);
95 tmp_taccess(entry, VWRITE, cr) != 0))
96 return (secpolicy_vnode_remove(cr));
86 tmp_sticky_remove_access(struct tmpnode *dir, struct tmpnode *entry, struct cred *cr) argument
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauth_loopb.c121 authloopback_marshal(AUTH *auth, XDR *xdrs, struct cred *cr) argument
160 gidlen = crgetngroups(cr);
182 const gid_t *gp = crgetgroups(cr);
193 IXDR_PUT_U_INT32(ptr, crgetuid(cr));
194 IXDR_PUT_U_INT32(ptr, crgetgid(cr));
212 if (!xdr_authloopback(&xdrm, cr)) {
251 authloopback_refresh(AUTH *auth, struct rpc_msg *msg, cred_t *cr) argument
/illumos-gate/usr/src/uts/common/fs/smbclnt/smbfs/
H A Dsmbfs_acl.c71 smbfs_getsd(vnode_t *vp, uint32_t selector, mblk_t **mp, cred_t *cr) argument
87 smb_credinit(&scred, cr);
134 smbfs_setsd(vnode_t *vp, uint32_t selector, mblk_t **mp, cred_t *cr) argument
162 smb_credinit(&scred, cr);
195 smbfs_acl_iocget(vnode_t *vp, intptr_t arg, int flag, cred_t *cr) argument
213 error = smbfs_getsd(vp, iocb.selector, &m, cr);
256 smbfs_acl_iocset(vnode_t *vp, intptr_t arg, int flag, cred_t *cr) argument
287 error = smbfs_setsd(vp, iocb.selector, &mbp->mb_top, cr);
299 smbfs_acl_refresh(vnode_t *vp, cred_t *cr) argument
330 error = smbfs_getsd(vp, selector, &m, cr);
392 smbfs_acl_getids(vnode_t *vp, cred_t *cr) argument
427 smbfs_acl_getvsa(vnode_t *vp, vsecattr_t *vsa, int flag, cred_t *cr) argument
480 smbfs_acl_store(vnode_t *vp, vsecattr_t *vsa, uid_t uid, gid_t gid, uint32_t selector, cred_t *cr) argument
529 smbfs_acl_setids(vnode_t *vp, vattr_t *vap, cred_t *cr) argument
559 smbfs_acl_setvsa(vnode_t *vp, vsecattr_t *vsa, int flag, cred_t *cr) argument
[all...]
H A Dsmbfs_xattr.c84 smbfs_get_xattrdir(vnode_t *pvp, vnode_t **vpp, cred_t *cr, int flags) argument
197 smbfs_xa_exists(vnode_t *vp, cred_t *cr) argument
206 error = smbfs_get_xattrdir(vp, &xvp, cr, LOOKUP_XATTR);
212 smb_credinit(&scred, cr);
/illumos-gate/usr/src/uts/common/fs/proc/
H A Dprvfsops.c192 struct mounta *uap, struct cred *cr)
197 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0)
250 prunmount(struct vfs *vfsp, int flag, struct cred *cr) argument
256 if (secpolicy_fs_unmount(cr, vfsp) != 0) {
191 prmount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, struct cred *cr) argument
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dfake_lookup.c84 cred_t *cr) /* user's credential */
227 rootvp, cr, NULL, NULL, pp);
310 if ((error = pn_getsymlink(cvp, &linkpath, cr)) != 0) {
545 vnodetopath(vnode_t *vrootp, vnode_t *vp, char *buf, size_t buflen, cred_t *cr) argument
76 lookuppnvp( struct pathname *pnp, struct pathname *rpnp, int flags, vnode_t **dirvpp, vnode_t **compvpp, vnode_t *rootvp, vnode_t *vp, cred_t *cr) argument
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_opt_data.c507 void *thisdg_attrs, cred_t *cr)
710 if ((reterr = secpolicy_ip_config(cr, B_TRUE))
1095 checkonly, cr);
505 tcp_opt_set(conn_t *connp, uint_t optset_context, int level, int name, uint_t inlen, uchar_t *invalp, uint_t *outlenp, uchar_t *outvalp, void *thisdg_attrs, cred_t *cr) argument
/illumos-gate/usr/src/uts/common/io/
H A Dtirdwr.c66 int flag, int sflag, cred_t *cr);
68 static int tirdwrclose(queue_t *q, int flag, cred_t *cr);
162 cred_t *cr)
207 tirdwrclose(queue_t *q, int flag, cred_t *cr) argument
157 tirdwropen( queue_t *q, dev_t *dev, int flag, int sflag, cred_t *cr) argument
H A Dcpuid_drv.c103 cpuid_open(dev_t *dev, int flag, int otyp, cred_t *cr) argument
112 cpuid_read(dev_t dev, uio_t *uio, cred_t *cr) argument
151 cpuid_ioctl(dev_t dev, int cmd, intptr_t arg, int mode, cred_t *cr, int *rval) argument
192 if (secpolicy_sys_config(cr, B_FALSE) != 0)
/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/cmd/cmd-inet/usr.sbin/
H A Din.comsat.c277 char *cr; variable
366 cr = (gttybuf.sg_flags&CRMOD) && !(gttybuf.sg_flags&RAW) ? "" : "\r";
368 cr, name, sizeof (hostname), hostname, cr);
369 fprintf(tp, "----%s\n", cr);
441 fprintf(tp, "...more...%s\n", cr);
468 fprintf(tp, "%s%s\n", line, cr);
471 fprintf(tp, "----%s\n", cr);
/illumos-gate/usr/src/cmd/strings/
H A Dstrings.c350 int cr; local
355 if (!(cr = dirt(c, cc))) {
384 cc += cr;
/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_cipher.c83 * cr: crypto_call_req_t calling conditions and call back info.
99 * Process or interrupt, according to the semantics dictated by the 'cr'.
302 * cr: crypto_call_req_t calling conditions and call back info.
312 * Process or interrupt, according to the semantics dictated by the 'cr'.
460 * cr: crypto_call_req_t calling conditions and call back info.
467 * Process or interrupt, according to the semantics dictated by the 'cr'.
474 crypto_data_t *ciphertext, crypto_call_req_t *cr)
491 if (CHECK_FASTPATH(cr, pd)) {
499 if ((ctx->cc_flags & CRYPTO_USE_OPSTATE) && cr == NULL) {
509 error = kcf_submit_request(pd, ctx, cr,
473 crypto_encrypt_update(crypto_context_t context, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_call_req_t *cr) argument
533 crypto_encrypt_final(crypto_context_t context, crypto_data_t *ciphertext, crypto_call_req_t *cr) argument
755 crypto_decrypt_update(crypto_context_t context, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_call_req_t *cr) argument
815 crypto_decrypt_final(crypto_context_t context, crypto_data_t *plaintext, crypto_call_req_t *cr) argument
852 crypto_encrypt_single(crypto_context_t context, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_call_req_t *cr) argument
887 crypto_decrypt_single(crypto_context_t context, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_call_req_t *cr) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/ctfs/
H A Dctfs_event.c105 ctfs_endpoint_ioctl(ctfs_endpoint_t *endpt, int cmd, intptr_t arg, cred_t *cr, argument
124 (void *)arg, rprivchk ? cr : NULL, zuniqid, 0));
128 (void *)arg, rprivchk ? cr : NULL, zuniqid, 1));
134 return (cte_set_reliable(&endpt->ctfs_endpt_listener, cr));
198 cred_t *cr,
208 if (error = secpolicy_contract_observer(cr, ct))
222 ctfs_ev_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *cct) argument
228 if (error = secpolicy_contract_observer(cr, ct))
243 ctfs_ev_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) argument
270 cred_t *cr,
194 ctfs_ev_access( vnode_t *vp, int mode, int flags, cred_t *cr, caller_context_t *cct) argument
266 ctfs_ev_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
294 ctfs_ev_ioctl( vnode_t *vp, int cmd, intptr_t arg, int flag, cred_t *cr, int *rvalp, caller_context_t *ct) argument
386 ctfs_bu_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *ct) argument
404 ctfs_bu_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) argument
425 ctfs_bu_getattr( vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, caller_context_t *ct) argument
454 ctfs_bu_ioctl( vnode_t *vp, int cmd, intptr_t arg, int flag, cred_t *cr, int *rvalp, caller_context_t *ct) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/devfs/
H A Ddevfs_vfsops.c178 struct cred *cr)
187 if (secpolicy_fs_mount(cr, mvp, vfsp) != 0)
234 (void) VOP_SETATTR(DVTOV(dv), &va, 0, cr, NULL); local
244 devfs_unmount(struct vfs *vfsp, int flag, struct cred *cr) argument
177 devfs_mount(struct vfs *vfsp, struct vnode *mvp, struct mounta *uap, struct cred *cr) argument
/illumos-gate/usr/src/uts/common/fs/lofs/
H A Dlofs_vfsops.c156 struct cred *cr)
166 if ((error = secpolicy_fs_mount(cr, vp, vfsp)) != 0)
212 if (is_system_labeled() && crgetzoneid(cr) == GLOBAL_ZONEID) {
260 getpflags(NET_MAC_AWARE, cr) != 0) {
292 if ((error = VOP_ACCESS(realrootvp, 0, 0, cr, NULL)) != 0) {
422 lo_unmount(struct vfs *vfsp, int flag, struct cred *cr) argument
426 if (secpolicy_fs_unmount(cr, vfsp) != 0)
513 struct cred *cr)
153 lo_mount(struct vfs *vfsp, struct vnode *vp, struct mounta *uap, struct cred *cr) argument
511 lo_sync(struct vfs *vfsp, short flag, struct cred *cr) argument
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dnl7cnca.c232 nl7c_uri_ttl_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
240 nl7c_uri_ttl_set(queue_t *q, mblk_t *mp, char *value, caddr_t nu, cred_t *cr) argument
249 nca_logging_on_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
257 nca_logging_on_set(queue_t *q, mblk_t *mp, char *value, caddr_t nu, cred_t *cr) argument
274 nca_version_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
282 nca_httpd_version_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
290 nca_logd_version_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
298 nca_httpd_door_inst_get(queue_t *q, mblk_t *mp, caddr_t nu, cred_t *cr) argument
306 nca_param_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
316 nca_param_set(queue_t *q, mblk_t *mp, char *value, caddr_t cp, cred_t *cr) argument
331 nca_obsolete(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
339 nca_ip_obsolete(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
347 nca_tcp_obsolete(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
355 nca_nca_obsolete(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) argument
[all...]
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/uts/common/fs/swapfs/
H A Dswap_subr.c80 static int swap_sync(struct vfs *vfsp, short flag, struct cred *cr);
241 swap_sync(struct vfs *vfsp, short flag, struct cred *cr) argument

Completed in 415 milliseconds

1234567891011>>