Home
last modified time | relevance | path

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

/freebsd/sys/security/mac/
H A Dmac_posix_sem.c120 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 Dmac_posix_shm.c152 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 Dmac_framework.h306 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 Dmac_vfs.c648 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 Dmac_policy.h347 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 Dmac_test.c1284 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 Dmac_stub.c684 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 Dexec.h64 struct ucred *file_cred; member
H A Dvnode.h759 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 Dvfs_vnops.c524 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 Dvnode_if.src191 IN struct ucred *file_cred;
H A Dkern_exec.c1991 cp->active_cred, cp->file_cred, resid, cp->td)); in core_write()
H A Dimgact_elf.c1623 params.file_cred = NOCRED; in __elfN()
/freebsd/sys/security/mac_biba/
H A Dmac_biba.c1647 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 Dmac_mls.c1507 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 Dugidfw_internal.h109 struct ucred *file_cred, struct vnode *vp, struct label *vplabel);
H A Dugidfw_vnode.c276 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in ugidfw_vnode_check_stat() argument
/freebsd/sys/security/mac_lomac/
H A Dmac_lomac.c2469 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