Home
last modified time | relevance | path

Searched refs:file_cred (Results 1 – 18 of 18) sorted by relevance

/f-stack/freebsd/security/mac/
H A Dmac_posix_sem.c128 file_cred, ks, ks->ks_label); in mac_posixsem_check_getvalue()
130 file_cred, ks); 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 Dmac_posix_shm.c154 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()
177 file_cred, shmfd, shmfd->shm_label); in mac_posixshm_check_truncate()
179 file_cred, shmfd); in mac_posixshm_check_truncate()
235 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_read() argument
241 file_cred, shmfd, shmfd->shm_label); in mac_posixshm_check_read()
243 file_cred, shmfd); in mac_posixshm_check_read()
252 mac_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_write() argument
258 file_cred, shmfd, shmfd->shm_label); in mac_posixshm_check_write()
[all …]
H A Dmac_framework.h243 struct ucred *file_cred, struct ksem *ks);
246 struct ucred *file_cred, struct ksem *ks);
252 struct ucred *file_cred, struct ksem *ks);
255 struct ucred *file_cred, struct ksem *ks);
266 struct ucred *file_cred, struct shmfd *shmfd);
272 struct ucred *file_cred, struct shmfd *shmfd);
274 struct ucred *file_cred, struct shmfd *shmfd);
529 struct ucred *file_cred, struct vnode *vp);
580 struct ucred *file_cred, struct vnode *vp);
599 struct ucred *file_cred, struct vnode *vp);
[all …]
H A Dmac_vfs.c650 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 Dmac_policy.h328 struct ucred *file_cred, struct ksem *ks,
333 struct ucred *file_cred, struct ksem *ks,
342 struct ucred *file_cred, struct ksem *ks,
347 struct ucred *file_cred, struct ksem *ks,
363 struct ucred *file_cred, struct shmfd *shmfd,
372 struct ucred *file_cred, struct shmfd *shmfd,
375 struct ucred *file_cred, struct shmfd *shmfd,
598 struct ucred *file_cred, struct vnode *vp,
601 struct ucred *file_cred, struct vnode *vp,
637 struct ucred *file_cred, struct vnode *vp,
[all …]
/f-stack/lib/
H A Dff_vfs_ops.c66 int flags, struct ucred *file_cred, struct thread *td) in vn_close() argument
77 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, in vn_rdwr() argument
/f-stack/freebsd/security/mac_test/
H A Dmac_test.c1257 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_getvalue()
1284 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_post()
1322 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_stat()
1348 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_wait()
1424 if (file_cred != NULL) in test_posixshm_check_read()
1463 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixshm_check_stat()
1501 if (file_cred != NULL) in test_posixshm_check_write()
2640 if (file_cred != NULL) in test_vnode_check_poll()
2655 if (file_cred != NULL) in test_vnode_check_read()
2831 if (file_cred != NULL) in test_vnode_check_stat()
[all …]
/f-stack/lib/include/sys/
H A Dvnode.h137 int vn_close(struct vnode *vp, int flags, struct ucred *file_cred,
142 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid,
/f-stack/freebsd/security/mac_stub/
H A Dmac_stub.c676 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
787 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) 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_bsdextended/
H A Dugidfw_internal.h111 struct ucred *file_cred, struct vnode *vp, struct label *vplabel);
H A Dugidfw_vnode.c278 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in ugidfw_vnode_check_stat() argument
/f-stack/freebsd/security/mac_biba/
H A Dmac_biba.c1649 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_write() argument
1667 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_rdonly() argument
1745 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_read() argument
1799 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_stat() argument
1818 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) in biba_posixshm_check_truncate() argument
1853 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
/f-stack/freebsd/security/mac_mls/
H A Dmac_mls.c1509 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_rdonly() argument
1563 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_write() argument
1641 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_read() argument
1695 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_stat() argument
1714 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) in mls_posixshm_check_truncate() argument
1749 mls_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_write() argument
2778 mls_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_poll() argument
2796 mls_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_read() argument
3079 mls_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_stat() argument
3121 mls_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_write() argument
/f-stack/freebsd/kern/
H A Dvfs_vnops.c466 vn_close1(struct vnode *vp, int flags, struct ucred *file_cred, in vn_close1() argument
486 error = VOP_CLOSE(vp, flags, file_cred, td); in vn_close1()
496 vn_close(struct vnode *vp, int flags, struct ucred *file_cred, in vn_close() argument
500 return (vn_close1(vp, flags, file_cred, td, false)); in vn_close()
559 struct ucred *file_cred, ssize_t *aresid, struct thread *td) in vn_rdwr() argument
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()
624 if (file_cred != NULL) in vn_rdwr()
625 cred = file_cred; in vn_rdwr()
667 struct ucred *file_cred, size_t *aresid, struct thread *td) in vn_rdwr_inchunks() argument
[all …]
H A Dimgact_elf.c1460 struct ucred *file_cred; member
1542 p->active_cred, p->file_cred, resid, p->td)); in core_write()
1685 params.file_cred = NOCRED; in __elfN()
H A Dvnode_if.src195 IN struct ucred *file_cred;
/f-stack/freebsd/sys/
H A Dvnode.h726 int flags, struct ucred *file_cred, struct thread *td);
754 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid,
758 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid,
/f-stack/freebsd/security/mac_lomac/
H A Dmac_lomac.c2466 lomac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in lomac_vnode_check_read() argument
2763 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in lomac_vnode_check_write() argument