Searched refs:fsec (Results 1 – 6 of 6) sorted by relevance
| /xnu-12377.1.9/bsd/kern/ |
| H A D | kern_authorization.c | 967 kauth_filesec_t fsec; in kauth_copyinfilesec() local 990 if ((fsec = kauth_filesec_alloc((int)count)) == NULL) { in kauth_copyinfilesec() 999 memcpy(fsec, &tmp, KAUTH_FILESEC_SIZE(0)); in kauth_copyinfilesec() 1002 fsec->fsec_acl.acl_ace, copysize - KAUTH_FILESEC_SIZE(0))) != 0)) { in kauth_copyinfilesec() 1003 kauth_filesec_free(fsec); in kauth_copyinfilesec() 1007 *xsecdestpp = fsec; in kauth_copyinfilesec() 1008 AUDIT_ARG(opaque, fsec, copysize); in kauth_copyinfilesec() 1095 kauth_filesec_acl_setendian(int kendian, kauth_filesec_t fsec, kauth_acl_t acl) in kauth_filesec_acl_setendian() argument 1108 acl = &fsec->fsec_acl; in kauth_filesec_acl_setendian() 1120 if (fsec->fsec_magic != invert_magic) { in kauth_filesec_acl_setendian() [all …]
|
| H A D | kern_descrip.c | 5495 kauth_filesec_t fsec; in fstat() local 5508 fsec = KAUTH_FILESEC_NONE; in fstat() 5524 error = vn_stat((vnode_t)data, sbptr, &fsec, isstat64, 0, ctx); in fstat() 5592 if (fsec == KAUTH_FILESEC_NONE) { in fstat() 5602 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { in fstat() 5608 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) { in fstat() 5609 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); in fstat() 5615 if (fsec != NULL) { in fstat() 5616 kauth_filesec_free(fsec); in fstat()
|
| /xnu-12377.1.9/bsd/vfs/ |
| H A D | kpi_vfs.c | 2550 kauth_filesec_t fsec; in vnode_get_filesec() local 2558 fsec = NULL; in vnode_get_filesec() 2593 if (((fsec = kauth_filesec_alloc((int)fsec_size)) == NULL) || in vnode_get_filesec() 2595 uio_addiov(fsec_uio, CAST_USER_ADDR_T(fsec), xsize)) { in vnode_get_filesec() 2630 if (fsec->fsec_magic != host_fsec_magic) { in vnode_get_filesec() 2636 host_acl_entrycount = ntohl(fsec->fsec_acl.acl_entrycount); in vnode_get_filesec() 2648 kauth_filesec_acl_setendian(KAUTH_ENDIAN_HOST, fsec, NULL); in vnode_get_filesec() 2650 *fsecp = fsec; in vnode_get_filesec() 2651 fsec = NULL; in vnode_get_filesec() 2654 if (fsec != NULL) { in vnode_get_filesec() [all …]
|
| H A D | vfs_vnops.c | 1510 kauth_filesec_t fsec; in vn_stat_noauth() local 1644 fsec = kauth_filesec_alloc(va.va_acl->acl_entrycount); in vn_stat_noauth() 1646 fsec = kauth_filesec_alloc(0); in vn_stat_noauth() 1648 if (fsec == NULL) { in vn_stat_noauth() 1652 fsec->fsec_magic = KAUTH_FILESEC_MAGIC; in vn_stat_noauth() 1654 fsec->fsec_owner = va.va_uuuid; in vn_stat_noauth() 1656 fsec->fsec_owner = kauth_null_guid; in vn_stat_noauth() 1659 fsec->fsec_group = va.va_guuid; in vn_stat_noauth() 1661 fsec->fsec_group = kauth_null_guid; in vn_stat_noauth() 1664 __nochk_bcopy(va.va_acl, &(fsec->fsec_acl), KAUTH_ACL_COPYSIZE(va.va_acl)); in vn_stat_noauth() [all …]
|
| H A D | vfs_attrlist.c | 2053 struct kauth_filesec fsec; in attr_pack_common() local 2057 fsec.fsec_magic = KAUTH_FILESEC_MAGIC; in attr_pack_common() 2058 fsec.fsec_owner = kauth_null_guid; in attr_pack_common() 2059 fsec.fsec_group = kauth_null_guid; in attr_pack_common() 2060 …attrlist_pack_variable2(abp, &fsec, __offsetof(struct kauth_filesec, fsec_acl), vap->va_acl, KAUTH… in attr_pack_common()
|
| H A D | vfs_syscalls.c | 7356 kauth_filesec_t fsec = KAUTH_FILESEC_NONE; in fstatat_internal() local 7423 error = vn_stat(ndp->ni_vp, statptr, (xsecurity != USER_ADDR_NULL ? &fsec : NULL), in fstatat_internal() 7491 if (fsec == KAUTH_FILESEC_NONE) { in fstatat_internal() 7501 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { in fstatat_internal() 7507 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) { in fstatat_internal() 7508 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); in fstatat_internal() 7516 if (fsec != KAUTH_FILESEC_NONE) { in fstatat_internal() 7517 kauth_filesec_free(fsec); in fstatat_internal() 11073 umask1(proc_t p, int newmask, __unused kauth_filesec_t fsec, int32_t *retval) in umask1() argument
|