| /f-stack/freebsd/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 | 242 int mac_posixsem_check_getvalue(struct ucred *active_cred, 245 int mac_posixsem_check_post(struct ucred *active_cred, 251 int mac_posixsem_check_stat(struct ucred *active_cred, 254 int mac_posixsem_check_wait(struct ucred *active_cred, 265 int mac_posixshm_check_read(struct ucred *active_cred, 271 int mac_posixshm_check_stat(struct ucred *active_cred, 273 int mac_posixshm_check_truncate(struct ucred *active_cred, 276 int mac_posixshm_check_write(struct ucred *active_cred, 528 int mac_vnode_check_poll(struct ucred *active_cred, 579 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 …]
|
| /f-stack/freebsd/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); 358 fo_poll(struct file *fp, int events, struct ucred *active_cred, in fo_poll() argument 362 return ((*fp->f_ops->fo_poll)(fp, events, active_cred, td)); in fo_poll() 370 return ((*fp->f_ops->fo_stat)(fp, sb, active_cred, td)); in fo_stat() [all …]
|
| H A D | socketvar.h | 443 int sopoll(struct socket *so, int events, struct ucred *active_cred, 446 struct ucred *active_cred, struct thread *td);
|
| H A D | vnode.h | 754 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, 758 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid, 1076 int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, 1078 int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
|
| /f-stack/freebsd/kern/ |
| 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_pipe.c | 707 error = mac_pipe_check_read(active_cred, rpipe->pipe_pair); in pipe_read() 1086 error = mac_pipe_check_write(active_cred, wpipe->pipe_pair); in pipe_write() 1334 error = vnops.fo_truncate(fp, length, active_cred, td); in pipe_truncate() 1336 error = invfo_truncate(fp, length, active_cred, td); in pipe_truncate() 1430 error = mac_pipe_check_poll(active_cred, rpipe->pipe_pair); in pipe_poll() 1504 error = mac_pipe_check_stat(active_cred, pipe->pipe_pair); in pipe_stat() 1514 return (vnops.fo_stat(fp, ub, active_cred, td)); in pipe_stat() 1559 error = vn_chmod(fp, mode, active_cred, td); in pipe_chmod() 1561 error = invfo_chmod(fp, mode, active_cred, td); in pipe_chmod() 1574 error = vn_chown(fp, uid, gid, active_cred, td); in pipe_chown() [all …]
|
| H A D | sys_socket.c | 125 soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_read() argument 132 error = mac_socket_check_receive(active_cred, so); in soo_read() 141 soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_write() argument 148 error = mac_socket_check_send(active_cred, so); in soo_write() 162 soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, in soo_ioctl() argument 292 soo_poll(struct file *fp, int events, struct ucred *active_cred, in soo_poll() argument 299 error = mac_socket_check_poll(active_cred, so); in soo_poll() 307 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred, in soo_stat() argument 316 error = mac_socket_check_stat(active_cred, so); in soo_stat()
|
| 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 | vfs_vnops.c | 616 error = mac_vnode_check_read(active_cred, file_cred, in vn_rdwr() 619 error = mac_vnode_check_write(active_cred, file_cred, in vn_rdwr() 627 cred = active_cred; in vn_rdwr() 689 ioflg, active_cred, file_cred, &iaresid, td); in vn_rdwr_inchunks() 1403 args.cred = active_cred; in vn_io_fault() 1610 error = VOP_STAT(vp, sb, active_cred, fp->f_cred, td); in vn_statfile() 1635 error = VOP_GETATTR(vp, &vattr, active_cred); in vn_ioctl() 1657 active_cred, td)); in vn_ioctl() 1662 active_cred, td)); in vn_ioctl() 2318 return (setfmode(td, active_cred, vp, mode)); in vn_chmod() [all …]
|
| 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() 1618 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in shm_chmod() argument 1632 error = mac_posixshm_check_setmode(active_cred, shmfd, mode); in shm_chmod() 1637 VADMIN, active_cred); in shm_chmod() 1665 if (((uid != shmfd->shm_uid && uid != active_cred->cr_uid) || in shm_chown() 1666 (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
|
| /f-stack/freebsd/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 …]
|
| /f-stack/freebsd/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 …]
|
| /f-stack/freebsd/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() 3154 subj = SLOT(active_cred->cr_label); in biba_vnode_check_poll() 3172 subj = SLOT(active_cred->cr_label); in biba_vnode_check_read() 3455 subj = SLOT(active_cred->cr_label); in biba_vnode_check_stat() 3489 biba_vnode_check_write(struct ucred *active_cred, in biba_vnode_check_write() argument [all …]
|
| /f-stack/freebsd/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 …]
|
| /f-stack/freebsd/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,
|
| /f-stack/lib/ |
| H A D | ff_vfs_ops.c | 77 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, in vn_rdwr() argument
|
| /f-stack/lib/include/sys/ |
| H A D | vnode.h | 142 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid,
|
| /f-stack/tools/compat/include/sys/ |
| H A D | socketvar.h | 443 int sopoll(struct socket *so, int events, struct ucred *active_cred, 446 struct ucred *active_cred, struct thread *td);
|