| /xnu-12377.41.6/security/ |
| H A D | mac_vfs.c | 458 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 D | mac_base.c | 1423 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 D | kern_acct.c | 162 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 D | kern_core.c | 125 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 D | kern_symfile.c | 672 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 D | chunklist.c | 197 kauth_cred_t kerncred = vfs_context_ucred(ctx); in validate_root_image()
|
| H A D | kern_shutdown.c | 416 UIO_SYSSPACE, IO_UNIT | IO_NOAUTH, vfs_context_ucred(ctx), &resid, vfs_context_proc(ctx)); in sd_log()
|
| H A D | sys_pipe.c | 1264 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 D | posix_shm.c | 1130 vfs_context_ucred(ctx), &pshm->pshm_hdr, in pshm_label_associate()
|
| H A D | imageboot.c | 593 kauth_cred_t kerncred = vfs_context_ucred(ctx); in imageboot_read_file_internal()
|
| H A D | posix_sem.c | 1275 vfs_context_ucred(ctx), psem, in psem_label_associate()
|
| H A D | kern_exec.c | 2182 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 D | vm_compressor_backing_file.c | 174 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 D | filedesc.h | 450 falloc_withinit(p, vfs_context_ucred(__c), __c, rfp, rfd, NULL, NULL); \
|
| H A D | vnode.h | 1516 kauth_cred_t vfs_context_ucred(vfs_context_t ctx);
|
| /xnu-12377.41.6/bsd/security/audit/ |
| H A D | audit_worker.c | 259 IO_APPEND | IO_UNIT, vfs_context_ucred(ctx), NULL, in audit_record_write()
|
| /xnu-12377.41.6/bsd/vfs/ |
| H A D | vfs_syscalls.c | 521 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 D | vfs_vnops.c | 199 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 D | vfs_cache.c | 1591 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 D | vfs_subr.c | 8687 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 D | kpi_vfs.c | 1711 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 D | bind_vfsops.c | 124 kauth_cred_t cred = vfs_context_ucred(ctx); in bindfs_mount()
|
| /xnu-12377.41.6/bsd/miscfs/nullfs/ |
| H A D | null_vfsops.c | 126 kauth_cred_t cred = vfs_context_ucred(ctx); in nullfs_mount()
|
| H A D | null_vnops.c | 264 kauth_cred_t cred = vfs_context_ucred(args->a_context); in nullfs_getattr()
|
| /xnu-12377.41.6/iokit/bsddev/ |
| H A D | IOKitBSDInit.cpp | 1297 …UIO_SYSSPACE, IO_SWAP_DISPATCH | IO_SYNC | IO_NOCACHE | IO_UNIT, vfs_context_ucred(vfs_context), N… in IOAccessCoreFileData()
|