Lines Matching defs:fsec
934 kauth_filesec_t fsec;
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);
987 if (fsec)
988 kauth_filesec_free(fsec);
990 *xsecdestpp = fsec;
1060 * ACL interior to 'fsec' instead. If the endianness doesn't change, then
1065 * fsec The filesec to convert.
1075 kauth_filesec_acl_setendian(int kendian, kauth_filesec_t fsec, kauth_acl_t acl)
1085 /* If no ACL, use ACL interior to 'fsec' instead */
1087 acl = &fsec->fsec_acl;
1098 if (fsec->fsec_magic != invert_magic)
1104 if (fsec->fsec_magic != compare_magic)
1112 fsec->fsec_magic = ntohl(fsec->fsec_magic);