/titanic_44/usr/src/uts/common/os/ |
H A D | policy.c | 143 #define HAS_ALLPRIVS(cr) priv_isfullset(&CR_OEPRIV(cr)) argument 144 #define ZONEPRIVS(cr) ((cr)->cr_zone->zone_privset) argument 145 #define HAS_ALLZONEPRIVS(cr) priv_issubset(ZONEPRIVS(cr), &CR_OEPRIV(cr)) argument 146 #define HAS_PRIVILEGE(cr, pr) ((pr) == PRIV_ALL ? \ argument 150 #define FAST_BASIC_CHECK(cr, priv) \ argument 214 priv_policy_errmsg(const cred_t *cr, int priv, const char *msg) in priv_policy_errmsg() 326 priv_policy_override(const cred_t *cr, int priv, boolean_t allzone, va_list ap) in priv_policy_override() 347 priv_policy_override_set(const cred_t *cr, const priv_set_t *req, va_list ap) in priv_policy_override_set() 358 priv_policy_override_set_va(const cred_t *cr, const priv_set_t *req, ...) in priv_policy_override_set_va() 373 priv_policy_err(const cred_t *cr, int priv, boolean_t allzone, const char *msg) in priv_policy_err() [all …]
|
H A D | cred.c | 248 cred_t *cr = kmem_cache_alloc(cred_cache, flgs); in cralloc_flags() local 274 cred_t *cr = cralloc(); in cralloc_ksid() local 287 cred_t *cr = kmem_cache_alloc(cred_cache, KM_SLEEP); in crget() local 311 crset(proc_t *p, cred_t *cr) in crset() 344 crhold(cred_t *cr) in crhold() 355 crfree(cred_t *cr) in crfree() 381 crcopy(cred_t *cr) in crcopy() 437 crdup_flags(const cred_t *cr, int flgs) in crdup_flags() 462 crdup(cred_t *cr) in crdup() 501 cred_t *cr; in crgetcred() local [all …]
|
/titanic_44/usr/src/uts/common/fs/sockfs/ |
H A D | sock_notsupp.c | 38 sock_upper_handle_t upper, struct cred *cr) in sock_accept_notsupp() 46 socklen_t namelen, struct cred *cr) in sock_bind_notsupp() 54 struct cred *cr) in sock_listen_notsupp() 63 struct cred *cr) in sock_connect_notsupp() 71 socklen_t *len, struct cred *cr) in sock_getsockname_notsupp() 79 socklen_t *addrlen, struct cred *cr) in sock_getpeername_notsupp() 87 int option_name, void *optval, socklen_t *optlenp, struct cred *cr) in sock_getsockopt_notsupp() 95 int option_name, const void *optval, socklen_t optlen, struct cred *cr) in sock_setsockopt_notsupp() 103 struct msghdr *msg, struct cred *cr) in sock_send_notsupp() 111 struct nmsghdr *msg, struct cred *cr) in sock_senduio_notsupp() [all …]
|
H A D | nl7cnca.c | 232 nl7c_uri_ttl_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) in nl7c_uri_ttl_get() 240 nl7c_uri_ttl_set(queue_t *q, mblk_t *mp, char *value, caddr_t nu, cred_t *cr) in nl7c_uri_ttl_set() 249 nca_logging_on_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) in nca_logging_on_get() 257 nca_logging_on_set(queue_t *q, mblk_t *mp, char *value, caddr_t nu, cred_t *cr) in nca_logging_on_set() 274 nca_version_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) in nca_version_get() 282 nca_httpd_version_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) in nca_httpd_version_get() 290 nca_logd_version_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) in nca_logd_version_get() 298 nca_httpd_door_inst_get(queue_t *q, mblk_t *mp, caddr_t nu, cred_t *cr) in nca_httpd_door_inst_get() 306 nca_param_get(queue_t *q, mblk_t *mp, caddr_t cp, cred_t *cr) in nca_param_get() 316 nca_param_set(queue_t *q, mblk_t *mp, char *value, caddr_t cp, cred_t *cr) in nca_param_set() [all …]
|
H A D | sockcommon.c | 68 int flags, int version, struct cred *cr, int *errorp) in socket_create() 134 struct cred *cr; in socket_newconn() local 172 int flags, cred_t *cr) in socket_bind() 181 socket_listen(struct sonode *so, int backlog, cred_t *cr) in socket_listen() 210 socket_accept(struct sonode *lso, int fflag, cred_t *cr, struct sonode **nsop) in socket_accept() 220 socklen_t namelen, int fflag, int flags, cred_t *cr) in socket_connect() 255 socklen_t *addrlen, boolean_t accept, cred_t *cr) in socket_getpeername() 267 socklen_t *addrlen, cred_t *cr) in socket_getsockname() 277 socket_shutdown(struct sonode *so, int how, cred_t *cr) in socket_shutdown() 288 void *optval, socklen_t *optlenp, int flags, cred_t *cr) in socket_getsockopt() [all …]
|
H A D | sockcommon_vnops.c | 115 socket_vop_open(struct vnode **vpp, int flag, struct cred *cr, in socket_vop_open() 135 struct cred *cr, caller_context_t *ct) in socket_vop_close() 170 socket_vop_read(struct vnode *vp, struct uio *uiop, int ioflag, struct cred *cr, in socket_vop_read() 185 struct cred *cr, caller_context_t *ct) in socket_vop_write() 206 struct cred *cr, int32_t *rvalp, caller_context_t *ct) in socket_vop_ioctl() 221 socket_vop_setfl(vnode_t *vp, int oflags, int nflags, cred_t *cr, in socket_vop_setfl() 279 struct cred *cr, caller_context_t *ct) in socket_vop_getattr() 361 struct cred *cr, caller_context_t *ct) in socket_vop_setattr() 394 socket_vop_access(struct vnode *vp, int mode, int flags, struct cred *cr, in socket_vop_access() 415 socket_vop_fsync(struct vnode *vp, int syncflag, struct cred *cr, in socket_vop_fsync() [all …]
|
H A D | sockcommon_sops.c | 71 struct cred *cr, struct sonode **nsop) in so_accept_notsupp() 78 so_listen_notsupp(struct sonode *so, int backlog, struct cred *cr) in so_listen_notsupp() 86 socklen_t *len, struct cred *cr) in so_getsockname_notsupp() 94 socklen_t *addrlen, boolean_t accept, struct cred *cr) in so_getpeername_notsupp() 101 so_shutdown_notsupp(struct sonode *so, int how, struct cred *cr) in so_shutdown_notsupp() 109 struct cred *cr, mblk_t **mpp) in so_sendmblk_notsupp() 120 so_init(struct sonode *so, struct sonode *pso, struct cred *cr, int flags) in so_init() 127 int flags, struct cred *cr) in so_bind() 275 so_listen(struct sonode *so, int backlog, struct cred *cr) in so_listen() 295 socklen_t namelen, int fflag, int flags, struct cred *cr) in so_connect() [all …]
|
/titanic_44/usr/src/uts/common/fs/lofs/ |
H A D | lofs_vnops.c | 51 lo_open(vnode_t **vpp, int flag, struct cred *cr, caller_context_t *ct) in lo_open() 109 struct cred *cr, in lo_close() 120 lo_read(vnode_t *vp, struct uio *uiop, int ioflag, struct cred *cr, in lo_read() 131 lo_write(vnode_t *vp, struct uio *uiop, int ioflag, struct cred *cr, in lo_write() 147 struct cred *cr, in lo_ioctl() 159 lo_setfl(vnode_t *vp, int oflags, int nflags, cred_t *cr, caller_context_t *ct) in lo_setfl() 170 struct cred *cr, in lo_getattr() 189 struct cred *cr, in lo_setattr() 204 struct cred *cr, in lo_access() 219 lo_fsync(vnode_t *vp, int syncflag, struct cred *cr, caller_context_t *ct) in lo_fsync() [all …]
|
/titanic_44/usr/src/uts/common/io/ksocket/ |
H A D | ksocket.c | 49 struct cred *cr) in ksocket_socket() 102 struct cred *cr) in ksocket_bind() 118 ksocket_listen(ksocket_t ks, int backlog, struct cred *cr) in ksocket_listen() 131 socklen_t *addrlenp, ksocket_t *nks, struct cred *cr) in ksocket_accept() 171 struct cred *cr) in ksocket_connect() 185 size_t *sent, struct cred *cr) in ksocket_send() 237 struct sockaddr *name, socklen_t namelen, size_t *sent, struct cred *cr) in ksocket_sendto() 290 size_t *sent, struct cred *cr) in ksocket_sendmsg() 344 size_t *recv, struct cred *cr) in ksocket_recv() 397 struct sockaddr *name, socklen_t *namelen, size_t *recv, struct cred *cr) in ksocket_recvfrom() [all …]
|
/titanic_44/usr/src/lib/libfakekernel/common/ |
H A D | ksocket.c | 127 struct cred *cr) in ksocket_socket() 161 struct cred *cr) in ksocket_bind() 182 ksocket_listen(ksocket_t ks, int backlog, struct cred *cr) in ksocket_listen() 198 socklen_t *addrlenp, ksocket_t *nks, struct cred *cr) in ksocket_accept() 224 struct cred *cr) in ksocket_connect() 240 size_t *sent, struct cred *cr) in ksocket_send() 267 struct sockaddr *name, socklen_t namelen, size_t *sent, struct cred *cr) in ksocket_sendto() 294 size_t *sent, struct cred *cr) in ksocket_sendmsg() 321 size_t *recvd, struct cred *cr) in ksocket_recv() 348 struct sockaddr *name, socklen_t *namelen, size_t *recvd, struct cred *cr) in ksocket_recvfrom() [all …]
|
/titanic_44/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vop.c | 59 cred_t *cr, in fop_open() 82 cred_t *cr, in fop_close() 111 cred_t *cr, in fop_read() 166 cred_t *cr, in fop_write() 213 cred_t *cr, in fop_ioctl() 226 cred_t *cr, in fop_setfl() 239 cred_t *cr, in fop_getattr() 261 cred_t *cr, in fop_setattr() 302 cred_t *cr, in fop_access() 317 cred_t *cr, in fop_lookup() [all …]
|
/titanic_44/usr/src/uts/common/inet/sockmods/ |
H A D | socksdp.c | 132 sosdp_init(struct sonode *so, struct sonode *pso, struct cred *cr, int flags) in sosdp_init() 176 sosdp_accept(struct sonode *lso, int fflag, struct cred *cr, in sosdp_accept() 215 int flags, struct cred *cr) in sosdp_bind() 277 sosdp_listen(struct sonode *so, int backlog, struct cred *cr) in sosdp_listen() 328 socklen_t namelen, int fflag, int flags, struct cred *cr) in sosdp_connect() 418 struct cred *cr) in sosdp_recvmsg() 484 struct cred *cr) in sosdp_sendmsg() 538 boolean_t accept, struct cred *cr) in sosdp_getpeername() 556 struct cred *cr) in sosdp_getsockname() 586 sosdp_shutdown(struct sonode *so, int how, struct cred *cr) in sosdp_shutdown() [all …]
|
/titanic_44/usr/src/uts/common/fs/smbclnt/smbfs/ |
H A D | smbfs_acl.c | 69 smbfs_getsd(vnode_t *vp, uint32_t selector, mblk_t **mp, cred_t *cr) in smbfs_getsd() 139 smbfs_setsd(vnode_t *vp, uint32_t selector, mblk_t **mp, cred_t *cr) in smbfs_setsd() 207 smbfs_acl_iocget(vnode_t *vp, intptr_t arg, int flag, cred_t *cr) in smbfs_acl_iocget() 268 smbfs_acl_iocset(vnode_t *vp, intptr_t arg, int flag, cred_t *cr) in smbfs_acl_iocset() 311 smbfs_acl_refresh(vnode_t *vp, cred_t *cr) in smbfs_acl_refresh() 404 smbfs_acl_getids(vnode_t *vp, cred_t *cr) in smbfs_acl_getids() 440 int flag, cred_t *cr) in smbfs_acl_getvsa() 493 uint32_t selector, cred_t *cr) in smbfs_acl_store() 541 smbfs_acl_setids(vnode_t *vp, vattr_t *vap, cred_t *cr) in smbfs_acl_setids() 572 int flag, cred_t *cr) in smbfs_acl_setvsa()
|
H A D | smbfs_vnops.c | 240 smbfs_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *ct) in smbfs_open() 417 smbfs_close(vnode_t *vp, int flag, int count, offset_t offset, cred_t *cr, in smbfs_close() 578 smbfs_read(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *cr, in smbfs_read() 663 smbfs_write(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *cr, in smbfs_write() 783 cred_t *cr, int *rvalp, caller_context_t *ct) in smbfs_ioctl() 848 smbfs_getattr(vnode_t *vp, struct vattr *vap, int flags, cred_t *cr, in smbfs_getattr() 899 smbfs_setattr(vnode_t *vp, struct vattr *vap, int flags, cred_t *cr, in smbfs_setattr() 971 smbfssetattr(vnode_t *vp, struct vattr *vap, int flags, cred_t *cr) in smbfssetattr() 1157 smbfs_access_rwx(vfs_t *vfsp, int vtype, int mode, cred_t *cr) in smbfs_access_rwx() 1231 smbfs_accessx(void *arg, int mode, cred_t *cr) in smbfs_accessx() [all …]
|
/titanic_44/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_fsops.c | 122 smb_fsop_create_with_sd(smb_request_t *sr, cred_t *cr, in smb_fsop_create_with_sd() 281 smb_fsop_create(smb_request_t *sr, cred_t *cr, smb_node_t *dnode, in smb_fsop_create() 369 smb_fsop_create_stream(smb_request_t *sr, cred_t *cr, in smb_fsop_create_stream() 442 smb_fsop_create_file(smb_request_t *sr, cred_t *cr, in smb_fsop_create_file() 529 cred_t *cr, in smb_fsop_mkdir() 665 cred_t *cr, in smb_fsop_remove() 789 smb_fsop_remove_streams(smb_request_t *sr, cred_t *cr, smb_node_t *fnode) in smb_fsop_remove_streams() 857 cred_t *cr, in smb_fsop_rmdir() 927 smb_fsop_getattr(smb_request_t *sr, cred_t *cr, smb_node_t *snode, in smb_fsop_getattr() 995 smb_fsop_link(smb_request_t *sr, cred_t *cr, smb_node_t *from_fnode, in smb_fsop_link() [all …]
|
H A D | smb_vops.c | 253 smb_vop_read(vnode_t *vp, uio_t *uiop, cred_t *cr) in smb_vop_read() 265 cred_t *cr) in smb_vop_write() 306 int flags, cred_t *cr) in smb_vop_getattr() 449 int flags, cred_t *cr) in smb_vop_setattr() 514 smb_vop_access(vnode_t *vp, int mode, int flags, vnode_t *dir_vp, cred_t *cr) in smb_vop_access() 562 cred_t *cr) in smb_vop_lookup() 639 int flags, cred_t *cr, vsecattr_t *vsap) in smb_vop_create() 674 smb_vop_remove(vnode_t *dvp, char *name, int flags, cred_t *cr) in smb_vop_remove() 699 int flags, cred_t *cr) in smb_vop_link() 732 char *to_name, int flags, cred_t *cr) in smb_vop_rename() [all …]
|
H A D | smb_fem.c | 223 cred_t *cr, in smb_fem_fcn_create() 259 cred_t *cr, in smb_fem_fcn_remove() 284 cred_t *cr, in smb_fem_fcn_rename() 318 cred_t *cr, in smb_fem_fcn_mkdir() 343 cred_t *cr, in smb_fem_fcn_rmdir() 367 cred_t *cr, in smb_fem_fcn_link() 392 cred_t *cr, in smb_fem_fcn_symlink() 422 cred_t *cr, in smb_fem_oplock_open() 451 cred_t *cr, in smb_fem_oplock_read() 476 cred_t *cr, in smb_fem_oplock_write() [all …]
|
/titanic_44/usr/src/uts/common/fs/nfs/ |
H A D | nfs_vnops.c | 255 nfs_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *ct) in nfs_open() 306 nfs_close(vnode_t *vp, int flag, int count, offset_t offset, cred_t *cr, in nfs_close() 414 nfs_read(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *cr, in nfs_read() 548 nfs_write(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *cr, in nfs_write() 826 int flags, cred_t *cr) in nfs_rdwrlbn() 864 nfswrite(vnode_t *vp, caddr_t base, uint_t offset, int count, cred_t *cr) in nfswrite() 948 int count, size_t *residp, cred_t *cr) in nfsread() 1066 nfs_ioctl(vnode_t *vp, int cmd, intptr_t arg, int flag, cred_t *cr, int *rvalp, in nfs_ioctl() 1082 nfs_getattr(vnode_t *vp, struct vattr *vap, int flags, cred_t *cr, in nfs_getattr() 1143 nfs_setattr(vnode_t *vp, struct vattr *vap, int flags, cred_t *cr, in nfs_setattr() [all …]
|
H A D | nfs4_deleg_ops.c | 101 deleg_rd_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) in deleg_rd_open() 126 deleg_wr_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) in deleg_wr_open() 154 deleg_wr_read(femarg_t *arg, uio_t *uiop, int ioflag, cred_t *cr, in deleg_wr_read() 175 deleg_rd_write(femarg_t *arg, uio_t *uiop, int ioflag, cred_t *cr, in deleg_rd_write() 194 deleg_wr_write(femarg_t *arg, uio_t *uiop, int ioflag, cred_t *cr, in deleg_wr_write() 212 deleg_rd_setattr(femarg_t *arg, vattr_t *vap, int flags, cred_t *cr, in deleg_rd_setattr() 232 deleg_wr_setattr(femarg_t *arg, vattr_t *vap, int flags, cred_t *cr, in deleg_wr_setattr() 294 offset_t offset, cred_t *cr, caller_context_t *ct) in deleg_rd_space() 309 offset_t offset, cred_t *cr, caller_context_t *ct) in deleg_wr_space() 326 deleg_rd_setsecattr(femarg_t *arg, vsecattr_t *vsap, int flag, cred_t *cr, in deleg_rd_setsecattr() [all …]
|
H A D | nfs3_vnops.c | 293 nfs3_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *ct) in nfs3_open() 344 nfs3_close(vnode_t *vp, int flag, int count, offset_t offset, cred_t *cr, in nfs3_close() 452 nfs3_directio_read(vnode_t *vp, struct uio *uiop, cred_t *cr) in nfs3_directio_read() 540 nfs3_read(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *cr, in nfs3_read() 649 nfs3_write(vnode_t *vp, struct uio *uiop, int ioflag, cred_t *cr, in nfs3_write() 931 int flags, cred_t *cr) in nfs3_rdwrlbn() 1002 nfs3write(vnode_t *vp, caddr_t base, u_offset_t offset, int count, cred_t *cr, in nfs3write() 1129 size_t *residp, cred_t *cr) in nfs3read() 1237 nfs3_ioctl(vnode_t *vp, int cmd, intptr_t arg, int flag, cred_t *cr, int *rvalp, in nfs3_ioctl() 1253 nfs3_getattr(vnode_t *vp, struct vattr *vap, int flags, cred_t *cr, in nfs3_getattr() [all …]
|
/titanic_44/usr/src/uts/common/fs/ |
H A D | xattr.c | 68 xattr_file_open(vnode_t **vpp, int flags, cred_t *cr, caller_context_t *ct) in xattr_file_open() 80 xattr_file_access(vnode_t *vp, int mode, int flags, cred_t *cr, in xattr_file_access() 94 cred_t *cr, caller_context_t *ct) in xattr_file_close() 141 cred_t *cr, caller_context_t *ct) in xattr_fill_nvlist() 388 cred_t *cr, caller_context_t *ct) in xattr_file_size() 408 xattr_file_getattr(vnode_t *vp, vattr_t *vap, int flags, cred_t *cr, in xattr_file_getattr() 448 xattr_file_read(vnode_t *vp, uio_t *uiop, int ioflag, cred_t *cr, in xattr_file_read() 494 xattr_file_write(vnode_t *vp, uio_t *uiop, int ioflag, cred_t *cr, in xattr_file_write() 739 xattr_file_pathconf(vnode_t *vp, int cmd, ulong_t *valp, cred_t *cr, in xattr_file_pathconf() 839 cred_t *cr, caller_context_t *ct) in xattr_copy() [all …]
|
/titanic_44/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_noopc.c | 55 cred_t *cr) in c_nop_init_cached_object() 100 int verify_what, cred_t *cr) in c_nop_check_cached_object() 153 c_nop_modify_cached_object(struct fscache *fscp, struct cnode *cp, cred_t *cr) in c_nop_modify_cached_object() 199 cred_t *cr) in c_nop_invalidate_cached_object() 211 cred_t *cr) in c_nop_convert_cached_object()
|
H A D | cachefs_cod.c | 68 cred_t *cr) in c_cod_init_cached_object() 112 int verify_what, cred_t *cr) in c_cod_check_cached_object() 257 c_cod_modify_cached_object(struct fscache *fscp, struct cnode *cp, cred_t *cr) in c_cod_modify_cached_object() 316 cred_t *cr) in c_cod_invalidate_cached_object() 329 cred_t *cr) in c_cod_convert_cached_object()
|
/titanic_44/usr/src/uts/common/fs/ufs/ |
H A D | ufs_filio.c | 91 struct cred *cr) /* credentials from ufs_ioctl */ in ufs_fioio() 218 struct cred *cr) /* credentials from ufs_ioctl */ in ufs_fiosatime() 284 struct cred *cr) /* credentials from ufs_ioctl */ in ufs_fiogdio() 309 struct cred *cr) /* credentials from ufs_ioctl */ in ufs_fiosdio() 406 struct cred *cr) /* credentials from ufs_ioctl */ in ufs_fioffs() 508 ufs_fioisbusy(struct vnode *vp, int *isbusy, struct cred *cr) in ufs_fioisbusy() 537 ufs_fiodirectio(struct vnode *vp, int cmd, struct cred *cr) in ufs_fiodirectio() 563 ufs_fiotune(struct vnode *vp, struct fiotune *uftp, struct cred *cr) in ufs_fiotune()
|
/titanic_44/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_event.c | 105 ctfs_endpoint_ioctl(ctfs_endpoint_t *endpt, int cmd, intptr_t arg, cred_t *cr, in ctfs_endpoint_ioctl() 198 cred_t *cr, in ctfs_ev_access() 222 ctfs_ev_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *cct) in ctfs_ev_open() 243 ctfs_ev_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) in ctfs_ev_inactive() 270 cred_t *cr, in ctfs_ev_getattr() 299 cred_t *cr, in ctfs_ev_ioctl() 386 ctfs_bu_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *ct) in ctfs_bu_open() 404 ctfs_bu_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) in ctfs_bu_inactive() 429 cred_t *cr, in ctfs_bu_getattr() 459 cred_t *cr, in ctfs_bu_ioctl()
|