/freebsd-12-stable/sys/security/mac/ |
H A D | mac_posix_sem.c | 122 mac_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument 127 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_getvalue, active_cred, 129 MAC_CHECK_PROBE3(posixsem_check_getvalue, error, active_cred, 139 mac_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument 144 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_post, active_cred, file_cred, 146 MAC_CHECK_PROBE3(posixsem_check_post, error, active_cred, file_cred, 156 mac_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 161 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_stat, active_cred, file_cred, 163 MAC_CHECK_PROBE3(posixsem_check_stat, error, active_cred, file_cred, 188 mac_posixsem_check_wait(struct ucred *active_cred, struc argument [all...] |
H A D | mac_posix_shm.c | 154 mac_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 159 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_stat, active_cred, file_cred, 161 MAC_CHECK_PROBE3(posixshm_check_stat, error, active_cred, file_cred, 171 mac_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, argument 176 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_truncate, active_cred, 178 MAC_CHECK_PROBE3(posixshm_check_truncate, error, active_cred, 235 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 240 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_read, active_cred, 242 MAC_CHECK_PROBE3(posixshm_check_read, error, active_cred, 252 mac_posixshm_check_write(struct ucred *active_cred, struc argument [all...] |
H A D | mac_framework.h | 221 int mac_posixsem_check_getvalue(struct ucred *active_cred, 224 int mac_posixsem_check_post(struct ucred *active_cred, 230 int mac_posixsem_check_stat(struct ucred *active_cred, 233 int mac_posixsem_check_wait(struct ucred *active_cred, 244 int mac_posixshm_check_read(struct ucred *active_cred, 250 int mac_posixshm_check_stat(struct ucred *active_cred, 252 int mac_posixshm_check_truncate(struct ucred *active_cred, 255 int mac_posixshm_check_write(struct ucred *active_cred, 404 int mac_vnode_check_poll(struct ucred *active_cred, 406 int mac_vnode_check_read(struct ucred *active_cred, [all...] |
H A D | mac_vfs.c | 648 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, argument 655 MAC_POLICY_CHECK(vnode_check_poll, active_cred, file_cred, vp, 657 MAC_CHECK_PROBE3(vnode_check_poll, error, active_cred, file_cred, 667 mac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 674 MAC_POLICY_CHECK(vnode_check_read, active_cred, file_cred, vp, 676 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred, 892 mac_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 899 MAC_POLICY_CHECK(vnode_check_stat, active_cred, file_cred, vp, 901 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred, 930 mac_vnode_check_write(struct ucred *active_cred, struc argument [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, 374 typedef int (*mpo_posixshm_check_truncate_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, [all...] |
/freebsd-12-stable/sys/sys/ |
H A D | file.h | 99 struct ucred *active_cred, int flags, 102 struct ucred *active_cred, struct thread *td); 104 struct ucred *active_cred, struct thread *td); 106 struct ucred *active_cred, struct thread *td); 109 struct ucred *active_cred, struct thread *td); 112 struct ucred *active_cred, struct thread *td); 114 struct ucred *active_cred, struct thread *td); 309 fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 313 return ((*fp->f_ops->fo_read)(fp, uio, active_cred, flags, td)); 317 fo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 325 fo_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument 333 fo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 341 fo_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 349 fo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument 371 fo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 379 fo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | vnode.h | 689 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, 693 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid, 697 int vn_stat(struct vnode *vp, struct stat *sb, struct ucred *active_cred, 917 int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, 919 int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
|
H A D | socketvar.h | 431 int sopoll(struct socket *so, int events, struct ucred *active_cred, 434 struct ucred *active_cred, struct thread *td);
|
/freebsd-12-stable/sys/kern/ |
H A D | uipc_shm.c | 295 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 304 error = mac_posixshm_check_read(active_cred, fp->f_cred, shmfd); 318 shm_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 327 error = mac_posixshm_check_write(active_cred, fp->f_cred, shmfd); 347 shm_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 357 error = mac_posixshm_check_truncate(active_cred, fp->f_cred, shmfd); 365 shm_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, argument 383 shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 394 error = mac_posixshm_check_stat(active_cred, fp->f_cred, shmfd); 955 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 984 shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | vfs_vnops.c | 557 enum uio_seg segflg, int ioflg, struct ucred *active_cred, 613 error = mac_vnode_check_read(active_cred, file_cred, 616 error = mac_vnode_check_write(active_cred, file_cred, 624 cred = active_cred; 663 off_t offset, enum uio_seg segflg, int ioflg, struct ucred *active_cred, 686 ioflg, active_cred, file_cred, &iaresid, td); 808 vn_read(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, argument 841 error = mac_vnode_check_read(active_cred, fp->f_cred, vp); 863 vn_write(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, argument 916 error = mac_vnode_check_write(active_cred, f 556 vn_rdwr(enum uio_rw rw, struct vnode *vp, void *base, int len, off_t offset, enum uio_seg segflg, int ioflg, struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, struct thread *td) argument 662 vn_rdwr_inchunks(enum uio_rw rw, struct vnode *vp, void *base, size_t len, off_t offset, enum uio_seg segflg, int ioflg, struct ucred *active_cred, struct ucred *file_cred, size_t *aresid, struct thread *td) argument 1177 vn_io_fault(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument 1340 vn_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument 1391 vn_statfile(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument 1408 vn_stat(struct vnode *vp, struct stat *sb, struct ucred *active_cred, struct ucred *file_cred, struct thread *td) argument 1515 vn_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 1567 vn_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 2164 vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 2179 vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | sys_pipe.c | 669 pipe_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 685 error = mac_pipe_check_read(active_cred, rpipe->pipe_pair); 1043 pipe_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 1068 error = mac_pipe_check_write(active_cred, wpipe->pipe_pair); 1311 pipe_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 1319 error = vnops.fo_truncate(fp, length, active_cred, td); 1321 error = invfo_truncate(fp, length, active_cred, td); 1329 pipe_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, argument 1338 error = mac_pipe_check_ioctl(active_cred, mpipe->pipe_pair, cmd, data); 1401 pipe_poll(struct file *fp, int events, struct ucred *active_cred, argument 1479 pipe_stat(struct file *fp, struct stat *ub, struct ucred *active_cred, struct thread *td) argument 1540 pipe_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 1554 pipe_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | uipc_sem.c | 164 ksem_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 175 error = mac_posixsem_check_stat(active_cred, fp->f_cred, ks); 200 ksem_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 210 error = mac_posixsem_check_setmode(active_cred, ks, mode); 215 active_cred, NULL); 225 ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument 235 error = mac_posixsem_check_setowner(active_cred, ks, uid, gid); 243 if (((uid != ks->ks_uid && uid != active_cred->cr_uid) || 244 (gid != ks->ks_gid && !groupmember(gid, active_cred))) && 245 (error = priv_check_cred(active_cred, PRIV_VFS_CHOW [all...] |
H A D | sys_socket.c | 121 soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 128 error = mac_socket_check_receive(active_cred, so); 137 soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 144 error = mac_socket_check_send(active_cred, so); 158 soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, argument 288 soo_poll(struct file *fp, int events, struct ucred *active_cred, argument 295 error = mac_socket_check_poll(active_cred, so); 303 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred, argument 312 error = mac_socket_check_stat(active_cred, so);
|
H A D | tty_pts.c | 114 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 188 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 262 struct ucred *active_cred, struct thread *td) 389 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, argument 534 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 261 ptsdev_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
|
H A D | sys_procdesc.c | 441 procdesc_poll(struct file *fp, int events, struct ucred *active_cred, argument 528 procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument
|
H A D | kern_descrip.c | 4172 badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 4180 badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 4188 badfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, argument 4196 badfo_poll(struct file *fp, int events, struct ucred *active_cred, argument 4211 badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 4226 badfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 4234 badfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument 4273 invfo_rdwr(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 4281 invfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 4290 struct ucred *active_cred, struc 4289 invfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 4297 invfo_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 4312 invfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 4320 invfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | uipc_mqueue.c | 2491 mqf_poll(struct file *fp, int events, struct ucred *active_cred, argument 2533 mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, argument 2552 mqf_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 2562 active_cred, NULL); 2572 mqf_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument 2585 if (((uid != pn->mn_uid && uid != active_cred->cr_uid) || 2586 (gid != pn->mn_gid && !groupmember(gid, active_cred))) && 2587 (error = priv_check_cred(active_cred, PRIV_VFS_CHOWN, 0)))
|
/freebsd-12-stable/sys/security/mac_test/ |
H A D | mac_test.c | 1250 test_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument 1254 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); 1277 test_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument 1281 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); 1315 test_posixsem_check_stat(struct ucred *active_cred, argument 1319 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); 1341 test_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, argument 1345 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); 1417 test_posixshm_check_read(struct ucred *active_cred, argument 1421 LABEL_CHECK(active_cred 1456 test_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) argument 1469 test_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) argument 1494 test_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) argument 2633 test_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 2648 test_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 2824 test_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 2854 test_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument [all...] |
/freebsd-12-stable/sys/security/mac_stub/ |
H A D | mac_stub.c | 659 stub_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument 675 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument 699 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 715 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, argument 753 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 777 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 785 stub_posixshm_check_truncate(struct ucred *active_cred, argument 801 stub_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, argument 1476 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, argument 1484 stub_vnode_check_read(struct ucred *active_cred, struc argument 1590 stub_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 1607 stub_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument [all...] |
/freebsd-12-stable/sys/security/mac_bsdextended/ |
H A D | ugidfw_vnode.c | 277 ugidfw_vnode_check_stat(struct ucred *active_cred, argument 281 return (ugidfw_check_vp(active_cred, vp, MBI_STAT));
|
H A D | ugidfw_internal.h | 110 int ugidfw_vnode_check_stat(struct ucred *active_cred,
|
/freebsd-12-stable/sys/security/mac_biba/ |
H A D | mac_biba.c | 1648 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, argument 1656 subj = SLOT(active_cred->cr_label); 1666 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, argument 1674 subj = SLOT(active_cred->cr_label); 1744 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 1752 subj = SLOT(active_cred->cr_label); 1798 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 1806 subj = SLOT(active_cred->cr_label); 1816 biba_posixshm_check_truncate(struct ucred *active_cred, argument 1824 subj = SLOT(active_cred 1852 biba_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *vp, struct label *shmlabel) argument 3145 biba_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3163 biba_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3446 biba_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3488 biba_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument [all...] |
/freebsd-12-stable/sys/security/mac_mls/ |
H A D | mac_mls.c | 1508 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, argument 1516 subj = SLOT(active_cred->cr_label); 1562 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, argument 1570 subj = SLOT(active_cred->cr_label); 1640 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 1648 subj = SLOT(active_cred->cr_label); 1694 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 1702 subj = SLOT(active_cred->cr_label); 1712 mls_posixshm_check_truncate(struct ucred *active_cred, argument 1720 subj = SLOT(active_cred 1748 mls_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) argument 2777 mls_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 2795 mls_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3078 mls_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3120 mls_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument [all...] |
/freebsd-12-stable/sys/compat/linux/ |
H A D | linux_event.c | 768 eventfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 814 eventfd_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 860 eventfd_poll(struct file *fp, int events, struct ucred *active_cred, argument 951 struct ucred *active_cred, struct thread *td) 974 eventfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred, argument 1062 timerfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 1105 timerfd_poll(struct file *fp, int events, struct ucred *active_cred, argument 1167 timerfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred, argument 950 eventfd_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
|
/freebsd-12-stable/sys/opencrypto/ |
H A D | cryptodev.c | 374 struct ucred *active_cred, 692 error = cryptodev_op(cse, cop, active_cred, td); 767 error = cryptodev_aead(cse, caead, active_cred, td); 855 struct ucred *active_cred, 1034 struct ucred *active_cred, 1367 struct ucred *active_cred, 370 cryptof_ioctl( struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument 852 cryptodev_op( struct csession *cse, struct crypt_op *cop, struct ucred *active_cred, struct thread *td) argument 1031 cryptodev_aead( struct csession *cse, struct crypt_aead *caead, struct ucred *active_cred, struct thread *td) argument 1364 cryptof_stat( struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument
|