| /freebsd-13.1/sys/security/mac/ |
| H A D | mac_posix_sem.c | 127 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_getvalue, active_cred, in mac_posixsem_check_getvalue() 129 MAC_CHECK_PROBE3(posixsem_check_getvalue, error, active_cred, in mac_posixsem_check_getvalue() 139 mac_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_post() argument 144 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_post, active_cred, file_cred, in mac_posixsem_check_post() 146 MAC_CHECK_PROBE3(posixsem_check_post, error, active_cred, file_cred, in mac_posixsem_check_post() 156 mac_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_stat() argument 161 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_stat, active_cred, file_cred, in mac_posixsem_check_stat() 163 MAC_CHECK_PROBE3(posixsem_check_stat, error, active_cred, file_cred, in mac_posixsem_check_stat() 188 mac_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_wait() argument 193 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_wait, active_cred, file_cred, in mac_posixsem_check_wait() [all …]
|
| H A D | mac_posix_shm.c | 154 mac_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_stat() argument 159 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_stat, active_cred, file_cred, in mac_posixshm_check_stat() 161 MAC_CHECK_PROBE3(posixshm_check_stat, error, active_cred, file_cred, in mac_posixshm_check_stat() 176 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_truncate, active_cred, in mac_posixshm_check_truncate() 178 MAC_CHECK_PROBE3(posixshm_check_truncate, error, active_cred, in mac_posixshm_check_truncate() 235 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_read() argument 240 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_read, active_cred, in mac_posixshm_check_read() 242 MAC_CHECK_PROBE3(posixshm_check_read, error, active_cred, in mac_posixshm_check_read() 252 mac_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_write() argument 257 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_write, active_cred, in mac_posixshm_check_write() [all …]
|
| H A D | mac_framework.h | 272 int mac_posixsem_check_getvalue(struct ucred *active_cred, 275 int mac_posixsem_check_post(struct ucred *active_cred, 281 int mac_posixsem_check_stat(struct ucred *active_cred, 284 int mac_posixsem_check_wait(struct ucred *active_cred, 295 int mac_posixshm_check_read(struct ucred *active_cred, 301 int mac_posixshm_check_stat(struct ucred *active_cred, 303 int mac_posixshm_check_truncate(struct ucred *active_cred, 306 int mac_posixshm_check_write(struct ucred *active_cred, 558 int mac_vnode_check_poll(struct ucred *active_cred, 609 int mac_vnode_check_stat_impl(struct ucred *active_cred, [all …]
|
| H A D | mac_vfs.c | 650 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll() argument 657 MAC_POLICY_CHECK(vnode_check_poll, active_cred, file_cred, vp, in mac_vnode_check_poll() 659 MAC_CHECK_PROBE3(vnode_check_poll, error, active_cred, file_cred, in mac_vnode_check_poll() 669 mac_vnode_check_read_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read_impl() argument 676 MAC_POLICY_CHECK(vnode_check_read, active_cred, file_cred, vp, in mac_vnode_check_read_impl() 678 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred, in mac_vnode_check_read_impl() 894 mac_vnode_check_stat_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat_impl() argument 901 MAC_POLICY_CHECK(vnode_check_stat, active_cred, file_cred, vp, in mac_vnode_check_stat_impl() 903 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred, in mac_vnode_check_stat_impl() 939 MAC_POLICY_CHECK(vnode_check_write, active_cred, file_cred, vp, in mac_vnode_check_write_impl() [all …]
|
| H A D | mac_policy.h | 327 typedef int (*mpo_posixsem_check_getvalue_t)(struct ucred *active_cred, 332 typedef int (*mpo_posixsem_check_post_t)(struct ucred *active_cred, 341 typedef int (*mpo_posixsem_check_stat_t)(struct ucred *active_cred, 346 typedef int (*mpo_posixsem_check_wait_t)(struct ucred *active_cred, 362 typedef int (*mpo_posixshm_check_read_t)(struct ucred *active_cred, 371 typedef int (*mpo_posixshm_check_stat_t)(struct ucred *active_cred, 379 typedef int (*mpo_posixshm_check_write_t)(struct ucred *active_cred, 597 typedef int (*mpo_vnode_check_poll_t)(struct ucred *active_cred, 600 typedef int (*mpo_vnode_check_read_t)(struct ucred *active_cred, 636 typedef int (*mpo_vnode_check_stat_t)(struct ucred *active_cred, [all …]
|
| /freebsd-13.1/sys/sys/ |
| H A D | file.h | 101 struct ucred *active_cred, int flags, 104 struct ucred *active_cred, struct thread *td); 106 struct ucred *active_cred, struct thread *td); 108 struct ucred *active_cred, struct thread *td); 111 struct ucred *active_cred, struct thread *td); 114 struct ucred *active_cred, struct thread *td); 116 struct ucred *active_cred, struct thread *td); 365 fo_poll(struct file *fp, int events, struct ucred *active_cred, in fo_poll() argument 369 return ((*fp->f_ops->fo_poll)(fp, events, active_cred, td)); in fo_poll() 377 return ((*fp->f_ops->fo_stat)(fp, sb, active_cred, td)); in fo_stat() [all …]
|
| H A D | socketvar.h | 454 int sopoll(struct socket *so, int events, struct ucred *active_cred, 457 struct ucred *active_cred, struct thread *td);
|
| H A D | vnode.h | 772 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, 776 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid, 1100 int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, 1102 int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
|
| /freebsd-13.1/sys/kern/ |
| H A D | sys_pipe.c | 708 error = mac_pipe_check_read(active_cred, rpipe->pipe_pair); in pipe_read() 1087 error = mac_pipe_check_write(active_cred, wpipe->pipe_pair); in pipe_write() 1335 error = vnops.fo_truncate(fp, length, active_cred, td); in pipe_truncate() 1337 error = invfo_truncate(fp, length, active_cred, td); in pipe_truncate() 1431 error = mac_pipe_check_poll(active_cred, rpipe->pipe_pair); in pipe_poll() 1506 error = mac_pipe_check_stat(active_cred, pipe->pipe_pair); in pipe_stat() 1516 return (vnops.fo_stat(fp, ub, active_cred, td)); in pipe_stat() 1561 error = vn_chmod(fp, mode, active_cred, td); in pipe_chmod() 1563 error = invfo_chmod(fp, mode, active_cred, td); in pipe_chmod() 1576 error = vn_chown(fp, uid, gid, active_cred, td); in pipe_chown() [all …]
|
| H A D | sys_eventfd.c | 148 eventfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in eventfd_read() argument 190 eventfd_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in eventfd_write() argument 234 eventfd_poll(struct file *fp, int events, struct ucred *active_cred, in eventfd_poll() argument 318 struct ucred *active_cred, struct thread *td) in eventfd_ioctl() argument 330 eventfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred, in eventfd_stat() argument
|
| H A D | sys_socket.c | 121 soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_read() argument 128 error = mac_socket_check_receive(active_cred, so); in soo_read() 137 soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_write() argument 144 error = mac_socket_check_send(active_cred, so); in soo_write() 158 soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, in soo_ioctl() argument 288 soo_poll(struct file *fp, int events, struct ucred *active_cred, in soo_poll() argument 295 error = mac_socket_check_poll(active_cred, so); in soo_poll() 303 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred, in soo_stat() argument 312 error = mac_socket_check_stat(active_cred, so); in soo_stat()
|
| H A D | vfs_vnops.c | 666 error = mac_vnode_check_read(active_cred, file_cred, in vn_rdwr() 669 error = mac_vnode_check_write(active_cred, file_cred, in vn_rdwr() 677 cred = active_cred; in vn_rdwr() 739 ioflg, active_cred, file_cred, &iaresid, td); in vn_rdwr_inchunks() 1470 args.cred = active_cred; in vn_io_fault() 1677 error = VOP_STAT(vp, sb, active_cred, fp->f_cred, td); in vn_statfile() 1702 error = VOP_GETATTR(vp, &vattr, active_cred); in vn_ioctl() 1724 active_cred, td)); in vn_ioctl() 1729 active_cred, td)); in vn_ioctl() 2412 return (setfmode(td, active_cred, vp, mode)); in vn_chmod() [all …]
|
| H A D | uipc_sem.c | 164 ksem_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in ksem_stat() argument 175 error = mac_posixsem_check_stat(active_cred, fp->f_cred, ks); in ksem_stat() 200 ksem_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in ksem_chmod() argument 210 error = mac_posixsem_check_setmode(active_cred, ks, mode); in ksem_chmod() 215 active_cred); in ksem_chmod() 225 ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in ksem_chown() argument 235 error = mac_posixsem_check_setowner(active_cred, ks, uid, gid); in ksem_chown() 243 if (((uid != ks->ks_uid && uid != active_cred->cr_uid) || in ksem_chown() 244 (gid != ks->ks_gid && !groupmember(gid, active_cred))) && in ksem_chown() 245 (error = priv_check_cred(active_cred, PRIV_VFS_CHOWN))) in ksem_chown()
|
| H A D | uipc_shm.c | 385 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in shm_read() argument 394 error = mac_posixshm_check_read(active_cred, fp->f_cred, shmfd); in shm_read() 418 error = mac_posixshm_check_write(active_cred, fp->f_cred, shmfd); in shm_write() 475 error = mac_posixshm_check_truncate(active_cred, fp->f_cred, shmfd); in shm_truncate() 548 error = mac_posixshm_check_stat(active_cred, fp->f_cred, shmfd); in shm_stat() 1619 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in shm_chmod() argument 1633 error = mac_posixshm_check_setmode(active_cred, shmfd, mode); in shm_chmod() 1638 VADMIN, active_cred); in shm_chmod() 1666 if (((uid != shmfd->shm_uid && uid != active_cred->cr_uid) || in shm_chown() 1667 (gid != shmfd->shm_gid && !groupmember(gid, active_cred))) && in shm_chown() [all …]
|
| H A D | tty_pts.c | 114 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in ptsdev_read() argument 188 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in ptsdev_write() argument 262 struct ucred *active_cred, struct thread *td) in ptsdev_ioctl() argument 393 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, in ptsdev_poll() argument 538 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in ptsdev_stat() argument
|
| H A D | sys_procdesc.c | 424 procdesc_poll(struct file *fp, int events, struct ucred *active_cred, in procdesc_poll() argument 511 procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in procdesc_stat() argument
|
| H A D | kern_descrip.c | 5091 badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred, in badfo_readwrite() argument 5099 badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, in badfo_truncate() argument 5115 badfo_poll(struct file *fp, int events, struct ucred *active_cred, in badfo_poll() argument 5130 badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in badfo_stat() argument 5145 badfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in badfo_chmod() argument 5192 path_poll(struct file *fp, int events, struct ucred *active_cred, in path_poll() argument 5224 invfo_rdwr(struct file *fp, struct uio *uio, struct ucred *active_cred, in invfo_rdwr() argument 5232 invfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, in invfo_truncate() argument 5241 struct ucred *active_cred, struct thread *td) in invfo_ioctl() argument 5248 invfo_poll(struct file *fp, int events, struct ucred *active_cred, in invfo_poll() argument [all …]
|
| H A D | uipc_mqueue.c | 2498 mqf_poll(struct file *fp, int events, struct ucred *active_cred, in mqf_poll() argument 2540 mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, in mqf_stat() argument 2559 mqf_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in mqf_chmod() argument 2569 active_cred); in mqf_chmod() 2579 mqf_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in mqf_chown() argument 2592 if (((uid != pn->mn_uid && uid != active_cred->cr_uid) || in mqf_chown() 2593 (gid != pn->mn_gid && !groupmember(gid, active_cred))) && in mqf_chown() 2594 (error = priv_check_cred(active_cred, PRIV_VFS_CHOWN))) in mqf_chown()
|
| /freebsd-13.1/sys/security/mac_stub/ |
| H A D | mac_stub.c | 676 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_post() argument 700 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_stat() argument 716 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_wait() argument 754 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_read() argument 778 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_stat() argument 786 stub_posixshm_check_truncate(struct ucred *active_cred, in stub_posixshm_check_truncate() argument 802 stub_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_write() argument 1470 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_poll() argument 1478 stub_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_read() argument 1584 stub_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_stat() argument [all …]
|
| /freebsd-13.1/sys/security/mac_test/ |
| H A D | mac_test.c | 1256 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_getvalue() 1283 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_post() 1321 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_stat() 1347 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_wait() 1423 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_read() 1462 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_stat() 1475 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_truncate() 1500 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_write() 2639 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_vnode_check_poll() 2654 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_vnode_check_read() [all …]
|
| /freebsd-13.1/sys/security/mac_biba/ |
| H A D | mac_biba.c | 1657 subj = SLOT(active_cred->cr_label); in biba_posixsem_check_write() 1675 subj = SLOT(active_cred->cr_label); in biba_posixsem_check_rdonly() 1753 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_read() 1807 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_stat() 1825 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_truncate() 1861 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_write() 3155 subj = SLOT(active_cred->cr_label); in biba_vnode_check_poll() 3173 subj = SLOT(active_cred->cr_label); in biba_vnode_check_read() 3456 subj = SLOT(active_cred->cr_label); in biba_vnode_check_stat() 3490 biba_vnode_check_write(struct ucred *active_cred, in biba_vnode_check_write() argument [all …]
|
| /freebsd-13.1/sys/security/mac_mls/ |
| H A D | mac_mls.c | 1517 subj = SLOT(active_cred->cr_label); in mls_posixsem_check_rdonly() 1571 subj = SLOT(active_cred->cr_label); in mls_posixsem_check_write() 1649 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_read() 1703 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_stat() 1713 mls_posixshm_check_truncate(struct ucred *active_cred, in mls_posixshm_check_truncate() argument 1721 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_truncate() 1757 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_write() 2786 subj = SLOT(active_cred->cr_label); in mls_vnode_check_poll() 2804 subj = SLOT(active_cred->cr_label); in mls_vnode_check_read() 3087 subj = SLOT(active_cred->cr_label); in mls_vnode_check_stat() [all …]
|
| /freebsd-13.1/sys/security/mac_bsdextended/ |
| H A D | ugidfw_vnode.c | 277 ugidfw_vnode_check_stat(struct ucred *active_cred, in ugidfw_vnode_check_stat() argument 281 return (ugidfw_check_vp(active_cred, vp, MBI_STAT)); in ugidfw_vnode_check_stat()
|
| H A D | ugidfw_internal.h | 110 int ugidfw_vnode_check_stat(struct ucred *active_cred,
|
| /freebsd-13.1/sys/compat/linux/ |
| H A D | linux_event.c | 686 timerfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in timerfd_read() argument 729 timerfd_poll(struct file *fp, int events, struct ucred *active_cred, in timerfd_poll() argument 789 struct ucred *active_cred, struct thread *td) in timerfd_ioctl() argument 805 timerfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred, in timerfd_stat() argument
|