/titanic_41/usr/src/uts/common/io/ |
H A D | strplumb.c | 297 return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval)); in getifflags() 312 return (ldi_ioctl(lh, I_STR, (intptr_t)&iocb, FKIOCTL, CRED(), &rval)); in setifname() 351 if ((err = ldi_open_by_name(rootfs.bo_devname, FREAD|FWRITE, CRED(), in strplumb_dev() 359 if ((err = ldi_ioctl(lh, I_PUSH, (intptr_t)IP, FKIOCTL, CRED(), in strplumb_dev() 393 if ((err = ldi_open_by_name(name, FREAD|FWRITE, CRED(), &mux_lh, in strplumb_dev() 399 FREAD|FWRITE|FNOCTTY|FKIOCTL, CRED(), in strplumb_dev() 412 (void) ldi_close(lh, FREAD|FWRITE, CRED()); in strplumb_dev() 419 if ((err = ldi_open_by_name(rootfs.bo_devname, FREAD|FWRITE, CRED(), in strplumb_dev() 426 if ((err = ldi_ioctl(lh, I_PUSH, (intptr_t)ARP, FKIOCTL, CRED(), in strplumb_dev() 436 FREAD|FWRITE|FNOCTTY|FKIOCTL, CRED(), in strplumb_dev() [all …]
|
H A D | l_strplumb.c | 73 error = VOP_OPEN(&vp, FREAD|FWRITE, CRED(), NULL); in kstr_open() 91 if (error = strioctl(vp, I_PLINK, (intptr_t)fd, 0, K_TO_K, CRED(), &id)) in kstr_plink() 104 K_TO_K, CRED(), &rval)); in kstr_unplink() 112 return (strioctl(vp, I_PUSH, (intptr_t)mod, 0, K_TO_K, CRED(), &rval)); in kstr_push() 120 return (strioctl(vp, I_POP, 0, 0, K_TO_K, CRED(), &rval)); in kstr_pop() 138 ret = VOP_CLOSE(vp, FREAD|FWRITE, 1, (offset_t)0, CRED(), NULL); in kstr_close() 149 return (strioctl(vp, cmd, arg, 0, K_TO_K, CRED(), &rval)); in kstr_ioctl()
|
/titanic_41/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_net.c | 276 CRED()); in iscsi_net_socket() 294 error = ksocket_bind(ks, name, name_len, CRED()); in iscsi_net_bind() 296 error = ksocket_listen(ks, backlog, CRED()); in iscsi_net_bind() 313 rval = ksocket_connect(ks, name, name_len, CRED()); in iscsi_net_connect() 325 return (ksocket_listen(ks, backlog, CRED())); in iscsi_net_listen() 338 CRED()); in iscsi_net_accept() 350 return (ksocket_getsockname(ks, addr, addrlen, CRED())); in iscsi_net_getsockname() 363 option_len, CRED())); in iscsi_net_getsockopt() 375 option_len, CRED())); in iscsi_net_setsockopt() 385 return (ksocket_shutdown(ks, how, CRED())); in iscsi_net_shutdown() [all …]
|
/titanic_41/usr/src/uts/common/syscall/ |
H A D | ucredsys.c | 67 FKIOCTL, CRED(), &rval, NULL); in getpeerucred() 82 STR_NOSIG|K_TO_K, CRED(), &rval); in getpeerucred() 111 uc = cred2ucred(kpc.pc_cr, kpc.pc_cpid, NULL, CRED()); in getpeerucred() 137 pcr = CRED(); in ucred_get() 166 err = priv_proc_cred_perm(CRED(), p, &pcr, VREAD); in ucred_get() 173 uc = cred2ucred(pcr, pid, NULL, CRED()); in ucred_get()
|
H A D | sidsys.c | 49 zone_t *zone = crgetzone(CRED()); in allocids() 90 cred_t *cr = CRED(); in idmap_reg() 116 zone = crgetzone(CRED()); in idmap_unreg() 131 zone_t *zone = crgetzone(CRED()); in idmap_flush_kcache()
|
H A D | chdir.c | 175 if (error = VOP_ACCESS(vp, VEXEC, 0, CRED(), NULL)) in chdirec() 200 if (error = VOP_GETATTR(vp, &tattr, 0, CRED(), NULL)) in chdirec() 204 if (error = VOP_GETATTR(zonevp, &rattr, 0, CRED(), NULL)) in chdirec() 209 (error = secpolicy_chroot(CRED())) != 0) in chdirec()
|
H A D | acl.c | 151 if (error = VOP_GETSECATTR(vp, &vsecattr, 0, CRED(), NULL)) in cacl() 177 if (error = VOP_GETSECATTR(vp, &vsecattr, 0, CRED(), NULL)) in cacl() 227 if (error = VOP_GETSECATTR(vp, &vsecattr, 0, CRED(), NULL)) in cacl() 304 if (error = VOP_SETSECATTR(vp, &vsecattr, 0, CRED(), NULL)) { in cacl() 338 if (error = VOP_SETSECATTR(vp, &vsecattr, 0, CRED(), NULL)) { in cacl()
|
H A D | mount.c | 125 error = domount("pxfs", uap, vp, CRED(), &vfsp); in mount() 130 error = domount(NULL, uap, vp, CRED(), &vfsp); in mount()
|
H A D | corectl.c | 254 if ((error = secpolicy_coreadm(CRED())) == 0) { in corectl() 286 if (!hasprocperm(p->p_cred, CRED())) in corectl() 306 if ((error = secpolicy_coreadm(CRED())) != 0) in corectl() 346 if ((error = secpolicy_coreadm(CRED())) != 0) in corectl() 397 if (!hasprocperm(p->p_cred, CRED())) in corectl() 435 if (!(p->p_flag & SSYS) && hasprocperm(p->p_cred, CRED())) { in set_one_proc_info()
|
H A D | rctlsys.c | 469 if (secpolicy_rctlsys(CRED(), B_FALSE) != 0) { in rctlsys_set() 633 secpolicy_rctlsys(CRED(), B_TRUE) != 0) { in rctlsys_set() 644 secpolicy_rctlsys(CRED(), B_FALSE) != 0) { in rctlsys_set() 661 secpolicy_rctlsys(CRED(), B_FALSE) != 0) { in rctlsys_set() 690 secpolicy_rctlsys(CRED(), B_TRUE) != 0) || in rctlsys_set() 692 secpolicy_rctlsys(CRED(), B_FALSE) != 0)) { in rctlsys_set() 742 secpolicy_rctlsys(CRED(), B_TRUE) != 0) || in rctlsys_set() 744 secpolicy_rctlsys(CRED(), B_FALSE) != 0)) { in rctlsys_set() 835 if (secpolicy_rctlsys(CRED(), B_TRUE) != 0) { in rctlsys_ctl() 925 if (secpolicy_rctlsys(CRED(), B_FALSE) != 0) { in rctlsys_projset()
|
H A D | umount.c | 157 if (secpolicy_fs_unmount(CRED(), NULL) != 0 || in umount2() 193 return (umount2_engine(vfsp, flag, CRED(), 1)); in umount2()
|
H A D | acctctl.c | 166 CRED(), NULL); in ac_file_set() 280 if ((error = VOP_CLOSE(vp, FWRITE, 1, 0, CRED(), NULL)) != 0) { in ac_file_set() 299 error = VOP_GETATTR(info->ac_vnode, &va, AT_SIZE, CRED(), NULL); in ac_file_set() 474 if ((error = secpolicy_acct(CRED())) != 0) in acctctl() 487 if ((error = secpolicy_acct(CRED())) != 0) in acctctl() 500 if ((error = secpolicy_acct(CRED())) != 0) in acctctl()
|
/titanic_41/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_net.c | 111 CRED()); in smb_socreate() 129 (void) ksocket_shutdown(so, SHUT_RDWR, CRED()); in smb_soshutdown() 141 (void) ksocket_close(so, CRED()); in smb_sodestroy() 154 CRED())) != 0) { in smb_sorecv() 263 MSG_WAITALL, &sent, CRED()); in smb_net_txr_send()
|
H A D | smb_negotiate.c | 344 sizeof (smb_dos_tcp_rcvbuf), CRED()); in smb_com_negotiate() 358 sizeof (smb_dos_tcp_rcvbuf), CRED()); in smb_com_negotiate() 383 sizeof (smb_dos_tcp_rcvbuf), CRED()); in smb_com_negotiate() 408 sizeof (smb_nt_tcp_rcvbuf), CRED()); in smb_com_negotiate()
|
/titanic_41/usr/src/uts/common/fs/sockfs/ |
H A D | socksyscalls.c | 130 SOCKET_SLEEP, version, CRED(), &error); in so_socket() 134 SOCKET_SLEEP, version, CRED(), &error); in so_socket() 142 (void) socket_close(so, 0, CRED()); in so_socket() 399 error = socket_bind(so1, NULL, 0, _SOBIND_UNSPEC, CRED()); in so_socketpair() 404 error = socket_bind(so2, NULL, 0, _SOBIND_UNSPEC, CRED()); in so_socketpair() 416 0, _SOCONNECT_NOXLATE, CRED()); in so_socketpair() 426 0, _SOCONNECT_NOXLATE, CRED()); in so_socketpair() 455 CRED()); in so_socketpair() 460 error = socket_bind(so2, NULL, 0, _SOBIND_UNSPEC, CRED()); in so_socketpair() 473 FNONBLOCK, _SOCONNECT_NOXLATE, CRED()); in so_socketpair() [all …]
|
/titanic_41/usr/src/uts/common/io/idm/ |
H A D | idm_so.c | 218 CRED())) { in idm_socreate() 235 (void) ksocket_shutdown(so, SHUT_RDWR, CRED()); in idm_soshutdown() 247 (void) ksocket_close(ks, CRED()); in idm_sodestroy() 425 if (ksocket_ioctl(so6, SIOCGLIFNUM, (intptr_t)&lifn, &rval, CRED()) in idm_get_ipaddr() 446 rc = ksocket_ioctl(so6, SIOCGLIFCONF, (intptr_t)&lifc, &rval, CRED()); in idm_get_ipaddr() 483 &rval, CRED()); in idm_get_ipaddr() 487 &rval, CRED()); in idm_get_ipaddr() 594 if ((error = ksocket_sendmsg(so, &msg, 0, &sent, CRED())) == 0) { in idm_sosendto() 633 if ((error = ksocket_sendmsg(so, &msg, 0, &sent, CRED())) in idm_iov_sosend() 675 if ((error = ksocket_recvmsg(so, &msg, flags, &recv, CRED())) in idm_iov_sorecv() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | inst_sync.c | 139 if ((error = secpolicy_sys_devices(CRED())) != 0) in in_sync_sys() 214 UIO_SYSSPACE, 0, rlimit, CRED(), &resid); in in_write() 238 error = VOP_CLOSE(fp->vp, FCREAT, 1, (offset_t)0, CRED(), NULL); in in_fclose() 252 error = VOP_FSYNC(fp->vp, FSYNC, CRED(), NULL); in in_fflush()
|
H A D | acct.c | 267 if (secpolicy_acct(CRED()) != 0) in sysacct() 282 error = VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), in sysacct() 335 (void) VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), NULL); in sysacct() 417 cr = CRED(); in acct()
|
/titanic_41/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 539 VOP_CLOSE(vp, FREAD, 1, (offset_t)0, CRED(), NULL); in fs_devtype() 571 if ((rv = VOP_OPEN(vp, FREAD+FWRITE+FNOCTTY, CRED(), NULL)) != 0) { in open_stream() 589 VOP_CLOSE(*vp, FREAD+FWRITE+FNOCTTY, 1, (offset_t)0, CRED(), NULL); in open_stream() 630 rv = strioctl(lvp, I_POP, 0, 0, K_TO_K, CRED(), &rval); in link_aconsole() 640 FREAD+FWRITE+FNOCTTY, K_TO_K, CRED(), &(cn->sm_muxid))) != 0) { in link_aconsole() 663 K_TO_K, CRED(), &rval) != 0) in link_aconsole() 672 VOP_CLOSE(lvp, FREAD+FWRITE+FNOCTTY, 1, (offset_t)0, CRED(), NULL); in link_aconsole() 908 if ((rv = VOP_OPEN(&muxvp, OFLAGS, CRED(), NULL)) == 0) { in ttymux_config() 913 VOP_CLOSE(muxvp, OFLAGS, 1, (offset_t)0, CRED(), NULL); in ttymux_config()
|
/titanic_41/usr/src/uts/common/cpr/ |
H A D | cpr_misc.c | 47 cnt, 0LL, UIO_SYSSPACE, 0, (rlim64_t)MAXOFF_T, CRED(), \ 191 (void) VOP_CLOSE(vp, FREAD, 1, (offset_t)0, CRED(), NULL); in cpr_get_config() 501 (void) VFS_SYNC(C_VP->v_vfsp, 0, CRED()); in cpr_alloc_statefile() 568 (rlim64_t)MAXOFF_T, CRED(), &resid)) { in cpr_grow_statefile() 737 (void) VOP_CLOSE(C_VP, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_statef_close() 777 else if (rc = VOP_FSYNC(vp, FSYNC, CRED(), NULL)) in cpr_write_deffile() 779 (void) VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_write_deffile() 805 (void) VOP_CLOSE(vp, FWRITE, 1, (offset_t)0, CRED(), NULL); in cpr_clear_definfo() 824 (void) VOP_CLOSE(vp, FREAD, 1, (offset_t)0, CRED(), NULL); in cpr_get_reusable_mode()
|
/titanic_41/usr/src/uts/common/fs/autofs/ |
H A D | auto_sys.c | 48 if (secpolicy_fs_unmount(CRED(), NULL) != 0 || in autofssys() 49 crgetzoneid(CRED()) != GLOBAL_ZONEID) in autofssys()
|
/titanic_41/usr/src/uts/common/io/ib/clients/sdp/ |
H A D | sdpddi.c | 193 if (secpolicy_net_config(CRED(), B_FALSE) != 0) { in sdp_gen_ioctl() 222 FKIOCTL, CRED(), (int *)&enable); in sdp_gen_ioctl() 226 FKIOCTL, CRED(), (int *)&enable); in sdp_gen_ioctl()
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs_sys.c | 89 return (exportfs(STRUCT_BUF(ea), get_udatamodel(), CRED())); in nfs_export() 98 secpolicy_nfs(CRED()) != 0) in nfssys() 218 error = nfs_getfh(STRUCT_BUF(nga), get_udatamodel(), CRED()); in nfssys() 231 STRUCT_FGET(nra, uid), CRED(), NULL, get_udatamodel()); in nfssys()
|
/titanic_41/usr/src/uts/common/c2/ |
H A D | audit_start.c | 297 cred_t *cr = CRED(); in audit_finish() 419 cr = CRED(); in audit_success() 441 ainfo = crgetauinfo(CRED()); in auditme() 459 getpflags(PRIV_PFEXEC, CRED()) != 0) { in auditme()
|
/titanic_41/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit_radiuspacket.c | 326 &l_addrlen, CRED()); in iscsit_net_recvmsg() 328 &f_addrlen, CRED()); in iscsit_net_recvmsg() 360 &tl, sizeof (struct timeval), CRED())) in iscsit_net_recvmsg() 375 (void) ksocket_recvmsg(socket, msg, prflag, &recv, CRED()); in iscsit_net_recvmsg()
|