/freebsd/sys/security/mac/ |
H A D | mac_posix_sem.c | 120 mac_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_getvalue() argument 126 file_cred, ks, ks->ks_label); in mac_posixsem_check_getvalue() 128 file_cred, ks); in mac_posixsem_check_getvalue() 137 mac_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_post() argument 142 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_post, active_cred, file_cred, in mac_posixsem_check_post() 144 MAC_CHECK_PROBE3(posixsem_check_post, error, active_cred, file_cred, in mac_posixsem_check_post() 154 mac_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_stat() argument 159 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_stat, active_cred, file_cred, in mac_posixsem_check_stat() 161 MAC_CHECK_PROBE3(posixsem_check_stat, error, active_cred, file_cred, in mac_posixsem_check_stat() 186 mac_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in mac_posixsem_check_wait() argument [all …]
|
H A D | mac_posix_shm.c | 152 mac_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_stat() argument 157 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_stat, active_cred, file_cred, in mac_posixshm_check_stat() 159 MAC_CHECK_PROBE3(posixshm_check_stat, error, active_cred, file_cred, in mac_posixshm_check_stat() 169 mac_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_truncate() argument 175 file_cred, shmfd, shmfd->shm_label); in mac_posixshm_check_truncate() 177 file_cred, shmfd); in mac_posixshm_check_truncate() 233 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_read() argument 239 file_cred, shmfd, shmfd->shm_label); in mac_posixshm_check_read() 241 file_cred, shmfd); in mac_posixshm_check_read() 250 mac_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_write() argument [all …]
|
H A D | mac_framework.h | 306 struct ucred *file_cred, struct ksem *ks); 309 struct ucred *file_cred, struct ksem *ks); 315 struct ucred *file_cred, struct ksem *ks); 318 struct ucred *file_cred, struct ksem *ks); 329 struct ucred *file_cred, struct shmfd *shmfd); 335 struct ucred *file_cred, struct shmfd *shmfd); 337 struct ucred *file_cred, struct shmfd *shmfd); 340 struct ucred *file_cred, struct shmfd *shmfd); 592 struct ucred *file_cred, struct vnode *vp); 596 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll() argument [all …]
|
H A D | mac_vfs.c | 648 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll() argument 655 MAC_POLICY_CHECK(vnode_check_poll, active_cred, file_cred, vp, in mac_vnode_check_poll() 657 MAC_CHECK_PROBE3(vnode_check_poll, error, active_cred, file_cred, in mac_vnode_check_poll() 667 mac_vnode_check_read_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read_impl() argument 674 MAC_POLICY_CHECK(vnode_check_read, active_cred, file_cred, vp, in mac_vnode_check_read_impl() 676 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred, in mac_vnode_check_read_impl() 892 mac_vnode_check_stat_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat_impl() argument 899 MAC_POLICY_CHECK(vnode_check_stat, active_cred, file_cred, vp, in mac_vnode_check_stat_impl() 901 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred, in mac_vnode_check_stat_impl() 930 mac_vnode_check_write_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_write_impl() argument [all …]
|
H A D | mac_policy.h | 347 struct ucred *file_cred, struct ksem *ks, 352 struct ucred *file_cred, struct ksem *ks, 361 struct ucred *file_cred, struct ksem *ks, 366 struct ucred *file_cred, struct ksem *ks, 382 struct ucred *file_cred, struct shmfd *shmfd, 391 struct ucred *file_cred, struct shmfd *shmfd, 394 struct ucred *file_cred, struct shmfd *shmfd, 399 struct ucred *file_cred, struct shmfd *shmfd, 617 struct ucred *file_cred, struct vnode *vp, 620 struct ucred *file_cred, struct vnode *vp, [all …]
|
/freebsd/sys/security/mac_test/ |
H A D | mac_test.c | 1284 test_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_getvalue() argument 1289 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_getvalue() 1311 test_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_post() argument 1316 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_post() 1350 struct ucred *file_cred, struct ksem *ks, struct label *kslabel) in test_posixsem_check_stat() argument 1354 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_stat() 1375 test_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_wait() argument 1380 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_wait() 1452 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_read() argument 1456 if (file_cred != NULL) in test_posixshm_check_read() [all …]
|
/freebsd/sys/security/mac_stub/ |
H A D | mac_stub.c | 684 stub_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_getvalue() argument 700 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_post() argument 724 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_stat() argument 740 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_wait() argument 778 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_read() argument 802 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_stat() argument 811 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) in stub_posixshm_check_truncate() argument 826 stub_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_write() argument 1494 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_poll() argument 1502 stub_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_read() argument [all …]
|
/freebsd/sys/sys/ |
H A D | exec.h | 64 struct ucred *file_cred; member
|
H A D | vnode.h | 759 int flags, struct ucred *file_cred, struct thread *td); 765 int ioflg, struct ucred *active_cred, struct ucred *file_cred); 791 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, 795 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid,
|
/freebsd/sys/kern/ |
H A D | vfs_vnops.c | 524 vn_close1(struct vnode *vp, int flags, struct ucred *file_cred, in vn_close1() argument 541 error = VOP_CLOSE(vp, flags, file_cred, td); in vn_close1() 551 vn_close(struct vnode *vp, int flags, struct ucred *file_cred, in vn_close() argument 555 return (vn_close1(vp, flags, file_cred, td, false)); in vn_close() 614 struct ucred *file_cred, ssize_t *aresid, struct thread *td) in vn_rdwr() argument 667 error = mac_vnode_check_read(active_cred, file_cred, in vn_rdwr() 670 error = mac_vnode_check_write(active_cred, file_cred, in vn_rdwr() 675 if (file_cred != NULL) in vn_rdwr() 676 cred = file_cred; in vn_rdwr() 718 struct ucred *file_cred, size_t *aresid, struct thread *td) in vn_rdwr_inchunks() argument [all …]
|
H A D | vnode_if.src | 191 IN struct ucred *file_cred;
|
H A D | kern_exec.c | 1991 cp->active_cred, cp->file_cred, resid, cp->td)); in core_write()
|
H A D | imgact_elf.c | 1623 params.file_cred = NOCRED; in __elfN()
|
/freebsd/sys/security/mac_biba/ |
H A D | mac_biba.c | 1647 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_write() argument 1665 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_rdonly() argument 1743 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_read() argument 1797 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_stat() argument 1816 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) in biba_posixshm_check_truncate() argument 1851 biba_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_write() argument 3146 biba_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_poll() argument 3164 biba_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_read() argument 3447 biba_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_stat() argument 3490 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in biba_vnode_check_write() argument
|
/freebsd/sys/security/mac_mls/ |
H A D | mac_mls.c | 1507 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_rdonly() argument 1561 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_write() argument 1639 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_read() argument 1693 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_stat() argument 1712 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) in mls_posixshm_check_truncate() argument 1747 mls_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_write() argument 2776 mls_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_poll() argument 2794 mls_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_read() argument 3077 mls_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_stat() argument 3119 mls_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_write() argument
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | ugidfw_internal.h | 109 struct ucred *file_cred, struct vnode *vp, struct label *vplabel);
|
H A D | ugidfw_vnode.c | 276 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in ugidfw_vnode_check_stat() argument
|
/freebsd/sys/security/mac_lomac/ |
H A D | mac_lomac.c | 2469 lomac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in lomac_vnode_check_read() argument 2766 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in lomac_vnode_check_write() argument
|