/freebsd-10.2-release/sys/security/mac/ |
H A D | mac_posix_sem.c | 123 mac_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument 128 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_getvalue, active_cred, 130 MAC_CHECK_PROBE3(posixsem_check_getvalue, error, active_cred, 140 mac_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument 145 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_post, active_cred, file_cred, 147 MAC_CHECK_PROBE3(posixsem_check_post, error, active_cred, file_cred, 157 mac_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 162 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_stat, active_cred, file_cred, 164 MAC_CHECK_PROBE3(posixsem_check_stat, error, active_cred, file_cred, 189 mac_posixsem_check_wait(struct ucred *active_cred, struc argument [all...] |
H A D | mac_posix_shm.c | 155 mac_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 160 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_stat, active_cred, file_cred, 162 MAC_CHECK_PROBE3(posixshm_check_stat, error, active_cred, file_cred, 172 mac_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, argument 177 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_truncate, active_cred, 179 MAC_CHECK_PROBE3(posixshm_check_truncate, error, active_cred, 236 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 241 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_read, active_cred, 243 MAC_CHECK_PROBE3(posixshm_check_read, error, active_cred, 253 mac_posixshm_check_write(struct ucred *active_cred, struc argument [all...] |
H A D | mac_framework.h | 223 int mac_posixsem_check_getvalue(struct ucred *active_cred, 226 int mac_posixsem_check_post(struct ucred *active_cred, 232 int mac_posixsem_check_stat(struct ucred *active_cred, 235 int mac_posixsem_check_wait(struct ucred *active_cred, 246 int mac_posixshm_check_read(struct ucred *active_cred, 252 int mac_posixshm_check_stat(struct ucred *active_cred, 254 int mac_posixshm_check_truncate(struct ucred *active_cred, 257 int mac_posixshm_check_write(struct ucred *active_cred, 406 int mac_vnode_check_poll(struct ucred *active_cred, 408 int mac_vnode_check_read(struct ucred *active_cred, [all...] |
H A D | mac_vfs.c | 649 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, argument 656 MAC_POLICY_CHECK(vnode_check_poll, active_cred, file_cred, vp, 658 MAC_CHECK_PROBE3(vnode_check_poll, error, active_cred, file_cred, 668 mac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 675 MAC_POLICY_CHECK(vnode_check_read, active_cred, file_cred, vp, 677 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred, 893 mac_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 900 MAC_POLICY_CHECK(vnode_check_stat, active_cred, file_cred, vp, 902 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred, 931 mac_vnode_check_write(struct ucred *active_cred, struc argument [all...] |
H A D | mac_policy.h | 331 typedef int (*mpo_posixsem_check_getvalue_t)(struct ucred *active_cred, 336 typedef int (*mpo_posixsem_check_post_t)(struct ucred *active_cred, 345 typedef int (*mpo_posixsem_check_stat_t)(struct ucred *active_cred, 350 typedef int (*mpo_posixsem_check_wait_t)(struct ucred *active_cred, 366 typedef int (*mpo_posixshm_check_read_t)(struct ucred *active_cred, 375 typedef int (*mpo_posixshm_check_stat_t)(struct ucred *active_cred, 378 typedef int (*mpo_posixshm_check_truncate_t)(struct ucred *active_cred, 383 typedef int (*mpo_posixshm_check_write_t)(struct ucred *active_cred, 601 typedef int (*mpo_vnode_check_poll_t)(struct ucred *active_cred, 604 typedef int (*mpo_vnode_check_read_t)(struct ucred *active_cred, [all...] |
/freebsd-10.2-release/sys/sys/ |
H A D | file.h | 92 struct ucred *active_cred, int flags, 95 struct ucred *active_cred, struct thread *td); 97 struct ucred *active_cred, struct thread *td); 99 struct ucred *active_cred, struct thread *td); 102 struct ucred *active_cred, struct thread *td); 105 struct ucred *active_cred, struct thread *td); 107 struct ucred *active_cred, struct thread *td); 292 fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 296 return ((*fp->f_ops->fo_read)(fp, uio, active_cred, flags, td)); 300 fo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 308 fo_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument 316 fo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 324 fo_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 332 fo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument 354 fo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 362 fo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | socketvar.h | 341 int sopoll(struct socket *so, int events, struct ucred *active_cred, 344 struct ucred *active_cred, struct thread *td);
|
H A D | vnode.h | 683 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, 687 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid, 691 int vn_stat(struct vnode *vp, struct stat *sb, struct ucred *active_cred, 858 int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, 860 int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
|
/freebsd-10.2-release/sys/kern/ |
H A D | sys_socket.c | 75 soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 82 error = mac_socket_check_receive(active_cred, so); 92 soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 99 error = mac_socket_check_send(active_cred, so); 113 soo_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 121 soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, argument 229 soo_poll(struct file *fp, int events, struct ucred *active_cred, argument 236 error = mac_socket_check_poll(active_cred, so); 244 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred, argument 255 error = mac_socket_check_stat(active_cred, s [all...] |
H A D | sys_procdesc.c | 414 procdesc_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 422 procdesc_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 430 procdesc_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 439 struct ucred *active_cred, struct thread *td) 446 procdesc_poll(struct file *fp, int events, struct ucred *active_cred, argument 473 procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 511 procdesc_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 519 procdesc_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument 438 procdesc_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument
|
H A D | uipc_shm.c | 288 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 300 error = mac_posixshm_check_read(active_cred, fp->f_cred, shmfd); 311 shm_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 320 error = mac_posixshm_check_write(active_cred, fp->f_cred, shmfd); 340 shm_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 350 error = mac_posixshm_check_truncate(active_cred, fp->f_cred, shmfd); 359 struct ucred *active_cred, struct thread *td) 366 shm_poll(struct file *fp, int events, struct ucred *active_cred, argument 381 shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 392 error = mac_posixshm_check_stat(active_cred, f 358 shm_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 892 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 921 shm_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 | 159 ksem_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 167 ksem_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 175 ksem_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 184 struct ucred *active_cred, struct thread *td) 191 ksem_poll(struct file *fp, int events, struct ucred *active_cred, argument 206 ksem_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 217 error = mac_posixsem_check_stat(active_cred, fp->f_cred, ks); 242 ksem_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 252 error = mac_posixsem_check_setmode(active_cred, ks, mode); 257 active_cred, NUL 183 ksem_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument 267 ksem_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 | 659 pipe_read(fp, uio, active_cred, flags, td) 662 struct ucred *active_cred; 679 error = mac_pipe_check_read(active_cred, rpipe->pipe_pair); 1039 pipe_write(fp, uio, active_cred, flags, td) 1042 struct ucred *active_cred; 1069 error = mac_pipe_check_write(active_cred, wpipe->pipe_pair); 1322 pipe_truncate(fp, length, active_cred, td) 1325 struct ucred *active_cred; 1331 return (vnops.fo_truncate(fp, length, active_cred, td)); 1339 pipe_ioctl(fp, cmd, data, active_cred, t 1575 pipe_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | vfs_vnops.c | 488 enum uio_seg segflg, int ioflg, struct ucred *active_cred, 542 error = mac_vnode_check_read(active_cred, file_cred, 545 error = mac_vnode_check_write(active_cred, file_cred, 553 cred = active_cred; 591 vn_rdwr_inchunks(rw, vp, base, len, offset, segflg, ioflg, active_cred, 600 struct ucred *active_cred; 625 ioflg, active_cred, file_cred, &iaresid, td); 746 vn_read(fp, uio, active_cred, flags, td) 749 struct ucred *active_cred; 784 error = mac_vnode_check_read(active_cred, f 487 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 1127 vn_io_fault(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument 1276 vn_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument 2080 vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument 2095 vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | tty_pts.c | 109 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 183 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 256 ptsdev_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 265 struct ucred *active_cred, struct thread *td) 392 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, argument 537 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 264 ptsdev_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
|
H A D | uipc_mqueue.c | 2421 mqf_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 2428 mqf_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 2435 mqf_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 2444 struct ucred *active_cred, struct thread *td) 2450 mqf_poll(struct file *fp, int events, struct ucred *active_cred, argument 2492 mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, argument 2511 mqf_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 2521 active_cred, NULL); 2531 mqf_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument 2544 if (((uid != pn->mn_uid && uid != active_cred 2443 mqf_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument [all...] |
H A D | kern_event.c | 1595 kqueue_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 1603 kqueue_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 1611 kqueue_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 1621 struct ucred *active_cred, struct thread *td) 1668 kqueue_poll(struct file *fp, int events, struct ucred *active_cred, argument 1695 kqueue_stat(struct file *fp, struct stat *st, struct ucred *active_cred, argument 1620 kqueue_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
|
H A D | kern_descrip.c | 3943 badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred, argument 3951 badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument 3959 badfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, argument 3967 badfo_poll(struct file *fp, int events, struct ucred *active_cred, argument 3982 badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument 3997 badfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 4005 badfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument 4036 invfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument 4044 invfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument
|
/freebsd-10.2-release/sys/security/mac_test/ |
H A D | mac_test.c | 1261 test_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument 1265 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); 1288 test_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument 1292 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); 1326 test_posixsem_check_stat(struct ucred *active_cred, argument 1330 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); 1352 test_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, argument 1356 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); 1428 test_posixshm_check_read(struct ucred *active_cred, argument 1432 LABEL_CHECK(active_cred 1467 test_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) argument 1480 test_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) argument 1505 test_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) argument 2644 test_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 2659 test_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 2835 test_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 2865 test_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument [all...] |
/freebsd-10.2-release/sys/security/mac_stub/ |
H A D | mac_stub.c | 666 stub_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument 682 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument 706 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 722 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, argument 760 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 784 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 792 stub_posixshm_check_truncate(struct ucred *active_cred, argument 808 stub_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, argument 1483 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, argument 1491 stub_vnode_check_read(struct ucred *active_cred, struc argument 1597 stub_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 1614 stub_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument [all...] |
/freebsd-10.2-release/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-10.2-release/sys/security/mac_biba/ |
H A D | mac_biba.c | 1666 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, argument 1674 subj = SLOT(active_cred->cr_label); 1684 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, argument 1692 subj = SLOT(active_cred->cr_label); 1762 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 1770 subj = SLOT(active_cred->cr_label); 1816 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 1824 subj = SLOT(active_cred->cr_label); 1834 biba_posixshm_check_truncate(struct ucred *active_cred, argument 1842 subj = SLOT(active_cred 1870 biba_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *vp, struct label *shmlabel) argument 3166 biba_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3184 biba_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3467 biba_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3509 biba_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument [all...] |
/freebsd-10.2-release/sys/security/mac_mls/ |
H A D | mac_mls.c | 1522 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, argument 1530 subj = SLOT(active_cred->cr_label); 1576 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, argument 1584 subj = SLOT(active_cred->cr_label); 1654 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument 1662 subj = SLOT(active_cred->cr_label); 1708 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument 1716 subj = SLOT(active_cred->cr_label); 1726 mls_posixshm_check_truncate(struct ucred *active_cred, argument 1734 subj = SLOT(active_cred 1762 mls_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) argument 2791 mls_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 2809 mls_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3092 mls_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument 3134 mls_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument [all...] |
/freebsd-10.2-release/sys/opencrypto/ |
H A D | cryptodev.c | 327 struct ucred *active_cred, 339 struct ucred *active_cred, 368 struct ucred *active_cred, 586 error = cryptodev_op(cse, cop, active_cred, td); 654 struct ucred *active_cred, 964 struct ucred *active_cred, 984 struct ucred *active_cred, 324 cryptof_rw( struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument 336 cryptof_truncate( struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument 364 cryptof_ioctl( struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument 651 cryptodev_op( struct csession *cse, struct crypt_op *cop, struct ucred *active_cred, struct thread *td) argument 961 cryptof_poll( struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument 981 cryptof_stat( struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument
|