Home
last modified time | relevance | path

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

12

/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
125 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_getvalue, active_cred, in mac_posixsem_check_getvalue()
127 MAC_CHECK_PROBE3(posixsem_check_getvalue, error, active_cred, 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
174 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_truncate, active_cred, in mac_posixshm_check_truncate()
176 MAC_CHECK_PROBE3(posixshm_check_truncate, error, active_cred, in mac_posixshm_check_truncate()
233 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mac_posixshm_check_read() argument
238 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_read, active_cred, in mac_posixshm_check_read()
240 MAC_CHECK_PROBE3(posixshm_check_read, error, active_cred, 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.h318 int mac_posixsem_check_getvalue(struct ucred *active_cred,
321 int mac_posixsem_check_post(struct ucred *active_cred,
327 int mac_posixsem_check_stat(struct ucred *active_cred,
330 int mac_posixsem_check_wait(struct ucred *active_cred,
341 int mac_posixshm_check_read(struct ucred *active_cred,
347 int mac_posixshm_check_stat(struct ucred *active_cred,
349 int mac_posixshm_check_truncate(struct ucred *active_cred,
352 int mac_posixshm_check_write(struct ucred *active_cred,
620 int mac_vnode_check_poll(struct ucred *active_cred,
625 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll() argument
[all …]
H A Dmac_vfs.c698 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_poll() argument
705 MAC_POLICY_CHECK(vnode_check_poll, active_cred, file_cred, vp, in mac_vnode_check_poll()
707 MAC_CHECK_PROBE3(vnode_check_poll, error, active_cred, file_cred, in mac_vnode_check_poll()
717 mac_vnode_check_read_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_read_impl() argument
724 MAC_POLICY_CHECK(vnode_check_read, active_cred, file_cred, vp, in mac_vnode_check_read_impl()
726 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred, in mac_vnode_check_read_impl()
942 mac_vnode_check_stat_impl(struct ucred *active_cred, struct ucred *file_cred, in mac_vnode_check_stat_impl() argument
949 MAC_POLICY_CHECK(vnode_check_stat, active_cred, file_cred, vp, in mac_vnode_check_stat_impl()
951 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred, in mac_vnode_check_stat_impl()
980 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.h361 typedef int (*mpo_posixsem_check_getvalue_t)(struct ucred *active_cred,
366 typedef int (*mpo_posixsem_check_post_t)(struct ucred *active_cred,
375 typedef int (*mpo_posixsem_check_stat_t)(struct ucred *active_cred,
380 typedef int (*mpo_posixsem_check_wait_t)(struct ucred *active_cred,
396 typedef int (*mpo_posixshm_check_read_t)(struct ucred *active_cred,
405 typedef int (*mpo_posixshm_check_stat_t)(struct ucred *active_cred,
408 typedef int (*mpo_posixshm_check_truncate_t)(struct ucred *active_cred,
413 typedef int (*mpo_posixshm_check_write_t)(struct ucred *active_cred,
664 typedef int (*mpo_vnode_check_poll_t)(struct ucred *active_cred,
667 typedef int (*mpo_vnode_check_read_t)(struct ucred *active_cred,
[all …]
/freebsd/sys/sys/
H A Dfile.h108 struct ucred *active_cred, int flags,
111 struct ucred *active_cred, struct thread *td);
113 struct ucred *active_cred, struct thread *td);
115 struct ucred *active_cred, struct thread *td);
118 struct ucred *active_cred);
122 struct ucred *active_cred, struct thread *td);
124 struct ucred *active_cred, struct thread *td);
142 struct ucred *active_cred, struct thread *td);
363 fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in fo_read() argument
367 return ((*fp->f_ops->fo_read)(fp, uio, active_cred, flags, td)); in fo_read()
[all …]
H A Ducoredump.h49 struct ucred *active_cred; member
H A Dvnode.h781 int ioflg, struct ucred *active_cred, struct ucred *file_cred);
807 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid,
811 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid,
1190 int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
1192 int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
1194 int vn_getsize_locked(struct vnode *vp, off_t *size, struct ucred *active_cred);
1195 int vn_getsize(struct vnode *vp, off_t *size, struct ucred *active_cred);
H A Ducred.h262 bool cr_xids_subset(struct ucred *active_cred, struct ucred *obj_cred);
/freebsd/sys/kern/
H A Dsys_pipe.c753 pipe_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in pipe_read() argument
788 error = mac_pipe_check_read(active_cred, rpipe->pipe_pair); in pipe_read()
1144 pipe_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in pipe_write() argument
1169 error = mac_pipe_check_write(active_cred, wpipe->pipe_pair); in pipe_write()
1409 pipe_truncate(struct file *fp, off_t length, struct ucred *active_cred, in pipe_truncate() argument
1417 error = vnops.fo_truncate(fp, length, active_cred, td); in pipe_truncate()
1419 error = invfo_truncate(fp, length, active_cred, td); in pipe_truncate()
1427 pipe_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, in pipe_ioctl() argument
1436 error = mac_pipe_check_ioctl(active_cred, mpipe->pipe_pair, cmd, data); in pipe_ioctl()
1498 pipe_poll(struct file *fp, int events, struct ucred *active_cred, in pipe_poll() argument
[all …]
H A Dsys_eventfd.c192 eventfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in eventfd_read() argument
234 eventfd_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in eventfd_write() argument
276 eventfd_poll(struct file *fp, int events, struct ucred *active_cred, in eventfd_poll() argument
360 struct ucred *active_cred, struct thread *td) in eventfd_ioctl() argument
372 eventfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred) in eventfd_stat() argument
H A Dsys_socket.c120 soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_read() argument
127 error = mac_socket_check_receive(active_cred, so); in soo_read()
136 soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_write() argument
143 error = mac_socket_check_send(active_cred, so); in soo_write()
152 soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, in soo_ioctl() argument
282 soo_poll(struct file *fp, int events, struct ucred *active_cred, in soo_poll() argument
289 error = mac_socket_check_poll(active_cred, so); in soo_poll()
305 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred) in soo_stat() argument
313 error = mac_socket_check_stat(active_cred, so); in soo_stat()
H A Dvfs_vnops.c660 enum uio_seg segflg, int ioflg, struct ucred *active_cred, in vn_rdwr() argument
714 error = mac_vnode_check_read(active_cred, file_cred, in vn_rdwr()
717 error = mac_vnode_check_write(active_cred, file_cred, in vn_rdwr()
725 cred = active_cred; in vn_rdwr()
764 off_t offset, enum uio_seg segflg, int ioflg, struct ucred *active_cred, in vn_rdwr_inchunks() argument
787 ioflg, active_cred, file_cred, &iaresid, td); in vn_rdwr_inchunks()
1210 vn_read(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, in vn_read() argument
1259 error = mac_vnode_check_read(active_cred, fp->f_cred, vp); in vn_read()
1281 vn_write(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, in vn_write() argument
1329 error = mac_vnode_check_write(active_cred, fp->f_cred, vp); in vn_write()
[all …]
H A Duipc_sem.c163 ksem_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in ksem_stat() argument
173 error = mac_posixsem_check_stat(active_cred, fp->f_cred, ks); in ksem_stat()
198 ksem_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in ksem_chmod() argument
208 error = mac_posixsem_check_setmode(active_cred, ks, mode); in ksem_chmod()
213 active_cred); in ksem_chmod()
223 ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in ksem_chown() argument
233 error = mac_posixsem_check_setowner(active_cred, ks, uid, gid); in ksem_chown()
241 if (((uid != ks->ks_uid && uid != active_cred->cr_uid) || in ksem_chown()
242 (gid != ks->ks_gid && !groupmember(gid, active_cred))) && in ksem_chown()
243 (error = priv_check_cred(active_cred, PRIV_VFS_CHOWN))) in ksem_chown()
H A Duipc_shm.c475 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in shm_read() argument
484 error = mac_posixshm_check_read(active_cred, fp->f_cred, shmfd); in shm_read()
498 shm_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in shm_write() argument
511 error = mac_posixshm_check_write(active_cred, fp->f_cred, shmfd); in shm_write()
557 shm_truncate(struct file *fp, off_t length, struct ucred *active_cred, in shm_truncate() argument
567 error = mac_posixshm_check_truncate(active_cred, fp->f_cred, shmfd); in shm_truncate()
575 shm_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, in shm_ioctl() argument
632 shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in shm_stat() argument
642 error = mac_posixshm_check_stat(active_cred, fp->f_cred, shmfd); in shm_stat()
1780 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in shm_mmap()
1785 shm_chmod(struct file * fp,mode_t mode,struct ucred * active_cred,struct thread * td) shm_chmod() argument
1814 shm_chown(struct file * fp,uid_t uid,gid_t gid,struct ucred * active_cred,struct thread * td) shm_chown() argument
2104 shm_fspacectl(struct file * fp,int cmd,off_t * offset,off_t * length,int flags,struct ucred * active_cred,struct thread * td) shm_fspacectl() argument
[all...]
H A Dtty_pts.c110 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in ptsdev_read() argument
184 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in ptsdev_write() argument
258 struct ucred *active_cred, struct thread *td) in ptsdev_ioctl() argument
387 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, in ptsdev_poll() argument
534 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in ptsdev_stat() argument
H A Dsys_timerfd.c191 timerfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in timerfd_read() argument
239 struct ucred *active_cred, struct thread *td) in timerfd_ioctl() argument
259 timerfd_poll(struct file *fp, int events, struct ucred *active_cred, in timerfd_poll() argument
318 timerfd_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in timerfd_stat() argument
H A Dkern_jaildesc.c299 jaildesc_poll(struct file *fp, int events, struct ucred *active_cred, in jaildesc_poll() argument
397 jaildesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in jaildesc_stat() argument
H A Dkern_prot.c2282 cr_xids_subset(struct ucred *active_cred, struct ucred *obj_cred) in cr_xids_subset() argument
2293 if (!groupmember(obj_cred->cr_groups[i], active_cred)) { in cr_xids_subset()
2299 groupmember(obj_cred->cr_gid, active_cred) && in cr_xids_subset()
2300 groupmember(obj_cred->cr_rgid, active_cred) && in cr_xids_subset()
2301 groupmember(obj_cred->cr_svgid, active_cred); in cr_xids_subset()
2308 uidsubset = (active_cred->cr_uid == obj_cred->cr_uid && in cr_xids_subset()
2309 active_cred->cr_uid == obj_cred->cr_svuid && in cr_xids_subset()
2310 active_cred->cr_uid == obj_cred->cr_ruid); in cr_xids_subset()
/freebsd/sys/security/mac_stub/
H A Dmac_stub.c725 stub_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_getvalue() argument
741 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_post() argument
765 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_stat() argument
781 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in stub_posixsem_check_wait() argument
819 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_read() argument
843 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_stat() argument
851 stub_posixshm_check_truncate(struct ucred *active_cred, in stub_posixshm_check_truncate() argument
867 stub_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, in stub_posixshm_check_write() argument
1609 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_poll() argument
1617 stub_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, in stub_vnode_check_read() argument
[all …]
/freebsd/sys/security/mac_test/
H A Dmac_test.c1344 test_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_getvalue() argument
1348 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_getvalue()
1371 test_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_post() argument
1375 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_post()
1409 test_posixsem_check_stat(struct ucred *active_cred, in test_posixsem_check_stat() argument
1413 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_stat()
1435 test_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, in test_posixsem_check_wait() argument
1439 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_wait()
1511 test_posixshm_check_read(struct ucred *active_cred, in test_posixshm_check_read() argument
1515 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_read()
[all …]
/freebsd/sys/security/mac_mls/
H A Dmac_mls.c1505 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_rdonly() argument
1513 subj = SLOT(active_cred->cr_label); in mls_posixsem_check_rdonly()
1559 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_write() argument
1567 subj = SLOT(active_cred->cr_label); in mls_posixsem_check_write()
1637 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_read() argument
1645 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_read()
1691 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_stat() argument
1699 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_stat()
1709 mls_posixshm_check_truncate(struct ucred *active_cred, in mls_posixshm_check_truncate() argument
1717 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_truncate()
[all …]
/freebsd/sys/security/mac_biba/
H A Dmac_biba.c1646 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_write() argument
1654 subj = SLOT(active_cred->cr_label); in biba_posixsem_check_write()
1664 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_rdonly() argument
1672 subj = SLOT(active_cred->cr_label); in biba_posixsem_check_rdonly()
1742 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_read() argument
1750 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_read()
1796 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_stat() argument
1804 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_stat()
1814 biba_posixshm_check_truncate(struct ucred *active_cred, in biba_posixshm_check_truncate() argument
1822 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_truncate()
[all …]
/freebsd/sys/security/mac_bsdextended/
H A Dugidfw_vnode.c275 ugidfw_vnode_check_stat(struct ucred *active_cred, in ugidfw_vnode_check_stat() argument
279 return (ugidfw_check_vp(active_cred, vp, MBI_STAT)); in ugidfw_vnode_check_stat()
H A Dugidfw_internal.h108 int ugidfw_vnode_check_stat(struct ucred *active_cred,

12