Home
last modified time | relevance | path

Searched refs:active_cred (Results 1 – 25 of 32) 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.h305 int mac_posixsem_check_getvalue(struct ucred *active_cred,
308 int mac_posixsem_check_post(struct ucred *active_cred,
314 int mac_posixsem_check_stat(struct ucred *active_cred,
317 int mac_posixsem_check_wait(struct ucred *active_cred,
328 int mac_posixshm_check_read(struct ucred *active_cred,
334 int mac_posixshm_check_stat(struct ucred *active_cred,
336 int mac_posixshm_check_truncate(struct ucred *active_cred,
339 int mac_posixshm_check_write(struct ucred *active_cred,
591 int mac_vnode_check_poll(struct ucred *active_cred,
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.h346 typedef int (*mpo_posixsem_check_getvalue_t)(struct ucred *active_cred,
351 typedef int (*mpo_posixsem_check_post_t)(struct ucred *active_cred,
360 typedef int (*mpo_posixsem_check_stat_t)(struct ucred *active_cred,
365 typedef int (*mpo_posixsem_check_wait_t)(struct ucred *active_cred,
381 typedef int (*mpo_posixshm_check_read_t)(struct ucred *active_cred,
390 typedef int (*mpo_posixshm_check_stat_t)(struct ucred *active_cred,
393 typedef int (*mpo_posixshm_check_truncate_t)(struct ucred *active_cred,
398 typedef int (*mpo_posixshm_check_write_t)(struct ucred *active_cred,
616 typedef int (*mpo_vnode_check_poll_t)(struct ucred *active_cred,
619 typedef int (*mpo_vnode_check_read_t)(struct ucred *active_cred,
[all …]
/freebsd/sys/sys/
H A Dfile.h101 struct ucred *active_cred, int flags,
104 struct ucred *active_cred, struct thread *td);
106 struct ucred *active_cred, struct thread *td);
108 struct ucred *active_cred, struct thread *td);
111 struct ucred *active_cred);
114 struct ucred *active_cred, struct thread *td);
116 struct ucred *active_cred, struct thread *td);
134 struct ucred *active_cred, struct thread *td);
343 fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in fo_read() argument
347 return ((*fp->f_ops->fo_read)(fp, uio, active_cred, flags, td)); in fo_read()
[all …]
H A Dvnode.h765 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,
1137 int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
1139 int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
1141 int vn_getsize_locked(struct vnode *vp, off_t *size, struct ucred *active_cred);
1142 int vn_getsize(struct vnode *vp, off_t *size, struct ucred *active_cred);
H A Dexec.h63 struct ucred *active_cred; member
H A Dsocketvar.h528 int sopoll(struct socket *so, int events, struct ucred *active_cred,
531 struct ucred *active_cred, struct thread *td);
/freebsd/sys/kern/
H A Dsys_pipe.c743 pipe_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in pipe_read() argument
778 error = mac_pipe_check_read(active_cred, rpipe->pipe_pair); in pipe_read()
1134 pipe_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in pipe_write() argument
1159 error = mac_pipe_check_write(active_cred, wpipe->pipe_pair); in pipe_write()
1399 pipe_truncate(struct file *fp, off_t length, struct ucred *active_cred, in pipe_truncate() argument
1407 error = vnops.fo_truncate(fp, length, active_cred, td); in pipe_truncate()
1409 error = invfo_truncate(fp, length, active_cred, td); in pipe_truncate()
1417 pipe_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, in pipe_ioctl() argument
1426 error = mac_pipe_check_ioctl(active_cred, mpipe->pipe_pair, cmd, data); in pipe_ioctl()
1488 pipe_poll(struct file *fp, int events, struct ucred *active_cred, in pipe_poll() argument
[all …]
H A Dsys_eventfd.c144 eventfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in eventfd_read() argument
186 eventfd_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in eventfd_write() argument
230 eventfd_poll(struct file *fp, int events, struct ucred *active_cred, in eventfd_poll() argument
314 struct ucred *active_cred, struct thread *td) in eventfd_ioctl() argument
326 eventfd_stat(struct file *fp, struct stat *st, struct ucred *active_cred) in eventfd_stat() argument
H A Dsys_socket.c118 soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_read() argument
125 error = mac_socket_check_receive(active_cred, so); in soo_read()
134 soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in soo_write() argument
141 error = mac_socket_check_send(active_cred, so); in soo_write()
150 soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, in soo_ioctl() argument
280 soo_poll(struct file *fp, int events, struct ucred *active_cred, in soo_poll() argument
287 error = mac_socket_check_poll(active_cred, so); in soo_poll()
295 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred) in soo_stat() argument
303 error = mac_socket_check_stat(active_cred, so); in soo_stat()
H A Dvfs_vnops.c613 enum uio_seg segflg, int ioflg, struct ucred *active_cred, 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()
678 cred = active_cred; in vn_rdwr()
717 off_t offset, enum uio_seg segflg, int ioflg, struct ucred *active_cred, in vn_rdwr_inchunks() argument
740 ioflg, active_cred, file_cred, &iaresid, td); in vn_rdwr_inchunks()
1071 vn_read(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, in vn_read() argument
1120 error = mac_vnode_check_read(active_cred, fp->f_cred, vp); in vn_read()
1142 vn_write(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, in vn_write() argument
1190 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.c455 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in shm_read() argument
464 error = mac_posixshm_check_read(active_cred, fp->f_cred, shmfd); in shm_read()
478 shm_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in shm_write() argument
488 error = mac_posixshm_check_write(active_cred, fp->f_cred, shmfd); in shm_write()
532 shm_truncate(struct file *fp, off_t length, struct ucred *active_cred, in shm_truncate() argument
542 error = mac_posixshm_check_truncate(active_cred, fp->f_cred, shmfd); in shm_truncate()
550 shm_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, in shm_ioctl() argument
602 shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in shm_stat() argument
612 error = mac_posixshm_check_stat(active_cred, fp->f_cred, shmfd); in shm_stat()
1754 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in shm_chmod() argument
[all …]
H A Dtty_pts.c111 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in ptsdev_read() argument
185 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred, in ptsdev_write() argument
259 struct ucred *active_cred, struct thread *td) in ptsdev_ioctl() argument
385 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, in ptsdev_poll() argument
530 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in ptsdev_stat() argument
H A Dsys_timerfd.c181 timerfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred, in timerfd_read() argument
230 struct ucred *active_cred, struct thread *td) in timerfd_ioctl() argument
250 timerfd_poll(struct file *fp, int events, struct ucred *active_cred, in timerfd_poll() argument
309 timerfd_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in timerfd_stat() argument
H A Dsys_procdesc.c421 procdesc_poll(struct file *fp, int events, struct ucred *active_cred, in procdesc_poll() argument
508 procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in procdesc_stat() argument
H A Dkern_descrip.c5184 badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred, in badfo_readwrite() argument
5192 badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, in badfo_truncate() argument
5200 badfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, in badfo_ioctl() argument
5208 badfo_poll(struct file *fp, int events, struct ucred *active_cred, in badfo_poll() argument
5223 badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) in badfo_stat() argument
5237 badfo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, in badfo_chmod() argument
5245 badfo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, in badfo_chown() argument
5284 path_poll(struct file *fp, int events, struct ucred *active_cred, in path_poll() argument
5317 invfo_rdwr(struct file *fp, struct uio *uio, struct ucred *active_cred, in invfo_rdwr() argument
5325 invfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, in invfo_truncate() argument
[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
810 stub_posixshm_check_truncate(struct ucred *active_cred, 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/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
1288 LABEL_CHECK(active_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
1315 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_post()
1349 test_posixsem_check_stat(struct ucred *active_cred, in test_posixsem_check_stat() argument
1353 LABEL_CHECK(active_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
1379 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixsem_check_wait()
1451 test_posixshm_check_read(struct ucred *active_cred, in test_posixshm_check_read() argument
1455 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED); in test_posixshm_check_read()
[all …]
/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
1655 subj = SLOT(active_cred->cr_label); in biba_posixsem_check_write()
1665 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, in biba_posixsem_check_rdonly() argument
1673 subj = SLOT(active_cred->cr_label); in biba_posixsem_check_rdonly()
1743 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_read() argument
1751 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_read()
1797 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in biba_posixshm_check_stat() argument
1805 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_stat()
1815 biba_posixshm_check_truncate(struct ucred *active_cred, in biba_posixshm_check_truncate() argument
1823 subj = SLOT(active_cred->cr_label); in biba_posixshm_check_truncate()
[all …]
/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
1515 subj = SLOT(active_cred->cr_label); in mls_posixsem_check_rdonly()
1561 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, in mls_posixsem_check_write() argument
1569 subj = SLOT(active_cred->cr_label); in mls_posixsem_check_write()
1639 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_read() argument
1647 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_read()
1693 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, in mls_posixshm_check_stat() argument
1701 subj = SLOT(active_cred->cr_label); in mls_posixshm_check_stat()
1711 mls_posixshm_check_truncate(struct ucred *active_cred, in mls_posixshm_check_truncate() argument
1719 subj = SLOT(active_cred->cr_label); in mls_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