Lines Matching +full:0 +full:x0010000
97 static int nfs4_acl_debug = 0;
99 #define ACL_SYNCHRONIZE_SET_DENY 0x0000001
100 #define ACL_SYNCHRONIZE_SET_ALLOW 0x0000002
101 #define ACL_SYNCHRONIZE_ERR_DENY 0x0000004
102 #define ACL_SYNCHRONIZE_ERR_ALLOW 0x0000008
104 #define ACL_WRITE_OWNER_SET_DENY 0x0000010
105 #define ACL_WRITE_OWNER_SET_ALLOW 0x0000020
106 #define ACL_WRITE_OWNER_ERR_DENY 0x0000040
107 #define ACL_WRITE_OWNER_ERR_ALLOW 0x0000080
109 #define ACL_DELETE_SET_DENY 0x0000100
110 #define ACL_DELETE_SET_ALLOW 0x0000200
111 #define ACL_DELETE_ERR_DENY 0x0000400
112 #define ACL_DELETE_ERR_ALLOW 0x0000800
114 #define ACL_WRITE_ATTRS_OWNER_SET_DENY 0x0001000
115 #define ACL_WRITE_ATTRS_OWNER_SET_ALLOW 0x0002000
116 #define ACL_WRITE_ATTRS_OWNER_ERR_DENY 0x0004000
117 #define ACL_WRITE_ATTRS_OWNER_ERR_ALLOW 0x0008000
119 #define ACL_WRITE_ATTRS_WRITER_SET_DENY 0x0010000
120 #define ACL_WRITE_ATTRS_WRITER_SET_ALLOW 0x0020000
121 #define ACL_WRITE_ATTRS_WRITER_ERR_DENY 0x0040000
122 #define ACL_WRITE_ATTRS_WRITER_ERR_ALLOW 0x0080000
124 #define ACL_WRITE_NAMED_WRITER_SET_DENY 0x0100000
125 #define ACL_WRITE_NAMED_WRITER_SET_ALLOW 0x0200000
126 #define ACL_WRITE_NAMED_WRITER_ERR_DENY 0x0400000
127 #define ACL_WRITE_NAMED_WRITER_ERR_ALLOW 0x0800000
129 #define ACL_READ_NAMED_READER_SET_DENY 0x1000000
130 #define ACL_READ_NAMED_READER_SET_ALLOW 0x2000000
131 #define ACL_READ_NAMED_READER_ERR_DENY 0x4000000
132 #define ACL_READ_NAMED_READER_ERR_ALLOW 0x8000000
185 return (0); in ace4vals_compare()
204 return (0); in nfs4_ace4_list_construct()
221 sizeof (ace4vals_t), 0, in nfs4_acl_init()
225 0); in nfs4_acl_init()
227 sizeof (ace4_list_t), 0, in nfs4_acl_init()
231 0); in nfs4_acl_init()
241 (vsp->vsa_aclcnt > 0) && in vs_acet_destroy()
248 vsp->vsa_aclcnt = 0; in vs_acet_destroy()
261 (vsp->vsa_aclcnt > 0) && in vs_ace4_destroy()
264 for (i = 0; i < vsp->vsa_aclcnt; i++) { in vs_ace4_destroy()
266 if ((ace4->who.utf8string_len > 0) && in vs_ace4_destroy()
272 ace4->who.utf8string_len = 0; in vs_ace4_destroy()
280 vsp->vsa_aclcnt = 0; in vs_ace4_destroy()
290 (vsp->vsa_aclcnt > 0) && in vs_aent_destroy()
296 (vsp->vsa_dfaclcnt > 0) && in vs_aent_destroy()
303 vsp->vsa_aclcnt = 0; in vs_aent_destroy()
306 vsp->vsa_aclcnt = 0; in vs_aent_destroy()
349 a4l->numusers = 0; in ace4_list_init()
350 a4l->numgroups = 0; in ace4_list_init()
351 a4l->acl_mask = 0; in ace4_list_init()
352 a4l->hasmask = 0; in ace4_list_init()
354 a4l->seen = 0; in ace4_list_init()
368 int error = 0; in ln_aent_preprocess()
370 int curtype = 0; in ln_aent_preprocess()
372 *hasmask = 0; in ln_aent_preprocess()
374 *needsort = 0; in ln_aent_preprocess()
375 *numuser = 0; in ln_aent_preprocess()
376 *numgroup = 0; in ln_aent_preprocess()
378 for (i = 0; i < n; i++) { in ln_aent_preprocess()
417 acemask4 access_mask = 0; in access_mask_set()
419 int synchronize_set = 0, write_owner_set = 0; in access_mask_set()
420 int delete_set = 0, write_attrs_set = 0; in access_mask_set()
421 int read_named_set = 0, write_named_set = 0; in access_mask_set()
510 acemask4 access = 0; in mode_to_ace4_access()
511 int haswriteperm = 0; in mode_to_ace4_access()
512 int hasreadperm = 0; in mode_to_ace4_access()
568 int error = 0; in ln_aent_to_ace4()
571 int resultsize = 0; in ln_aent_to_ace4()
572 int i, groupi = 0, skip; in ln_aent_to_ace4()
578 if (error != 0) in ln_aent_to_ace4()
600 for (i = 0; i < n; i++) { in ln_aent_to_ace4()
612 acep->flag = 0; in ln_aent_to_ace4()
616 error = 0; in ln_aent_to_ace4()
660 if (error != 0) { in ln_aent_to_ace4()
678 isdir, 0, 0, isserver); in ln_aent_to_ace4()
707 if (error != 0) { in ln_aent_to_ace4()
718 error = 0; in ln_aent_to_ace4()
723 if (error != 0) { in ln_aent_to_ace4()
779 if (error != 0) { in ln_aent_to_ace4()
780 if ((result != NULL) && (resultsize > 0)) { in ln_aent_to_ace4()
782 for (i = 0; i < resultsize; i++) { in ln_aent_to_ace4()
784 if ((acep->who.utf8string_len > 0) && in ln_aent_to_ace4()
807 int error = 0; in vs_aent_to_ace4()
809 int acecnt = 0; in vs_aent_to_ace4()
811 int dfacecnt = 0; in vs_aent_to_ace4()
814 vs_ace4->vsa_mask = 0; in vs_aent_to_ace4()
816 vs_ace4->vsa_aclcnt = 0; in vs_aent_to_ace4()
818 vs_ace4->vsa_dfaclcnt = 0; in vs_aent_to_ace4()
819 vs_ace4->vsa_aclentsz = 0; in vs_aent_to_ace4()
838 if ((aclentacl->vsa_dfaclcnt != 0) && (aclentacl->vsa_dfaclcnt < 3) && in vs_aent_to_ace4()
847 if (aclentacl->vsa_aclcnt > 0) { in vs_aent_to_ace4()
850 if (error != 0) in vs_aent_to_ace4()
853 if (aclentacl->vsa_dfaclcnt > 0) { in vs_aent_to_ace4()
857 if (error != 0) in vs_aent_to_ace4()
863 if (vs_ace4->vsa_aclcnt > 0) in vs_aent_to_ace4()
872 if (acecnt > 0) in vs_aent_to_ace4()
874 if (dfacecnt > 0) in vs_aent_to_ace4()
880 if (error != 0) in vs_aent_to_ace4()
894 int error = 0; in ace4_mask_to_mode()
895 o_mode_t mode = 0; in ace4_mask_to_mode()
908 if (bits != 0) { in ace4_mask_to_mode()
977 haswriteperm = (ace4p->access_mask & ACE4_WRITE_DATA) ? 0 : 1; in access_mask_check()
978 hasreadperm = (ace4p->access_mask & ACE4_READ_DATA) ? 0 : 1; in access_mask_check()
980 haswriteperm = (ace4p->access_mask & ACE4_WRITE_DATA) ? 1 : 0; in access_mask_check()
981 hasreadperm = (ace4p->access_mask & ACE4_READ_DATA) ? 1 : 0; in access_mask_check()
1020 return (0); in access_mask_check()
1024 return (0); in access_mask_check()
1032 return (0); in access_mask_check()
1063 return (0); in access_mask_check()
1069 int error = 0; in ace4_to_aent_legal()
1117 (bcmp(ACE4_WHO_OWNER, ace4p->who.utf8string_val, 6) == 0)) { in ace4_to_aent_legal()
1120 isowner = 0; in ace4_to_aent_legal()
1215 if (error != 0) in ace4vals_to_aent()
1225 if (error != 0) { in ace4vals_to_aent()
1234 (dest->a_type & USER ? 1 : 0), isserver); in ace4vals_to_aent()
1235 if (error != 0) { in ace4vals_to_aent()
1243 dest->a_id = 0; in ace4vals_to_aent()
1260 int error = 0; in ace4_list_to_aent()
1272 if ((! list->hasmask) && (list->numusers + list->numgroups > 0)) { in ace4_list_to_aent()
1294 if (error != 0) in ace4_list_to_aent()
1304 if (error != 0) in ace4_list_to_aent()
1312 if (error != 0) in ace4_list_to_aent()
1322 if (error != 0) in ace4_list_to_aent()
1339 if (error != 0) in ace4_list_to_aent()
1345 if (error != 0) in ace4_list_to_aent()
1348 aent->a_id = 0; in ace4_list_to_aent()
1356 if (error != 0) in ace4_list_to_aent()
1364 if (error != 0) { in ace4_list_to_aent()
1383 int error = 0; in ln_ace4_to_aent()
1391 *aclcnt = 0; in ln_ace4_to_aent()
1393 *dfaclcnt = 0; in ln_ace4_to_aent()
1410 ace4_list_init(normacl, 0); in ln_ace4_to_aent()
1415 for (i = 0; i < n; i++) { in ln_ace4_to_aent()
1420 if (error != 0) in ln_ace4_to_aent()
1436 if (bits != 0) { in ln_ace4_to_aent()
1454 ace4p->who.utf8string_val, 6) == 0)) { in ln_ace4_to_aent()
1468 == 0)) { in ln_ace4_to_aent()
1474 (bcmp(ACE4_WHO_GROUP, ace4p->who.utf8string_val, 6) == 0)) { in ln_ace4_to_aent()
1563 if (error != 0) in ln_ace4_to_aent()
1569 if (error != 0) in ln_ace4_to_aent()
1591 int error = 0; in vs_ace4_to_aent()
1598 if (error != 0) in vs_ace4_to_aent()
1602 if ((vs_aent->vsa_aclcnt == 0) && (vs_aent->vsa_dfaclcnt == 0)) { in vs_ace4_to_aent()
1610 if (error != 0) { in vs_ace4_to_aent()
1646 for (i = 0; i < n; i++) { in ln_ace4_cmp()
1648 if (rc != 0) in ln_ace4_cmp()
1651 return (0); in ln_ace4_cmp()
1661 int error = 0; in acet_to_ace4()
1689 if (error != 0) in acet_to_ace4()
1717 if (error != 0) in acet_to_ace4()
1737 if (error != 0) in acet_to_ace4()
1754 int error = 0; in ace4_to_acet()
1780 if (error != 0) in ace4_to_acet()
1810 nfsace4->who.utf8string_val, 6)) == 0) { in ace4_to_acet()
1815 nfsace4->who.utf8string_val, 6) == 0)) { in ace4_to_acet()
1820 nfsace4->who.utf8string_val, 9) == 0)) { in ace4_to_acet()
1822 ace->a_who = 0; in ace4_to_acet()
1827 if (error != 0) { in ace4_to_acet()
1837 if (error != 0) in ace4_to_acet()
1842 if (error != 0) { in ace4_to_acet()
1852 if (error != 0) in ace4_to_acet()
1863 *acet_mask = 0; in ace4_mask_to_acet_mask()
1898 *ace4_mask = 0; in acet_mask_to_ace4_mask()
1933 *acet_flags = 0; in ace4_flags_to_acet_flags()
1953 *ace4_flags = 0; in acet_flags_to_ace4_flags()
1980 if (vs_ace4->vsa_aclcnt < 0) in vs_ace4_to_acet()
1982 if ((vs_ace4->vsa_aclcnt == 0) || (vs_ace4->vsa_aclentp == NULL)) in vs_ace4_to_acet()
1983 return (0); in vs_ace4_to_acet()
1985 if (vs_ace4->vsa_aclcnt > 0) { in vs_ace4_to_acet()
1994 for (i = 0; i < vs_ace4->vsa_aclcnt; i++) { in vs_ace4_to_acet()
1998 if (error != 0) in vs_ace4_to_acet()
2003 if (error != 0) in vs_ace4_to_acet()
2013 int error = 0; in vs_acet_to_ace4()
2022 if (vs_acet->vsa_aclcnt > 0) in vs_acet_to_ace4()
2030 for (i = 0; i < vs_acet->vsa_aclcnt; i++) { in vs_acet_to_ace4()
2033 if (error != 0) in vs_acet_to_ace4()
2038 if (error != 0) in vs_acet_to_ace4()
2081 for (i = 0; i < rvsap->vsa_aclcnt; i++) { in nfs4_acl_fill_cache()
2089 if (vsap->vsa_aclcnt > 0) { in nfs4_acl_fill_cache()
2101 for (i = 0; i < vsap->vsa_aclcnt; i++) { in nfs4_acl_fill_cache()
2154 uint_t len = 0; in validate_idmapping()
2176 uint_t len = 0; in validate_idmapping()
2199 return (0); in validate_idmapping()
2202 return (0); in validate_idmapping()
2206 * Returns 0 if the who, utf8string was mapped correctly.
2212 bcmp("nobody", orig_who->utf8string_val, 6) == 0) in u8s_mapped_to_nobody()
2213 return (0); in u8s_mapped_to_nobody()