Searched refs:active_cred (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-10.1-release/sys/security/mac/
H A Dmac_posix_sem.c123 mac_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument
128 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_getvalue, active_cred,
130 MAC_CHECK_PROBE3(posixsem_check_getvalue, error, active_cred,
140 mac_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument
145 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_post, active_cred, file_cred,
147 MAC_CHECK_PROBE3(posixsem_check_post, error, active_cred, file_cred,
157 mac_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument
162 MAC_POLICY_CHECK_NOSLEEP(posixsem_check_stat, active_cred, file_cred,
164 MAC_CHECK_PROBE3(posixsem_check_stat, error, active_cred, file_cred,
189 mac_posixsem_check_wait(struct ucred *active_cred, struc argument
[all...]
H A Dmac_posix_shm.c155 mac_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument
160 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_stat, active_cred, file_cred,
162 MAC_CHECK_PROBE3(posixshm_check_stat, error, active_cred, file_cred,
172 mac_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, argument
177 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_truncate, active_cred,
179 MAC_CHECK_PROBE3(posixshm_check_truncate, error, active_cred,
236 mac_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument
241 MAC_POLICY_CHECK_NOSLEEP(posixshm_check_read, active_cred,
243 MAC_CHECK_PROBE3(posixshm_check_read, error, active_cred,
253 mac_posixshm_check_write(struct ucred *active_cred, struc argument
[all...]
H A Dmac_framework.h223 int mac_posixsem_check_getvalue(struct ucred *active_cred,
226 int mac_posixsem_check_post(struct ucred *active_cred,
232 int mac_posixsem_check_stat(struct ucred *active_cred,
235 int mac_posixsem_check_wait(struct ucred *active_cred,
246 int mac_posixshm_check_read(struct ucred *active_cred,
252 int mac_posixshm_check_stat(struct ucred *active_cred,
254 int mac_posixshm_check_truncate(struct ucred *active_cred,
257 int mac_posixshm_check_write(struct ucred *active_cred,
406 int mac_vnode_check_poll(struct ucred *active_cred,
408 int mac_vnode_check_read(struct ucred *active_cred,
[all...]
H A Dmac_vfs.c649 mac_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, argument
656 MAC_POLICY_CHECK(vnode_check_poll, active_cred, file_cred, vp,
658 MAC_CHECK_PROBE3(vnode_check_poll, error, active_cred, file_cred,
668 mac_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, argument
675 MAC_POLICY_CHECK(vnode_check_read, active_cred, file_cred, vp,
677 MAC_CHECK_PROBE3(vnode_check_read, error, active_cred, file_cred,
893 mac_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument
900 MAC_POLICY_CHECK(vnode_check_stat, active_cred, file_cred, vp,
902 MAC_CHECK_PROBE3(vnode_check_stat, error, active_cred, file_cred,
931 mac_vnode_check_write(struct ucred *active_cred, struc argument
[all...]
H A Dmac_policy.h331 typedef int (*mpo_posixsem_check_getvalue_t)(struct ucred *active_cred,
336 typedef int (*mpo_posixsem_check_post_t)(struct ucred *active_cred,
345 typedef int (*mpo_posixsem_check_stat_t)(struct ucred *active_cred,
350 typedef int (*mpo_posixsem_check_wait_t)(struct ucred *active_cred,
366 typedef int (*mpo_posixshm_check_read_t)(struct ucred *active_cred,
375 typedef int (*mpo_posixshm_check_stat_t)(struct ucred *active_cred,
378 typedef int (*mpo_posixshm_check_truncate_t)(struct ucred *active_cred,
383 typedef int (*mpo_posixshm_check_write_t)(struct ucred *active_cred,
601 typedef int (*mpo_vnode_check_poll_t)(struct ucred *active_cred,
604 typedef int (*mpo_vnode_check_read_t)(struct ucred *active_cred,
[all...]
/freebsd-10.1-release/sys/sys/
H A Dfile.h92 struct ucred *active_cred, int flags,
95 struct ucred *active_cred, struct thread *td);
97 struct ucred *active_cred, struct thread *td);
99 struct ucred *active_cred, struct thread *td);
102 struct ucred *active_cred, struct thread *td);
105 struct ucred *active_cred, struct thread *td);
107 struct ucred *active_cred, struct thread *td);
292 fo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
296 return ((*fp->f_ops->fo_read)(fp, uio, active_cred, flags, td));
300 fo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
308 fo_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument
316 fo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument
324 fo_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument
332 fo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument
354 fo_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument
362 fo_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument
[all...]
H A Dsocketvar.h341 int sopoll(struct socket *so, int events, struct ucred *active_cred,
344 struct ucred *active_cred, struct thread *td);
H A Dvnode.h680 struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid,
684 struct ucred *active_cred, struct ucred *file_cred, size_t *aresid,
688 int vn_stat(struct vnode *vp, struct stat *sb, struct ucred *active_cred,
851 int vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred,
853 int vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
/freebsd-10.1-release/sys/kern/
H A Dsys_socket.c75 soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
82 error = mac_socket_check_receive(active_cred, so);
92 soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
99 error = mac_socket_check_send(active_cred, so);
113 soo_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument
121 soo_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, argument
229 soo_poll(struct file *fp, int events, struct ucred *active_cred, argument
236 error = mac_socket_check_poll(active_cred, so);
244 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred, argument
255 error = mac_socket_check_stat(active_cred, s
[all...]
H A Dsys_procdesc.c414 procdesc_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
422 procdesc_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
430 procdesc_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument
439 struct ucred *active_cred, struct thread *td)
446 procdesc_poll(struct file *fp, int events, struct ucred *active_cred, argument
473 procdesc_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument
511 procdesc_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument
519 procdesc_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument
438 procdesc_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument
H A Duipc_shm.c288 shm_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
300 error = mac_posixshm_check_read(active_cred, fp->f_cred, shmfd);
311 shm_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
320 error = mac_posixshm_check_write(active_cred, fp->f_cred, shmfd);
340 shm_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument
350 error = mac_posixshm_check_truncate(active_cred, fp->f_cred, shmfd);
359 struct ucred *active_cred, struct thread *td)
366 shm_poll(struct file *fp, int events, struct ucred *active_cred, argument
381 shm_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument
392 error = mac_posixshm_check_stat(active_cred, f
358 shm_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument
891 shm_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument
920 shm_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument
[all...]
H A Duipc_sem.c159 ksem_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
167 ksem_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
175 ksem_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument
184 struct ucred *active_cred, struct thread *td)
191 ksem_poll(struct file *fp, int events, struct ucred *active_cred, argument
206 ksem_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument
217 error = mac_posixsem_check_stat(active_cred, fp->f_cred, ks);
242 ksem_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument
252 error = mac_posixsem_check_setmode(active_cred, ks, mode);
257 active_cred, NUL
183 ksem_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) argument
267 ksem_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument
[all...]
H A Dsys_pipe.c658 pipe_read(fp, uio, active_cred, flags, td)
661 struct ucred *active_cred;
678 error = mac_pipe_check_read(active_cred, rpipe->pipe_pair);
1038 pipe_write(fp, uio, active_cred, flags, td)
1041 struct ucred *active_cred;
1068 error = mac_pipe_check_write(active_cred, wpipe->pipe_pair);
1321 pipe_truncate(fp, length, active_cred, td)
1324 struct ucred *active_cred;
1330 return (vnops.fo_truncate(fp, length, active_cred, td));
1338 pipe_ioctl(fp, cmd, data, active_cred, t
1574 pipe_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument
[all...]
H A Dvfs_vnops.c482 enum uio_seg segflg, int ioflg, struct ucred *active_cred,
533 error = mac_vnode_check_read(active_cred, file_cred,
536 error = mac_vnode_check_write(active_cred, file_cred,
544 cred = active_cred;
582 vn_rdwr_inchunks(rw, vp, base, len, offset, segflg, ioflg, active_cred,
591 struct ucred *active_cred;
616 ioflg, active_cred, file_cred, &iaresid, td);
737 vn_read(fp, uio, active_cred, flags, td)
740 struct ucred *active_cred;
775 error = mac_vnode_check_read(active_cred, f
481 vn_rdwr(enum uio_rw rw, struct vnode *vp, void *base, int len, off_t offset, enum uio_seg segflg, int ioflg, struct ucred *active_cred, struct ucred *file_cred, ssize_t *aresid, struct thread *td) argument
1118 vn_io_fault(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument
1267 vn_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument
2066 vn_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, struct thread *td) argument
2081 vn_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, struct thread *td) argument
[all...]
H A Dtty_pts.c109 ptsdev_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
183 ptsdev_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
256 ptsdev_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument
265 struct ucred *active_cred, struct thread *td)
389 ptsdev_poll(struct file *fp, int events, struct ucred *active_cred, argument
534 ptsdev_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, argument
264 ptsdev_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
H A Duipc_mqueue.c2421 mqf_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
2428 mqf_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
2435 mqf_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument
2444 struct ucred *active_cred, struct thread *td)
2450 mqf_poll(struct file *fp, int events, struct ucred *active_cred, argument
2492 mqf_stat(struct file *fp, struct stat *st, struct ucred *active_cred, argument
2511 mqf_chmod(struct file *fp, mode_t mode, struct ucred *active_cred, argument
2521 active_cred, NULL);
2531 mqf_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred, argument
2544 if (((uid != pn->mn_uid && uid != active_cred
2443 mqf_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
[all...]
H A Dkern_event.c1560 kqueue_read(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
1568 kqueue_write(struct file *fp, struct uio *uio, struct ucred *active_cred, argument
1576 kqueue_truncate(struct file *fp, off_t length, struct ucred *active_cred, argument
1586 struct ucred *active_cred, struct thread *td)
1633 kqueue_poll(struct file *fp, int events, struct ucred *active_cred, argument
1660 kqueue_stat(struct file *fp, struct stat *st, struct ucred *active_cred, argument
1585 kqueue_ioctl(struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
/freebsd-10.1-release/sys/security/mac_test/
H A Dmac_test.c1261 test_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument
1265 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED);
1288 test_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument
1292 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED);
1326 test_posixsem_check_stat(struct ucred *active_cred, argument
1330 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED);
1352 test_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, argument
1356 LABEL_CHECK(active_cred->cr_label, MAGIC_CRED);
1428 test_posixshm_check_read(struct ucred *active_cred, argument
1432 LABEL_CHECK(active_cred
1467 test_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) argument
1480 test_posixshm_check_truncate(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) argument
1505 test_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) argument
2644 test_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
2659 test_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
2835 test_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
2865 test_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
[all...]
/freebsd-10.1-release/sys/security/mac_stub/
H A Dmac_stub.c666 stub_posixsem_check_getvalue(struct ucred *active_cred, struct ucred *file_cred, argument
682 stub_posixsem_check_post(struct ucred *active_cred, struct ucred *file_cred, argument
706 stub_posixsem_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument
722 stub_posixsem_check_wait(struct ucred *active_cred, struct ucred *file_cred, argument
760 stub_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument
784 stub_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument
792 stub_posixshm_check_truncate(struct ucred *active_cred, argument
808 stub_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, argument
1483 stub_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, argument
1491 stub_vnode_check_read(struct ucred *active_cred, struc argument
1597 stub_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
1614 stub_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
[all...]
/freebsd-10.1-release/sys/security/mac_bsdextended/
H A Dugidfw_vnode.c277 ugidfw_vnode_check_stat(struct ucred *active_cred, argument
281 return (ugidfw_check_vp(active_cred, vp, MBI_STAT));
H A Dugidfw_internal.h110 int ugidfw_vnode_check_stat(struct ucred *active_cred,
/freebsd-10.1-release/sys/security/mac_biba/
H A Dmac_biba.c1666 biba_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, argument
1674 subj = SLOT(active_cred->cr_label);
1684 biba_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, argument
1692 subj = SLOT(active_cred->cr_label);
1762 biba_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument
1770 subj = SLOT(active_cred->cr_label);
1816 biba_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument
1824 subj = SLOT(active_cred->cr_label);
1834 biba_posixshm_check_truncate(struct ucred *active_cred, argument
1842 subj = SLOT(active_cred
1870 biba_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *vp, struct label *shmlabel) argument
3166 biba_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
3184 biba_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
3467 biba_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
3509 biba_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
[all...]
/freebsd-10.1-release/sys/security/mac_mls/
H A Dmac_mls.c1522 mls_posixsem_check_rdonly(struct ucred *active_cred, struct ucred *file_cred, argument
1530 subj = SLOT(active_cred->cr_label);
1576 mls_posixsem_check_write(struct ucred *active_cred, struct ucred *file_cred, argument
1584 subj = SLOT(active_cred->cr_label);
1654 mls_posixshm_check_read(struct ucred *active_cred, struct ucred *file_cred, argument
1662 subj = SLOT(active_cred->cr_label);
1708 mls_posixshm_check_stat(struct ucred *active_cred, struct ucred *file_cred, argument
1716 subj = SLOT(active_cred->cr_label);
1726 mls_posixshm_check_truncate(struct ucred *active_cred, argument
1734 subj = SLOT(active_cred
1762 mls_posixshm_check_write(struct ucred *active_cred, struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) argument
2791 mls_vnode_check_poll(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
2809 mls_vnode_check_read(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
3092 mls_vnode_check_stat(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
3134 mls_vnode_check_write(struct ucred *active_cred, struct ucred *file_cred, struct vnode *vp, struct label *vplabel) argument
[all...]
/freebsd-10.1-release/sys/opencrypto/
H A Dcryptodev.c327 struct ucred *active_cred,
339 struct ucred *active_cred,
368 struct ucred *active_cred,
586 error = cryptodev_op(cse, cop, active_cred, td);
654 struct ucred *active_cred,
964 struct ucred *active_cred,
984 struct ucred *active_cred,
324 cryptof_rw( struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) argument
336 cryptof_truncate( struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) argument
364 cryptof_ioctl( struct file *fp, u_long cmd, void *data, struct ucred *active_cred, struct thread *td) argument
651 cryptodev_op( struct csession *cse, struct crypt_op *cop, struct ucred *active_cred, struct thread *td) argument
961 cryptof_poll( struct file *fp, int events, struct ucred *active_cred, struct thread *td) argument
981 cryptof_stat( struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) argument
/freebsd-10.1-release/sys/ofed/include/linux/
H A Dlinux_compat.c476 linux_file_read(struct file *file, struct uio *uio, struct ucred *active_cred, argument
505 linux_file_poll(struct file *file, int events, struct ucred *active_cred, argument

Completed in 198 milliseconds

12