Home
last modified time | relevance | path

Searched refs:vfs_context_ucred (Results 1 – 25 of 36) sorted by relevance

12

/xnu-12377.41.6/security/
H A Dmac_vfs.c458 cred = vfs_context_ucred(ctx); in mac_vnode_notify_create()
482 cred = vfs_context_ucred(ctx); in mac_vnode_notify_rename()
503 cred = vfs_context_ucred(ctx); in mac_vnode_notify_open()
524 cred = vfs_context_ucred(ctx); in mac_vnode_notify_link()
544 cred = vfs_context_ucred(ctx); in mac_vnode_notify_deleteextattr()
564 cred = vfs_context_ucred(ctx); in mac_vnode_notify_setacl()
584 cred = vfs_context_ucred(ctx); in mac_vnode_notify_setattrlist()
604 cred = vfs_context_ucred(ctx); in mac_vnode_notify_setextattr()
624 cred = vfs_context_ucred(ctx); in mac_vnode_notify_setflags()
644 cred = vfs_context_ucred(ctx); in mac_vnode_notify_setmode()
[all …]
H A Dmac_base.c1423 error = mac_file_check_set(vfs_context_ucred(ctx), fp->fp_glob, input, len); in __mac_set_fd()
/xnu-12377.41.6/bsd/kern/
H A Dkern_acct.c162 if ((error = suser(vfs_context_ucred(ctx), &p->p_acflag))) { in acct()
176 error = mac_system_check_acct(vfs_context_ucred(ctx), nd.ni_vp); in acct()
192 error = mac_system_check_acct(vfs_context_ucred(ctx), NULL); in acct()
H A Dkern_core.c125 kauth_cred_t cred = vfs_context_ucred(ctx); in is_coredump_eligible()
287 kauth_cred_t cred = vfs_context_ucred(ctx); in note_addrable_bits()
382 kauth_cred_t cred = vfs_context_ucred(ctx); in coredump()
H A Dkern_symfile.c672 vfs_context_ucred(ref->ctx), (int *) 0, in kern_write_file()
683 vfs_context_ucred(ref->ctx), (int *) 0, in kern_read_file()
H A Dchunklist.c197 kauth_cred_t kerncred = vfs_context_ucred(ctx); in validate_root_image()
H A Dkern_shutdown.c416 UIO_SYSSPACE, IO_UNIT | IO_NOAUTH, vfs_context_ucred(ctx), &resid, vfs_context_proc(ctx)); in sd_log()
H A Dsys_pipe.c1264 if (mac_pipe_check_select(vfs_context_ucred(ctx), rpipe, which)) { in pipe_select()
1601 kauth_cred_t cred = vfs_context_ucred(vfs_context_current()); in pipe_kqfilter()
H A Dposix_shm.c1130 vfs_context_ucred(ctx), &pshm->pshm_hdr, in pshm_label_associate()
H A Dimageboot.c593 kauth_cred_t kerncred = vfs_context_ucred(ctx); in imageboot_read_file_internal()
H A Dposix_sem.c1275 vfs_context_ucred(ctx), psem, in psem_label_associate()
H A Dkern_exec.c2182 fdt_exec(p, vfs_context_ucred(imgp->ip_vfs_context), in exec_mach_imgact()
2850 vfs_context_ucred(imgp->ip_vfs_context), in exec_activate_image()
2936 kauth_authorize_fileop(vfs_context_ucred(imgp->ip_vfs_context), in exec_activate_image()
3361 kauth_cred_t p_cred = vfs_context_ucred(imgp->ip_vfs_context); in exec_handle_file_actions()
7347 kauth_cred_t cred = vfs_context_ucred(imgp->ip_vfs_context); in exec_handle_sugid()
/xnu-12377.41.6/bsd/vm/
H A Dvm_compressor_backing_file.c174 UIO_SYSSPACE, IO_NODELOCKED, vfs_context_ucred(ctx), (int *) 0, vfs_context_proc(ctx)); in vm_record_file_write()
263 … IO_SYNC | IO_NODELOCKED | IO_UNIT | IO_NOCACHE | IO_SWAP_DISPATCH, vfs_context_ucred(ctx), (int *… in vm_swapfile_io()
/xnu-12377.41.6/bsd/sys/
H A Dfiledesc.h450 falloc_withinit(p, vfs_context_ucred(__c), __c, rfp, rfd, NULL, NULL); \
H A Dvnode.h1516 kauth_cred_t vfs_context_ucred(vfs_context_t ctx);
/xnu-12377.41.6/bsd/security/audit/
H A Daudit_worker.c259 IO_APPEND | IO_UNIT, vfs_context_ucred(ctx), NULL, in audit_record_write()
/xnu-12377.41.6/bsd/vfs/
H A Dvfs_syscalls.c521 vfs_context_ucred(vctx), /* resid */ NULL, in read_graft_metadata_vp()
1260 if (mp->mnt_vfsstat.f_owner != kauth_cred_getuid(vfs_context_ucred(ctx)) && in mount_common()
1261 (error = suser(vfs_context_ucred(ctx), &p->p_acflag))) { in mount_common()
1274 if ((!kernelmount) && suser(vfs_context_ucred(ctx), NULL)) { in mount_common()
1295 if ((!kernelmount) && suser(vfs_context_ucred(ctx), NULL)) { in mount_common()
1381 mp->mnt_vfsstat.f_owner = kauth_cred_getuid(vfs_context_ucred(ctx)); in mount_common()
1538 if (suser(vfs_context_ucred(ctx), NULL) != 0) { in mount_common()
1607 if (suser(vfs_context_ucred(ctx), NULL) && in mount_common()
2102 (va.va_uid != kauth_cred_getuid(vfs_context_ucred(ctx)) && in prepare_coveredvp()
2350 if (mp->mnt_vfsstat.f_owner != kauth_cred_getuid(vfs_context_ucred(ctx)) && in mount_begin_update()
[all …]
H A Dvfs_vnops.c199 kauth_authorize_fileop(vfs_context_ucred(ctx), KAUTH_FILEOP_OPEN, in vn_open_auth_finish()
1121 error = mac_vnode_check_read(ctx, vfs_context_ucred(ctx), vp); in vn_read_common()
1295 error = mac_vnode_check_write(ctx, vfs_context_ucred(ctx), vp); in vn_write()
1469 ubc_setcred(vp, vfs_context_ucred(ctx)); in vn_write()
H A Dvfs_cache.c1591 ucred = vfs_context_ucred(ctx); in vnode_cache_is_authorized()
1613 ucred = vfs_context_ucred(ctx); in vnode_cache_authorized_action()
1783 ucred = vfs_context_ucred(ctx); in cache_lookup_path()
H A Dvfs_subr.c8687 kauth_authorize_fileop(vfs_context_ucred(ctx), in vn_authorize_renamex_with_paths()
8697 kauth_authorize_fileop(vfs_context_ucred(ctx), in vn_authorize_renamex_with_paths()
8738 kauth_authorize_fileop(vfs_context_ucred(ctx), in vn_authorize_renamex_with_paths()
8932 kauth_cred_getuid(vfs_context_ucred(ctx))); in vnode_attr_authorize_dir_clone()
8947 kauth_cred_getgid(vfs_context_ucred(ctx))); in vnode_attr_authorize_dir_clone()
9000 result = kauth_authorize_action(vnode_scope, vfs_context_ucred(ctx), action, in vnode_authorize()
10619 VATTR_SET(vap, va_uid, kauth_cred_getuid(vfs_context_ucred(ctx))); in vnode_authattr_new_internal()
10648 VATTR_SET(vap, va_gid, kauth_cred_getgid(vfs_context_ucred(ctx))); in vnode_authattr_new_internal()
10699 cred = vfs_context_ucred(ctx); in vnode_authattr_new_internal()
10857 cred = vfs_context_ucred(ctx); in vnode_authattr()
H A Dkpi_vfs.c1711 vfs_context_ucred(vfs_context_t ctx) in vfs_context_ucred() function
1722 return kauth_cred_issuser(vfs_context_ucred(ctx)); in vfs_context_issuser()
2762 nuid = kauth_cred_getuid(vfs_context_ucred(ctx)); in vnode_attr_handle_uid_and_gid()
2781 ngid = kauth_cred_getgid(vfs_context_ucred(ctx)); in vnode_attr_handle_uid_and_gid()
/xnu-12377.41.6/bsd/miscfs/bindfs/
H A Dbind_vfsops.c124 kauth_cred_t cred = vfs_context_ucred(ctx); in bindfs_mount()
/xnu-12377.41.6/bsd/miscfs/nullfs/
H A Dnull_vfsops.c126 kauth_cred_t cred = vfs_context_ucred(ctx); in nullfs_mount()
H A Dnull_vnops.c264 kauth_cred_t cred = vfs_context_ucred(args->a_context); in nullfs_getattr()
/xnu-12377.41.6/iokit/bsddev/
H A DIOKitBSDInit.cpp1297 …UIO_SYSSPACE, IO_SWAP_DISPATCH | IO_SYNC | IO_NOCACHE | IO_UNIT, vfs_context_ucred(vfs_context), N… in IOAccessCoreFileData()

12