Searched refs:fsec (Results 1 - 6 of 6) sorted by relevance
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_authorization.c | 967 kauth_filesec_t fsec; local 972 fsec = NULL; 989 if ((fsec = kauth_filesec_alloc(count)) == NULL) { 994 if ((error = copyin(xsecurity, (caddr_t)fsec, copysize)) != 0) 998 if (fsec->fsec_magic != KAUTH_FILESEC_MAGIC) { 1006 if ((fsec->fsec_entrycount != KAUTH_FILESEC_NOACL) && 1007 (fsec->fsec_entrycount > count)) { 1008 if (fsec->fsec_entrycount > KAUTH_ACL_MAX_ENTRIES) { 1013 count = fsec->fsec_entrycount; 1014 kauth_filesec_free(fsec); 1109 kauth_filesec_acl_setendian(int kendian, kauth_filesec_t fsec, kauth_acl_t acl) argument [all...] |
H A D | kern_descrip.c | 2436 kauth_filesec_t fsec; local 2449 fsec = KAUTH_FILESEC_NONE; 2465 error = vn_stat((vnode_t)data, sbptr, &fsec, isstat64, ctx); 2536 if (fsec == KAUTH_FILESEC_NONE) { 2546 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { 2552 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) 2553 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); 2558 if (fsec != NULL) 2559 kauth_filesec_free(fsec); [all...] |
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_vnops.c | 1093 kauth_filesec_t fsec; local 1206 fsec = kauth_filesec_alloc(va.va_acl->acl_entrycount); 1208 fsec = kauth_filesec_alloc(0); 1210 if (fsec == NULL) { 1214 fsec->fsec_magic = KAUTH_FILESEC_MAGIC; 1216 fsec->fsec_owner = va.va_uuuid; 1218 fsec->fsec_owner = kauth_null_guid; 1221 fsec->fsec_group = va.va_guuid; 1223 fsec->fsec_group = kauth_null_guid; 1226 bcopy(va.va_acl, &(fsec [all...] |
H A D | kpi_vfs.c | 2237 kauth_filesec_t fsec; local 2245 fsec = NULL; 2274 if (((fsec = kauth_filesec_alloc(fsec_size)) == NULL) || 2276 uio_addiov(fsec_uio, CAST_USER_ADDR_T(fsec), xsize)) { 2311 if (fsec->fsec_magic != host_fsec_magic) { 2317 host_acl_entrycount = ntohl(fsec->fsec_acl.acl_entrycount); 2329 kauth_filesec_acl_setendian(KAUTH_ENDIAN_HOST, fsec, NULL); 2331 *fsecp = fsec; 2332 fsec = NULL; 2335 if (fsec ! 2376 vnode_set_filesec(vnode_t vp, kauth_filesec_t fsec, kauth_acl_t acl, vfs_context_t ctx) argument 2427 kauth_filesec_t fsec; local 2752 kauth_filesec_t fsec; local [all...] |
H A D | vfs_attrlist.c | 1728 struct kauth_filesec fsec; local 1732 fsec.fsec_magic = KAUTH_FILESEC_MAGIC; 1733 fsec.fsec_owner = kauth_null_guid; 1734 fsec.fsec_group = kauth_null_guid; 1735 attrlist_pack_variable2(&ab, &fsec, __offsetof(struct kauth_filesec, fsec_acl), va.va_acl, KAUTH_ACL_COPYSIZE(va.va_acl));
|
H A D | vfs_syscalls.c | 4686 kauth_filesec_t fsec; local 4698 fsec = KAUTH_FILESEC_NONE; 4715 error = vn_stat(ndp->ni_vp, statptr, (xsecurity != USER_ADDR_NULL ? &fsec : NULL), isstat64, ctx); 4775 if (fsec == KAUTH_FILESEC_NONE) { 4785 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { 4791 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) 4792 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); 4796 if (fsec != KAUTH_FILESEC_NONE) 4797 kauth_filesec_free(fsec); 7055 umask1(proc_t p, int newmask, __unused kauth_filesec_t fsec, int32_t *retval) argument [all...] |
Completed in 105 milliseconds