Lines Matching refs:fsec
967 kauth_filesec_t fsec;
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);
1020 if (fsec)
1021 kauth_filesec_free(fsec);
1023 *xsecdestpp = fsec;
1024 AUDIT_ARG(opaque, fsec, copysize);
1094 * ACL interior to 'fsec' instead. If the endianness doesn't change, then
1099 * fsec The filesec to convert.
1109 kauth_filesec_acl_setendian(int kendian, kauth_filesec_t fsec, kauth_acl_t acl)
1119 /* If no ACL, use ACL interior to 'fsec' instead */
1121 acl = &fsec->fsec_acl;
1132 if (fsec->fsec_magic != invert_magic)
1138 if (fsec->fsec_magic != compare_magic)
1146 fsec->fsec_magic = ntohl(fsec->fsec_magic);