Home
last modified time | relevance | path

Searched refs:permset (Results 1 – 13 of 13) sorted by relevance

/freebsd-11-stable/contrib/libarchive/libarchive/
HDarchive_acl.c53 int type, int permset, int tag);
55 int type, int permset, int tag, int id);
57 int type, int permset, int tag, int id, const char *name,
161 ap->type, ap->permset, ap->tag, ap->id); in archive_acl_copy()
170 int type, int permset, int tag, int id, const char *name) in archive_acl_add_entry() argument
174 if (acl_special(acl, type, permset, tag) == 0) in archive_acl_add_entry()
176 ap = acl_new_entry(acl, type, permset, tag, id); in archive_acl_add_entry()
190 int type, int permset, int tag, int id, const wchar_t *name, size_t len) in archive_acl_add_entry_w_len() argument
194 if (acl_special(acl, type, permset, tag) == 0) in archive_acl_add_entry_w_len()
196 ap = acl_new_entry(acl, type, permset, tag, id); in archive_acl_add_entry_w_len()
[all …]
HDarchive_acl_private.h41 int permset; /* r/w/x bits */ member
HDarchive_entry.c1528 int type, int permset, int tag, int id, const char *name) in archive_entry_acl_add_entry() argument
1530 return archive_acl_add_entry(&entry->acl, type, permset, tag, id, name); in archive_entry_acl_add_entry()
1538 int type, int permset, int tag, int id, const wchar_t *name) in archive_entry_acl_add_entry_w() argument
1541 type, permset, tag, id, name, wcslen(name)); in archive_entry_acl_add_entry_w()
1579 int *permset, int *tag, int *id, const char **name) in archive_entry_acl_next() argument
1583 permset, tag, id, name); in archive_entry_acl_next()
/freebsd-11-stable/contrib/libarchive/libarchive/test/
HDtest_acl_platform_posix1e.c64 int permset = 0; in acl_entry_get_perm() local
71 permset |= ARCHIVE_ENTRY_ACL_EXECUTE; in acl_entry_get_perm()
73 permset |= ARCHIVE_ENTRY_ACL_WRITE; in acl_entry_get_perm()
75 permset |= ARCHIVE_ENTRY_ACL_READ; in acl_entry_get_perm()
80 permset |= ARCHIVE_ENTRY_ACL_EXECUTE; in acl_entry_get_perm()
82 permset |= ARCHIVE_ENTRY_ACL_WRITE; in acl_entry_get_perm()
84 permset |= ARCHIVE_ENTRY_ACL_READ; in acl_entry_get_perm()
86 return permset; in acl_entry_get_perm()
135 if (myacl->permset != acl_entry_get_perm(aclent)) in acl_match()
179 if (myacl->permset != acl_entry_get_perm(aclent)) in acl_match()
[all …]
HDtest_acl_platform_nfs4.c43 int permset; member
268 acls[0].type, acls[0].permset, acls[0].tag, in set_acls()
275 acls[i].type, acls[i].permset, acls[i].tag, in set_acls()
366 int i, permset = 0; in acl_permset_to_bitmap() local
374 permset |= perms[i].portable; in acl_permset_to_bitmap()
375 return permset; in acl_permset_to_bitmap()
442 if (perms != myacl->permset) in acl_match()
497 if (perms != myacl->permset) in acl_match()
562 if (perms != myacl->permset) in acl_match()
622 if (perms != myacl->permset) in acl_match()
[all …]
HDtest_entry.c63 int type, permset, tag, qual; /* For ACL testing. */ in DEFINE_TEST() local
562 &type, &permset, &tag, &qual, &name)); in DEFINE_TEST()
564 assertEqualInt(permset, 4); in DEFINE_TEST()
570 &type, &permset, &tag, &qual, &name)); in DEFINE_TEST()
572 assertEqualInt(permset, 5); in DEFINE_TEST()
578 &type, &permset, &tag, &qual, &name)); in DEFINE_TEST()
580 assertEqualInt(permset, 6); in DEFINE_TEST()
587 &type, &permset, &tag, &qual, &name)); in DEFINE_TEST()
589 assertEqualInt(permset, ARCHIVE_ENTRY_ACL_READ); in DEFINE_TEST()
663 &type, &permset, &tag, &qual, &name)); in DEFINE_TEST()
[all …]
HDmain.c2442 acls[i].type, acls[i].permset, acls[i].tag, in archive_test_set_acls()
2446 acls[i].type, acls[i].permset, acls[i].tag, in archive_test_set_acls()
2452 archive_test_acl_match(struct archive_test_acl_t *acl, int type, int permset, in archive_test_acl_match() argument
2457 if (permset != acl->permset) in archive_test_acl_match()
2491 int type, permset, tag, qual; in archive_test_compare_acls() local
2511 &type, &permset, &tag, &qual, &name))) { in archive_test_compare_acls()
2514 permset, tag, qual, name)) { in archive_test_compare_acls()
2525 permset, 07 & (mode >> 6)); in archive_test_compare_acls()
2526 assert((permset << 6) == (mode & 0700)); in archive_test_compare_acls()
2531 permset, 07 & (mode >> 3)); in archive_test_compare_acls()
[all …]
HDtest_acl_posix1e.c174 p->type, p->permset, p->tag, p->qual, p->name)); in DEFINE_TEST()
HDtest_acl_nfs4.c201 p->type, p->permset, p->tag, p->qual, p->name)); in DEFINE_TEST()
/freebsd-11-stable/bin/setfacl/
HDmerge.c45 acl_permset_t permset; in merge_user_group() local
61 if (acl_get_permset(*entry, &permset) == -1) in merge_user_group()
63 if (acl_set_permset(*entry_new, permset) == -1) in merge_user_group()
92 acl_permset_t permset; in merge_acl() local
170 if (acl_get_permset(entry, &permset) == -1) in merge_acl()
173 if (acl_set_permset(entry_new, permset) == -1) in merge_acl()
/freebsd-11-stable/lib/libc/posix1e/
HDacl_to_text_nfs4.c171 acl_permset_t permset; in format_entry() local
182 error = acl_get_permset(entry, &permset); in format_entry()
195 error = _nfs4_format_access_mask(buf, sizeof(buf), *permset, in format_entry()
/freebsd-11-stable/contrib/libarchive/test_utils/
HDtest_main.c2935 acl_permset_t permset; in setTestAcl() local
2976 r = acl_get_permset(aclent, &permset); in setTestAcl()
2981 r = acl_add_perm(permset, acl_perms[i]); in setTestAcl()
2986 r = acl_set_permset(aclent, permset); in setTestAcl()
3286 acls[i].type, acls[i].permset, acls[i].tag, in assertion_entry_set_acls()
3292 acls[i].type, acls[i].permset, acls[i].tag, in assertion_entry_set_acls()
3302 archive_test_acl_match(struct archive_test_acl_t *acl, int type, int permset, in archive_test_acl_match() argument
3307 if (permset != acl->permset) in archive_test_acl_match()
3342 int type, permset, tag, qual; in assertion_entry_compare_acls() local
3366 &type, &permset, &tag, &qual, &name))) { in assertion_entry_compare_acls()
[all …]
HDtest_common.h427 int permset; /* Permissions for this class of users. */ member