/netbsd/sys/kern/ |
H A D | kern_descrip.c | 870 KASSERT(fp->f_cred != NULL); in closef() 1140 if (__predict_false(cred != fp->f_cred)) { in fd_allocfile() 1141 kauth_cred_free(fp->f_cred); in fd_allocfile() 1143 fp->f_cred = cred; in fd_allocfile() 1221 KASSERT(fp->f_cred != NULL); in fd_abort() 1242 fp->f_cred = curlwp->l_cred; in file_ctor() 1243 kauth_cred_hold(fp->f_cred); in file_ctor() 1260 kauth_cred_free(fp->f_cred); in file_dtor() 2351 COND_SET_PTR(fp->f_cred, fpsrc->f_cred, allowaddr); in fill_file() 2380 kp->ki_fuid = kauth_cred_geteuid(fp->f_cred); in fill_file2() [all …]
|
H A D | sys_generic.c | 156 error = (*fp->f_ops->fo_read)(fp, offset, &auio, fp->f_cred, flags); in dofileread() 274 error = (*fp->f_ops->fo_read)(fp, offset, &auio, fp->f_cred, flags); in do_filereadv() 352 error = (*fp->f_ops->fo_write)(fp, offset, &auio, fp->f_cred, flags); in dofilewrite() 476 error = (*fp->f_ops->fo_write)(fp, offset, &auio, fp->f_cred, flags); in do_filewritev()
|
H A D | sys_aio.c | 391 &auio, fp->f_cred, FOF_UPDATE_OFFSET); in aio_process() 405 &auio, fp->f_cred, FOF_UPDATE_OFFSET); in aio_process() 432 error = VOP_FSYNC(vp, fp->f_cred, in aio_process() 435 error = VOP_FSYNC(vp, fp->f_cred, in aio_process()
|
H A D | sys_memfd.c | 298 st->st_uid = kauth_cred_geteuid(fp->f_cred); in memfd_stat() 299 st->st_gid = kauth_cred_getegid(fp->f_cred); in memfd_stat()
|
H A D | sys_eventfd.c | 400 st->st_uid = kauth_cred_geteuid(fp->f_cred); in eventfd_fop_stat() 401 st->st_gid = kauth_cred_getegid(fp->f_cred); in eventfd_fop_stat()
|
H A D | sys_timerfd.c | 373 st->st_uid = kauth_cred_geteuid(fp->f_cred); in timerfd_fop_stat() 374 st->st_gid = kauth_cred_getegid(fp->f_cred); in timerfd_fop_stat()
|
H A D | kern_drvctl.c | 433 st->st_uid = kauth_cred_geteuid(fp->f_cred); in drvctl_stat() 434 st->st_gid = kauth_cred_getegid(fp->f_cred); in drvctl_stat()
|
H A D | vfs_vnops.c | 609 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, cookies, in vn_readdir() 1158 kauth_cred_t cred = fp->f_cred; in vn_seek() 1355 error = VOP_SETATTR(vp, &vattr, fp->f_cred); in vn_truncate() 1417 return vn_close(fp->f_vnode, fp->f_flag, fp->f_cred); in vn_closefile()
|
H A D | sys_pipe.c | 880 ub->st_uid = kauth_cred_geteuid(fp->f_cred); in pipe_stat() 881 ub->st_gid = kauth_cred_getegid(fp->f_cred); in pipe_stat()
|
H A D | sys_mqueue.c | 336 st->st_uid = kauth_cred_geteuid(fp->f_cred); in mq_stat_fop() 337 st->st_gid = kauth_cred_getegid(fp->f_cred); in mq_stat_fop()
|
/netbsd/sys/fs/nfs/common/ |
H A D | nfsdport.h | 96 #define NFSFPCRED(f) ((f)->f_cred)
|
/netbsd/sys/external/bsd/drm2/drm/ |
H A D | drm_cdevsw.c | 505 st->st_uid = kauth_cred_geteuid(fp->f_cred); in drm_stat() 506 st->st_gid = kauth_cred_getegid(fp->f_cred); in drm_stat()
|
/netbsd/sys/sys/ |
H A D | file.h | 141 kauth_cred_t f_cred; /* creds associated with descriptor */ member
|
/netbsd/sys/dev/putter/ |
H A D | putter.c | 436 st->st_uid = kauth_cred_geteuid(fp->f_cred); in putter_fop_stat() 437 st->st_gid = kauth_cred_getegid(fp->f_cred); in putter_fop_stat()
|
/netbsd/sys/compat/linux32/common/ |
H A D | linux32_dirent.c | 167 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in linux32_sys_getdents()
|
/netbsd/sys/dev/dmover/ |
H A D | dmover_io.c | 611 st->st_uid = kauth_cred_geteuid(fp->f_cred); in dmio_stat() 612 st->st_gid = kauth_cred_getegid(fp->f_cred); in dmio_stat()
|
/netbsd/sys/fs/union/ |
H A D | union_subr.c | 1213 error = VOP_GETATTR(vp, &va, fp->f_cred); in union_readdirhook() 1221 error = VOP_OPEN(lvp, FREAD, fp->f_cred); in union_readdirhook() 1229 error = vn_close(vp, FREAD, fp->f_cred); in union_readdirhook()
|
/netbsd/sys/dev/pad/ |
H A D | pad.c | 486 st->st_uid = kauth_cred_geteuid(fp->f_cred); in fops_pad_stat() 487 st->st_gid = kauth_cred_getegid(fp->f_cred); in fops_pad_stat()
|
/netbsd/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | dmu_diff.c | 85 &auio, da->da_fp->f_cred, flags); in write_bytes()
|
/netbsd/sys/compat/common/ |
H A D | vfs_syscalls_12.c | 179 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in compat_12_sys_getdirentries()
|
H A D | vfs_syscalls_43.c | 397 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in compat_43_sys_getdirentries()
|
H A D | vfs_syscalls_30.c | 256 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in compat_30_sys_getdents()
|
/netbsd/sys/rump/kern/lib/libsys_sunos/ |
H A D | rump_sunos_compat.c | 305 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in rump_sunos_sys_getdents()
|
/netbsd/sys/net/ |
H A D | if_tap.c | 953 st->st_uid = kauth_cred_geteuid(fp->f_cred); in tap_fops_stat() 954 st->st_gid = kauth_cred_getegid(fp->f_cred); in tap_fops_stat()
|
/netbsd/sys/compat/linux/common/ |
H A D | linux_file64.c | 461 error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, &cookiebuf, in linux_sys_getdents64()
|