Home
last modified time | relevance | path

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

/freebsd-13-stable/sys/security/mac/
HDmac_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 …]
HDmac_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 …]
HDmac_framework.h271 struct ucred *file_cred, struct ksem *ks);
274 struct ucred *file_cred, struct ksem *ks);
280 struct ucred *file_cred, struct ksem *ks);
283 struct ucred *file_cred, struct ksem *ks);
294 struct ucred *file_cred, struct shmfd *shmfd);
300 struct ucred *file_cred, struct shmfd *shmfd);
302 struct ucred *file_cred, struct shmfd *shmfd);
305 struct ucred *file_cred, struct shmfd *shmfd);
557 struct ucred *file_cred, struct vnode *vp);
561 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll() argument
[all …]
HDmac_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 …]
HDmac_policy.h326 struct ucred *file_cred, struct ksem *ks,
331 struct ucred *file_cred, struct ksem *ks,
340 struct ucred *file_cred, struct ksem *ks,
345 struct ucred *file_cred, struct ksem *ks,
361 struct ucred *file_cred, struct shmfd *shmfd,
370 struct ucred *file_cred, struct shmfd *shmfd,
373 struct ucred *file_cred, struct shmfd *shmfd,
378 struct ucred *file_cred, struct shmfd *shmfd,
596 struct ucred *file_cred, struct vnode *vp,
599 struct ucred *file_cred, struct vnode *vp,
[all …]
/freebsd-13-stable/sys/security/mac_test/
HDmac_test.c1248 test_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_getvalue() argument
1253 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_getvalue()
1275 test_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_post() argument
1280 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_post()
1314 struct ucred *file_cred, struct ksem *ks, struct label *kslabel) in test_posixsem_check_stat() argument
1318 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_stat()
1339 test_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_wait() argument
1344 LABEL_CHECK(file_cred->cr_label, MAGIC_CRED); in test_posixsem_check_wait()
1416 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_read() argument
1420 if (file_cred != NULL) in test_posixshm_check_read()
[all …]
/freebsd-13-stable/sys/security/mac_stub/
HDmac_stub.c656 stub_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_getvalue() argument
672 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_post() argument
696 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_stat() argument
712 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_wait() argument
750 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_read() argument
774 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_stat() argument
783 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) in stub_posixshm_check_truncate() argument
798 stub_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_write() argument
1466 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_poll() argument
1474 stub_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_read() argument
[all …]
/freebsd-13-stable/sys/sys/
HDexec.h66 struct ucred *file_cred; member
HDvnode.h746 int flags, struct ucred *file_cred, struct thread *td);
776 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid,
780 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid,
/freebsd-13-stable/sys/security/mac_biba/
HDmac_biba.c1646 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_write() argument
1664 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_rdonly() argument
1742 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_read() argument
1796 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_stat() argument
1815 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) in biba_posixshm_check_truncate() argument
1850 biba_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_write() argument
3145 biba_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_poll() argument
3163 biba_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_read() argument
3446 biba_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_vnode_check_stat() argument
3489 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in biba_vnode_check_write() argument
/freebsd-13-stable/sys/security/mac_mls/
HDmac_mls.c1505 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_rdonly() argument
1559 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_write() argument
1637 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_read() argument
1691 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_stat() argument
1710 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmlabel) in mls_posixshm_check_truncate() argument
1745 mls_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_write() argument
2774 mls_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_poll() argument
2792 mls_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_read() argument
3075 mls_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_stat() argument
3117 mls_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_vnode_check_write() argument
/freebsd-13-stable/sys/security/mac_bsdextended/
HDugidfw_internal.h109 struct ucred *file_cred, struct vnode *vp, struct label *vplabel);
HDugidfw_vnode.c276 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in ugidfw_vnode_check_stat() argument
/freebsd-13-stable/sys/kern/
HDvfs_vnops.c521 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 …]
HDvnode_if.src194 IN struct ucred *file_cred;
HDkern_exec.c2025 cp->active_cred, cp->file_cred, resid, cp->td)); in core_write()
HDimgact_elf.c1609 params.file_cred = NOCRED; in __elfN()
/freebsd-13-stable/sys/security/mac_lomac/
HDmac_lomac.c2465 lomac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in lomac_vnode_check_read() argument
2762 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in lomac_vnode_check_write() argument