Home
last modified time | relevance | path

Searched refs:active_cred (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-12.1/sys/security/mac/
H A Dmac_posix_sem.c127 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_getvalue, active_cred, in mac_posixsem_check_getvalue()
129 MAC_CHECK_PROBE3(posixsem_check_getvalue, error, active_cred, 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()
176 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_truncate, active_cred, in mac_posixshm_check_truncate()
178 MAC_CHECK_PROBE3(posixshm_check_truncate, error, active_cred, in mac_posixshm_check_truncate()
235 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_read() argument
240 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_read, active_cred, in mac_posixshm_check_read()
242 MAC_CHECK_PROBE3(posixshm_check_read, error, active_cred, in mac_posixshm_check_read()
252 mac_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_write() argument
257 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_write, active_cred, in mac_posixshm_check_write()
[all …]
H A Dmac_framework.h221 int mac_posixsem_check_getvalue(struct ucred *active_cred,
224 int mac_posixsem_check_post(struct ucred *active_cred,
230 int mac_posixsem_check_stat(struct ucred *active_cred,
233 int mac_posixsem_check_wait(struct ucred *active_cred,
244 int mac_posixshm_check_read(struct ucred *active_cred,
250 int mac_posixshm_check_stat(struct ucred *active_cred,
255 int mac_posixshm_check_write(struct ucred *active_cred,
404 int mac_vnode_check_poll(struct ucred *active_cred,
406 int mac_vnode_check_read(struct ucred *active_cred,
427 int mac_vnode_check_stat(struct ucred *active_cred,
[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(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read() argument
674 MAC_POLICY_CHECK(vnode_check_read, active_cred, file_cred, vp, in mac_vnode_check_read()
676 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred, in mac_vnode_check_read()
892 mac_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat() argument
899 MAC_POLICY_CHECK(vnode_check_stat, active_cred, file_cred, vp, in mac_vnode_check_stat()
901 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred, in mac_vnode_check_stat()
937 MAC_POLICY_CHECK(vnode_check_write, active_cred, file_cred, vp, in mac_vnode_check_write()
[all …]
H A Dmac_policy.h327 typedef int (*mpo_posixsem_check_getvalue_t)(struct ucred *active_cred,
332 typedef int (*mpo_posixsem_check_post_t)(struct ucred *active_cred,
341 typedef int (*mpo_posixsem_check_stat_t)(struct ucred *active_cred,
346 typedef int (*mpo_posixsem_check_wait_t)(struct ucred *active_cred,
362 typedef int (*mpo_posixshm_check_read_t)(struct ucred *active_cred,
371 typedef int (*mpo_posixshm_check_stat_t)(struct ucred *active_cred,
379 typedef int (*mpo_posixshm_check_write_t)(struct ucred *active_cred,
597 typedef int (*mpo_vnode_check_poll_t)(struct ucred *active_cred,
600 typedef int (*mpo_vnode_check_read_t)(struct ucred *active_cred,
636 typedef int (*mpo_vnode_check_stat_t)(struct ucred *active_cred,
[all …]
/freebsd-12.1/sys/sys/
H A Dfile.h99 struct ucred *active_cred, int flags,
102 struct ucred *active_cred, struct thread *td);
104 struct ucred *active_cred, struct thread *td);
106 struct ucred *active_cred, struct thread *td);
109 struct ucred *active_cred, struct thread *td);
112 struct ucred *active_cred, struct thread *td);
114 struct ucred *active_cred, struct thread *td);
341 fo_poll(struct file *fp, int events, struct ucred *active_cred, in fo_poll() argument
345 return ((*fp->f_ops->fo_poll)(fp, events, active_cred, td)); in fo_poll()
353 return ((*fp->f_ops->fo_stat)(fp, sb, active_cred, td)); in fo_stat()
[all …]
H A Dvnode.h687 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid,
691 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid,
695 int vn_stat(struct vnode *vp, struct stat *sb, struct ucred *active_cred,
915 int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
917 int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
H A Dsocketvar.h414 int sopoll(struct socket *so, int events, struct ucred *active_cred,
417 struct ucred *active_cred, struct thread *td);
/freebsd-12.1/sys/kern/
H A Duipc_shm.c295 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in shm_read() argument
304 error = mac_posixshm_check_read(active_cred, fp->f_cred, shmfd); in shm_read()
327 error = mac_posixshm_check_write(active_cred, fp->f_cred, shmfd); in shm_write()
394 error = mac_posixshm_check_stat(active_cred, fp->f_cred, shmfd); in shm_stat()
947 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in shm_chmod() argument
961 error = mac_posixshm_check_setmode(active_cred, shmfd, mode); in shm_chmod()
966 shmfd->shm_gid, VADMIN, active_cred, NULL); in shm_chmod()
986 error = mac_posixshm_check_setowner(active_cred, shmfd, uid, gid); in shm_chown()
994 if (((uid != shmfd->shm_uid && uid != active_cred->cr_uid) || in shm_chown()
995 (gid != shmfd->shm_gid && !groupmember(gid, active_cred))) && in shm_chown()
[all …]
H A Dvfs_vnops.c576 error = mac_vnode_check_read(active_cred, file_cred, in vn_rdwr()
587 cred = active_cred; in vn_rdwr()
649 ioflg, active_cred, file_cred, &iaresid, td); in vn_rdwr_inchunks()
1156 args.cred = active_cred; in vn_io_fault()
1347 error = vn_stat(vp, sb, active_cred, fp->f_cred, td); in vn_statfile()
1384 error = VOP_GETATTR(vp, vap, active_cred); in vn_stat()
1479 error = VOP_GETATTR(vp, &vattr, active_cred); in vn_ioctl()
1501 active_cred, td)); in vn_ioctl()
1506 active_cred, td)); in vn_ioctl()
2124 return (setfmode(td, active_cred, vp, mode)); in vn_chmod()
[all …]
H A Dsys_pipe.c660 error = mac_pipe_check_read(active_cred, rpipe->pipe_pair); in pipe_read()
1042 error = mac_pipe_check_write(active_cred, wpipe->pipe_pair); in pipe_write()
1303 error = vnops.fo_truncate(fp, length, active_cred, td); in pipe_truncate()
1305 error = invfo_truncate(fp, length, active_cred, td); in pipe_truncate()
1400 error = mac_pipe_check_poll(active_cred, rpipe->pipe_pair); in pipe_poll()
1468 error = mac_pipe_check_stat(active_cred, pipe->pipe_pair); in pipe_stat()
1478 return (vnops.fo_stat(fp, ub, active_cred, td)); in pipe_stat()
1525 error = vn_chmod(fp, mode, active_cred, td); in pipe_chmod()
1527 error = invfo_chmod(fp, mode, active_cred, td); in pipe_chmod()
1540 error = vn_chown(fp, uid, gid, active_cred, td); in pipe_chown()
[all …]
H A Dsys_socket.c121 soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_read() argument
128 error = mac_socket_check_receive(active_cred, so); in soo_read()
137 soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_write() argument
144 error = mac_socket_check_send(active_cred, so); in soo_write()
158 soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, in soo_ioctl() argument
271 soo_poll(struct file *fp, int events, struct ucred *active_cred, in soo_poll() argument
278 error = mac_socket_check_poll(active_cred, so); in soo_poll()
286 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred, in soo_stat() argument
297 error = mac_socket_check_stat(active_cred, so); in soo_stat()
H A Duipc_sem.c164 ksem_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in ksem_stat() argument
175 error = mac_posixsem_check_stat(active_cred, fp->f_cred, ks); in ksem_stat()
200 ksem_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in ksem_chmod() argument
210 error = mac_posixsem_check_setmode(active_cred, ks, mode); in ksem_chmod()
215 active_cred, NULL); in ksem_chmod()
225 ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in ksem_chown() argument
235 error = mac_posixsem_check_setowner(active_cred, ks, uid, gid); in ksem_chown()
243 if (((uid != ks->ks_uid && uid != active_cred->cr_uid) || in ksem_chown()
244 (gid != ks->ks_gid && !groupmember(gid, active_cred))) && in ksem_chown()
245 (error = priv_check_cred(active_cred, PRIV_VFS_CHOWN, 0))) in ksem_chown()
H A Dtty_pts.c113 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in ptsdev_read() argument
187 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in ptsdev_write() argument
261 struct ucred *active_cred, struct thread *td) in ptsdev_ioctl() argument
388 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, in ptsdev_poll() argument
533 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in ptsdev_stat() argument
H A Dsys_procdesc.c441 procdesc_poll(struct file *fp, int events, struct ucred *active_cred, in procdesc_poll() argument
528 procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in procdesc_stat() argument
H A Dkern_descrip.c4067 badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred, in badfo_readwrite() argument
4075 badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, in badfo_truncate() argument
4091 badfo_poll(struct file *fp, int events, struct ucred *active_cred, in badfo_poll() argument
4106 badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, in badfo_stat() argument
4121 badfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in badfo_chmod() argument
4129 badfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in badfo_chown() argument
4168 invfo_rdwr(struct file *fp, struct uio *uio, struct ucred *active_cred, in invfo_rdwr() argument
4176 invfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, in invfo_truncate() argument
4185 struct ucred *active_cred, struct thread *td) in invfo_ioctl() argument
4192 invfo_poll(struct file *fp, int events, struct ucred *active_cred, in invfo_poll() argument
[all …]
H A Duipc_mqueue.c2491 mqf_poll(struct file *fp, int events, struct ucred *active_cred, in mqf_poll() argument
2533 mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, in mqf_stat() argument
2552 mqf_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in mqf_chmod() argument
2562 active_cred, NULL); in mqf_chmod()
2572 mqf_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in mqf_chown() argument
2585 if (((uid != pn->mn_uid && uid != active_cred->cr_uid) || in mqf_chown()
2586 (gid != pn->mn_gid && !groupmember(gid, active_cred))) && in mqf_chown()
2587 (error = priv_check_cred(active_cred, PRIV_VFS_CHOWN, 0))) in mqf_chown()
/freebsd-12.1/sys/security/mac_stub/
H A Dmac_stub.c675 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_post() argument
699 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_stat() argument
715 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_wait() argument
753 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_read() argument
777 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_stat() argument
785 stub_posixshm_check_truncate(struct ucred *active_cred, in stub_posixshm_check_truncate() argument
801 stub_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_write() argument
1476 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_poll() argument
1484 stub_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_read() argument
1590 stub_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_stat() argument
[all …]
/freebsd-12.1/sys/security/mac_test/
H A Dmac_test.c1254 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_getvalue()
1281 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_post()
1319 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_stat()
1345 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_wait()
1421 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_read()
1460 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_stat()
1473 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_truncate()
1498 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_write()
2637 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_vnode_check_poll()
2652 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_vnode_check_read()
[all …]
/freebsd-12.1/sys/security/mac_mls/
H A Dmac_mls.c1516 subj = SLOT(active_cred->cr_label); in mls_posixsem_check_rdonly()
1570 subj = SLOT(active_cred->cr_label); in mls_posixsem_check_write()
1648 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_read()
1702 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_stat()
1712 mls_posixshm_check_truncate(struct ucred *active_cred, in mls_posixshm_check_truncate() argument
1720 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_truncate()
1756 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_write()
2785 subj = SLOT(active_cred->cr_label); in mls_vnode_check_poll()
2803 subj = SLOT(active_cred->cr_label); in mls_vnode_check_read()
3086 subj = SLOT(active_cred->cr_label); in mls_vnode_check_stat()
[all …]
/freebsd-12.1/sys/security/mac_biba/
H A Dmac_biba.c1656 subj = SLOT(active_cred->cr_label); in biba_posixsem_check_write()
1674 subj = SLOT(active_cred->cr_label); in biba_posixsem_check_rdonly()
1752 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_read()
1806 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_stat()
1824 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_truncate()
1860 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_write()
3153 subj = SLOT(active_cred->cr_label); in biba_vnode_check_poll()
3171 subj = SLOT(active_cred->cr_label); in biba_vnode_check_read()
3454 subj = SLOT(active_cred->cr_label); in biba_vnode_check_stat()
3488 biba_vnode_check_write(struct ucred *active_cred, in biba_vnode_check_write() argument
[all …]
/freebsd-12.1/sys/compat/linux/
H A Dlinux_event.c753 eventfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in eventfd_read() argument
799 eventfd_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in eventfd_write() argument
845 eventfd_poll(struct file *fp, int events, struct ucred *active_cred, in eventfd_poll() argument
936 struct ucred *active_cred, struct thread *td) in eventfd_ioctl() argument
959 eventfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred, in eventfd_stat() argument
1047 timerfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in timerfd_read() argument
1090 timerfd_poll(struct file *fp, int events, struct ucred *active_cred, in timerfd_poll() argument
1152 timerfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred, in timerfd_stat() argument
/freebsd-12.1/sys/security/mac_bsdextended/
H A Dugidfw_vnode.c277 ugidfw_vnode_check_stat(struct ucred *active_cred, in ugidfw_vnode_check_stat() argument
281 return (ugidfw_check_vp(active_cred, vp, MBI_STAT)); in ugidfw_vnode_check_stat()
H A Dugidfw_internal.h110 int ugidfw_vnode_check_stat(struct ucred *active_cred,
/freebsd-12.1/sys/opencrypto/
H A Dcryptodev.c374 struct ucred *active_cred, in cryptof_ioctl() argument
708 error = cryptodev_op(cse, cop, active_cred, td); in cryptof_ioctl()
775 error = cryptodev_aead(cse, caead, active_cred, td); in cryptof_ioctl()
822 struct ucred *active_cred, in cryptodev_op() argument
1000 struct ucred *active_cred, in cryptodev_aead() argument
1336 struct ucred *active_cred, in cryptof_stat() argument

12