Searched refs:fsec (Results 1 - 6 of 6) sorted by relevance
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | kern_authorization.c | 934 kauth_filesec_t fsec; local 939 fsec = NULL; 956 if ((fsec = kauth_filesec_alloc(count)) == NULL) { 961 if ((error = copyin(xsecurity, (caddr_t)fsec, copysize)) != 0) 965 if (fsec->fsec_magic != KAUTH_FILESEC_MAGIC) { 973 if ((fsec->fsec_entrycount != KAUTH_FILESEC_NOACL) && 974 (fsec->fsec_entrycount > count)) { 975 if (fsec->fsec_entrycount > KAUTH_ACL_MAX_ENTRIES) { 980 count = fsec->fsec_entrycount; 981 kauth_filesec_free(fsec); 1075 kauth_filesec_acl_setendian(int kendian, kauth_filesec_t fsec, kauth_acl_t acl) argument [all...] |
H A D | kern_descrip.c | 1912 kauth_filesec_t fsec; local 1925 fsec = KAUTH_FILESEC_NONE; 1941 error = vn_stat((vnode_t)data, sbptr, &fsec, isstat64, ctx); 2009 if (fsec == KAUTH_FILESEC_NONE) { 2019 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { 2025 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) 2026 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); 2031 if (fsec != NULL) 2032 kauth_filesec_free(fsec); [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/ |
H A D | vfs_vnops.c | 880 kauth_filesec_t fsec; local 993 fsec = kauth_filesec_alloc(va.va_acl->acl_entrycount); 995 fsec = kauth_filesec_alloc(0); 997 if (fsec == NULL) { 1001 fsec->fsec_magic = KAUTH_FILESEC_MAGIC; 1003 fsec->fsec_owner = va.va_uuuid; 1005 fsec->fsec_owner = kauth_null_guid; 1008 fsec->fsec_group = va.va_guuid; 1010 fsec->fsec_group = kauth_null_guid; 1013 bcopy(va.va_acl, &(fsec [all...] |
H A D | kpi_vfs.c | 1881 kauth_filesec_t fsec; local 1889 fsec = NULL; 1918 if (((fsec = kauth_filesec_alloc(fsec_size)) == NULL) || 1920 uio_addiov(fsec_uio, CAST_USER_ADDR_T(fsec), xsize)) { 1955 if (fsec->fsec_magic != host_fsec_magic) { 1961 host_acl_entrycount = ntohl(fsec->fsec_acl.acl_entrycount); 1973 kauth_filesec_acl_setendian(KAUTH_ENDIAN_HOST, fsec, NULL); 1975 *fsecp = fsec; 1976 fsec = NULL; 1979 if (fsec ! 2020 vnode_set_filesec(vnode_t vp, kauth_filesec_t fsec, kauth_acl_t acl, vfs_context_t ctx) argument 2071 kauth_filesec_t fsec; local 2396 kauth_filesec_t fsec; local [all...] |
H A D | vfs_attrlist.c | 1349 struct kauth_filesec fsec; local 1353 fsec.fsec_magic = KAUTH_FILESEC_MAGIC; 1354 fsec.fsec_owner = kauth_null_guid; 1355 fsec.fsec_group = kauth_null_guid; 1356 attrlist_pack_variable2(&ab, &fsec, ((char *)&fsec.fsec_acl - (char *)&fsec), va.va_acl, KAUTH_ACL_COPYSIZE(va.va_acl));
|
H A D | vfs_syscalls.c | 3598 kauth_filesec_t fsec; local 3610 fsec = KAUTH_FILESEC_NONE; 3629 error = vn_stat(ndp->ni_vp, statptr, (xsecurity != USER_ADDR_NULL ? &fsec : NULL), isstat64, ctx); 3688 if (fsec == KAUTH_FILESEC_NONE) { 3698 if (susize(xsecurity_size, KAUTH_FILESEC_COPYSIZE(fsec)) != 0) { 3704 if (xsecurity_bufsize >= KAUTH_FILESEC_COPYSIZE(fsec)) 3705 error = copyout(fsec, xsecurity, KAUTH_FILESEC_COPYSIZE(fsec)); 3709 if (fsec != KAUTH_FILESEC_NONE) 3710 kauth_filesec_free(fsec); 5761 umask1(proc_t p, int newmask, __unused kauth_filesec_t fsec, register_t *retval) argument [all...] |
Completed in 122 milliseconds