Lines Matching refs:ectx
125 struct vfs_context *ectx = ctx; in nullfs_get_patched_context() local
129 ectx = vfs_context_create(ctx); in nullfs_get_patched_context()
130 ucred = kauth_cred_derive(ectx->vc_ucred, in nullfs_get_patched_context()
135 kauth_cred_unref(&ectx->vc_ucred); in nullfs_get_patched_context()
136 ectx->vc_ucred = ucred; in nullfs_get_patched_context()
138 return ectx; in nullfs_get_patched_context()
165 vfs_context_t ectx = nullfs_get_patched_context(null_mp, args->a_context); in nullfs_special_getattr() local
179 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_special_getattr()
184 int error = vnode_getattr(checkvp, &covered_rootattr, ectx); in nullfs_special_getattr()
190 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_special_getattr()
255 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_special_getattr()
274 vfs_context_t ectx = nullfs_get_patched_context(null_mp, args->a_context); in nullfs_getattr() local
278 error = VNOP_GETATTR(lowervp, args->a_vap, ectx); in nullfs_getattr()
297 if (vnode_authorize(lowervp, NULL, KAUTH_VNODE_GENERIC_READ_BITS, ectx) == 0) { in nullfs_getattr()
305 if (vnode_authorize(lowervp, NULL, KAUTH_VNODE_GENERIC_EXECUTE_BITS, ectx) == 0) { in nullfs_getattr()
324 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_getattr()
341 vfs_context_t ectx = nullfs_get_patched_context(null_mp, args->a_context); in nullfs_open() local
346 error = VNOP_OPEN(lvp, args->a_mode, ectx); in nullfs_open()
350 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_open()
368 vfs_context_t ectx = nullfs_get_patched_context(null_mp, args->a_context); in nullfs_close() local
374 error = VNOP_CLOSE(lvp, args->a_fflag, ectx); in nullfs_close()
378 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_close()
439 vfs_context_t ectx = nullfs_get_patched_context(null_mp, ap->a_context); in null_special_lookup() local
525 error = null_get_lowerparent(null_mp->nullm_lowerrootvp, &ldvp, ectx); in null_special_lookup()
528 error = VNOP_LOOKUP(ldvp, &lvp, cnp, ectx); in null_special_lookup()
547 nullfs_cleanup_patched_context(null_mp, ectx); in null_special_lookup()
568 vfs_context_t ectx; in null_lookup() local
609 ectx = nullfs_get_patched_context(null_mp, ap->a_context); in null_lookup()
619 nullfs_cleanup_patched_context(null_mp, ectx); in null_lookup()
623 error = VNOP_LOOKUP(ldvp, &lvp, cnp, ectx); in null_lookup()
643 nullfs_cleanup_patched_context(null_mp, ectx); in null_lookup()
844 vfs_context_t ectx = nullfs_get_patched_context(null_mp, ap->a_context); in nullfs_readdir() local
849 error = VNOP_READDIR(lvp, ap->a_uio, ap->a_flags, ap->a_eofflag, ap->a_numdirent, ectx); in nullfs_readdir()
853 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_readdir()
869 vfs_context_t ectx = nullfs_get_patched_context(null_mp, ap->a_context); in nullfs_readlink() local
875 error = VNOP_READLINK(lvp, ap->a_uio, ectx); in nullfs_readlink()
883 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_readlink()
914 vfs_context_t ectx = nullfs_get_patched_context(null_mp, args->a_context); in nullfs_mmap() local
919 error = VNOP_MMAP(lvp, args->a_fflags, ectx); in nullfs_mmap()
923 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_mmap()
940 vfs_context_t ectx = nullfs_get_patched_context(null_mp, args->a_context); in nullfs_mnomap() local
945 error = VNOP_MNOMAP(lvp, ectx); in nullfs_mnomap()
949 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_mnomap()
966 vfs_context_t ectx = nullfs_get_patched_context(null_mp, args->a_context); in nullfs_getxattr() local
971 error = VNOP_GETXATTR(lvp, args->a_name, args->a_uio, args->a_size, args->a_options, ectx); in nullfs_getxattr()
975 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_getxattr()
992 vfs_context_t ectx = nullfs_get_patched_context(null_mp, args->a_context); in nullfs_listxattr() local
997 error = VNOP_LISTXATTR(lvp, args->a_uio, args->a_size, args->a_options, ectx); in nullfs_listxattr()
1001 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_listxattr()
1021 vfs_context_t ectx = nullfs_get_patched_context(null_mp, ap->a_context); in nullfs_pagein() local
1057 error = VNOP_READ(lvp, auio, ((ap->a_flags & UPL_IOSYNC) ? IO_SYNC : 0), ectx); in nullfs_pagein()
1104 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_pagein()
1121 vfs_context_t ectx = nullfs_get_patched_context(null_mp, ap->a_context); in nullfs_read() local
1143 error = VNOP_READ(lvp, ap->a_uio, ap->a_ioflag, ectx); in nullfs_read()
1151 nullfs_cleanup_patched_context(null_mp, ectx); in nullfs_read()