Lines Matching +full:0 +full:x0010000

55 #define	ACL_SYNCHRONIZE_SET_DENY		0x0000001
56 #define ACL_SYNCHRONIZE_SET_ALLOW 0x0000002
57 #define ACL_SYNCHRONIZE_ERR_DENY 0x0000004
58 #define ACL_SYNCHRONIZE_ERR_ALLOW 0x0000008
60 #define ACL_WRITE_OWNER_SET_DENY 0x0000010
61 #define ACL_WRITE_OWNER_SET_ALLOW 0x0000020
62 #define ACL_WRITE_OWNER_ERR_DENY 0x0000040
63 #define ACL_WRITE_OWNER_ERR_ALLOW 0x0000080
65 #define ACL_DELETE_SET_DENY 0x0000100
66 #define ACL_DELETE_SET_ALLOW 0x0000200
67 #define ACL_DELETE_ERR_DENY 0x0000400
68 #define ACL_DELETE_ERR_ALLOW 0x0000800
70 #define ACL_WRITE_ATTRS_OWNER_SET_DENY 0x0001000
71 #define ACL_WRITE_ATTRS_OWNER_SET_ALLOW 0x0002000
72 #define ACL_WRITE_ATTRS_OWNER_ERR_DENY 0x0004000
73 #define ACL_WRITE_ATTRS_OWNER_ERR_ALLOW 0x0008000
75 #define ACL_WRITE_ATTRS_WRITER_SET_DENY 0x0010000
76 #define ACL_WRITE_ATTRS_WRITER_SET_ALLOW 0x0020000
77 #define ACL_WRITE_ATTRS_WRITER_ERR_DENY 0x0040000
78 #define ACL_WRITE_ATTRS_WRITER_ERR_ALLOW 0x0080000
80 #define ACL_WRITE_NAMED_WRITER_SET_DENY 0x0100000
81 #define ACL_WRITE_NAMED_WRITER_SET_ALLOW 0x0200000
82 #define ACL_WRITE_NAMED_WRITER_ERR_DENY 0x0400000
83 #define ACL_WRITE_NAMED_WRITER_ERR_ALLOW 0x0800000
85 #define ACL_READ_NAMED_READER_SET_DENY 0x1000000
86 #define ACL_READ_NAMED_READER_SET_ALLOW 0x2000000
87 #define ACL_READ_NAMED_READER_ERR_DENY 0x4000000
88 #define ACL_READ_NAMED_READER_ERR_ALLOW 0x8000000
110 #define ACE_MASK_UNDEFINED 0x80000000
160 * returns (-1 = less than, 0 = equal, 1 = greater than
174 ASSERT(((uintptr_t)v & 0x3) == 0 && (s & 0x3) == 0); in ksort()
175 ASSERT(s > 0); in ksort()
176 for (g = n / 2; g > 0; g /= 2) { in ksort()
178 for (j = i - g; j >= 0 && in ksort()
183 for (ii = 0; ii < s / 4; ii++) { in ksort()
196 * 0 (equal)
221 return (0); in cmp2acls()
245 return (0); in cacl_malloc()
251 return (0); in cacl_malloc()
271 if (cacl_malloc((void **)&aclp, sizeof (acl_t)) != 0) in acl_alloc()
275 aclp->acl_cnt = 0; in acl_alloc()
315 uint32_t access_mask = 0; in access_mask_set()
317 int synchronize_set = 0, write_owner_set = 0; in access_mask_set()
318 int delete_set = 0, write_attrs_set = 0; in access_mask_set()
319 int read_named_set = 0, write_named_set = 0; in access_mask_set()
382 uint32_t access = 0; in mode_to_ace_access()
383 int haswriteperm = 0; in mode_to_ace_access()
384 int hasreadperm = 0; in mode_to_ace_access()
463 int error = 0; in ln_aent_preprocess()
465 int curtype = 0; in ln_aent_preprocess()
467 *hasmask = 0; in ln_aent_preprocess()
469 *needsort = 0; in ln_aent_preprocess()
470 *numuser = 0; in ln_aent_preprocess()
471 *numgroup = 0; in ln_aent_preprocess()
473 for (i = 0; i < n; i++) { in ln_aent_preprocess()
510 int error = 0; in ln_aent_to_ace()
513 int resultsize = 0; in ln_aent_to_ace()
514 int i, groupi = 0, skip; in ln_aent_to_ace()
520 if (error != 0) in ln_aent_to_ace()
540 if (cacl_malloc((void **)&result, resultsize * sizeof (ace_t)) != 0) in ln_aent_to_ace()
545 for (i = 0; i < n; i++) { in ln_aent_to_ace()
557 acep->a_flags = 0; in ln_aent_to_ace()
580 isdir, 0, 0); in ln_aent_to_ace()
664 if (error != 0) { in ln_aent_to_ace()
665 if ((result != NULL) && (resultsize > 0)) { in ln_aent_to_ace()
679 int acecnt = 0; in convert_aent_to_ace()
680 int dfacecnt = 0; in convert_aent_to_ace()
681 int dfaclstart = 0; in convert_aent_to_ace()
682 int dfaclcnt = 0; in convert_aent_to_ace()
690 for (i = 0, aclp = aclentp; i < aclcnt; aclp++, i++) { in convert_aent_to_ace()
719 if (dfacecnt != 0) { in convert_aent_to_ace()
734 return (0); in convert_aent_to_ace()
740 int error = 0; in ace_mask_to_mode()
741 o_mode_t mode = 0; in ace_mask_to_mode()
753 if (bits != 0) { in ace_mask_to_mode()
785 acevals_init(&al->user_obj, 0); in ace_list_init()
786 acevals_init(&al->group_obj, 0); in ace_list_init()
787 acevals_init(&al->other_obj, 0); in ace_list_init()
788 al->numusers = 0; in ace_list_init()
789 al->numgroups = 0; in ace_list_init()
790 al->acl_mask = 0; in ace_list_init()
791 al->hasmask = 0; in ace_list_init()
793 al->seen = 0; in ace_list_init()
815 if (cacl_malloc((void **)&rc, sizeof (acevals_t)) != 0) in acevals_find()
834 haswriteperm = (acep->a_access_mask & ACE_WRITE_DATA) ? 0 : 1; in access_mask_check()
835 hasreadperm = (acep->a_access_mask & ACE_READ_DATA) ? 0 : 1; in access_mask_check()
837 haswriteperm = (acep->a_access_mask & ACE_WRITE_DATA) ? 1 : 0; in access_mask_check()
838 hasreadperm = (acep->a_access_mask & ACE_READ_DATA) ? 1 : 0; in access_mask_check()
879 if (((acep->a_access_mask & mask_bit) != 0) && in access_mask_check()
883 return (0); in access_mask_check()
887 return (0); in access_mask_check()
895 return (0); in access_mask_check()
927 return (0); in access_mask_check()
933 int error = 0; in ace_to_aent_legal()
966 isowner = 0; in ace_to_aent_legal()
1065 if (error != 0) in acevals_to_aent()
1075 dest->a_id = 0; in acevals_to_aent()
1090 int error = 0; in ace_list_to_aent()
1100 if ((! list->hasmask) && (list->numusers + list->numgroups > 0)) { in ace_list_to_aent()
1113 resultcount * sizeof (aclent_t)) != 0) { in ace_list_to_aent()
1128 if (error != 0) in ace_list_to_aent()
1141 if (error != 0) in ace_list_to_aent()
1152 if (error != 0) in ace_list_to_aent()
1165 if (error != 0) in ace_list_to_aent()
1182 if (error != 0) in ace_list_to_aent()
1188 if (error != 0) in ace_list_to_aent()
1191 aent->a_id = 0; in ace_list_to_aent()
1202 if (error != 0) in ace_list_to_aent()
1210 if (error != 0) { in ace_list_to_aent()
1251 return (0); in acevals_compare()
1269 int error = 0; in ln_ace_to_aent()
1277 *aclcnt = 0; in ln_ace_to_aent()
1279 *dfaclcnt = 0; in ln_ace_to_aent()
1292 if (error != 0) in ln_ace_to_aent()
1300 ace_list_init(normacl, 0); in ln_ace_to_aent()
1303 if (error != 0) in ln_ace_to_aent()
1313 for (i = 0; i < n; i++) { in ln_ace_to_aent()
1318 if (error != 0) in ln_ace_to_aent()
1334 if (bits != 0) { in ln_ace_to_aent()
1440 if (error != 0) { in ln_ace_to_aent()
1447 if (error != 0) { in ln_ace_to_aent()
1465 int error = 0; in convert_ace_to_aent()
1468 int aclsz, dfaclsz = 0; in convert_ace_to_aent()
1477 if (dfaclcnt != 0) { in convert_ace_to_aent()
1517 return (0); in acl_translate()
1555 return (0); in acl_translate()
1568 acl[0][index].a_who = (uint32_t)who; \
1569 acl[0][index].a_type = type; \
1570 acl[0][index].a_flags = flags; \
1571 acl[0][index++].a_access_mask = mask; \
1584 masks->deny1 = 0; in acl_trivial_access_masks()
1592 masks->deny2 = 0; in acl_trivial_access_masks()
1600 masks->allow0 = 0; in acl_trivial_access_masks()
1640 int index = 0; in acl_trivial_create()
1654 if ((error = cacl_malloc((void **)acl, *count * sizeof (ace_t))) != 0) in acl_trivial_create()
1677 return (0); in acl_trivial_create()
1709 uint64_t cookie = 0; in ace_trivial_common()
1710 uint32_t owner_allow = 0; in ace_trivial_common()
1711 uint32_t owner_deny = 0; in ace_trivial_common()
1714 != 0) { in ace_trivial_common()
1757 (flags & ACE_OWNER) == 0 && in ace_trivial_common()
1758 (mask & ACE_OWNER_MASK) != 0) in ace_trivial_common()
1762 if ((flags & ACE_OWNER) != 0) { in ace_trivial_common()
1777 if ((owner_deny & ACE_OWNER_MASK) != 0) in ace_trivial_common()
1782 return (0); in ace_trivial_common()
1792 return (0); in ace_walk()