| /freebsd-12-stable/lib/libc/posix1e/ |
| D | acl_get.c | 62 acl_t aclp; in acl_get_file() local 65 aclp = acl_init(ACL_MAX_ENTRIES); in acl_get_file() 66 if (aclp == NULL) in acl_get_file() 70 error = __acl_get_file(path_p, type, &aclp->ats_acl); in acl_get_file() 72 acl_free(aclp); in acl_get_file() 76 aclp->ats_acl.acl_maxcnt = ACL_MAX_ENTRIES; in acl_get_file() 77 _acl_brand_from_type(aclp, type); in acl_get_file() 79 return (aclp); in acl_get_file() 85 acl_t aclp; in acl_get_link_np() local 88 aclp = acl_init(ACL_MAX_ENTRIES); in acl_get_link_np() [all …]
|
| D | acl_strip.c | 44 void acl_nfs4_sync_mode_from_acl(mode_t *_mode, const struct acl *aclp); 45 void acl_nfs4_trivial_from_mode_libc(struct acl *aclp, int file_owner_id, 49 _nfs4_acl_strip_np(const acl_t aclp, int canonical_six) in _nfs4_acl_strip_np() argument 62 acl_nfs4_sync_mode_from_acl(&mode, &(aclp->ats_acl)); in _nfs4_acl_strip_np() 69 _posix1e_acl_strip_np(const acl_t aclp, int recalculate_mask) in _posix1e_acl_strip_np() argument 77 assert(_acl_brand(aclp) == ACL_BRAND_POSIX); in _posix1e_acl_strip_np() 79 acl_old = acl_dup(aclp); in _posix1e_acl_strip_np() 146 acl_strip_np(const acl_t aclp, int recalculate_mask) in acl_strip_np() argument 148 switch (_acl_brand(aclp)) { in acl_strip_np() 150 return (_nfs4_acl_strip_np(aclp, 0)); in acl_strip_np() [all …]
|
| D | acl_branding.c | 54 acl_t aclp; in entry2acl() local 56 aclp = (acl_t)(((long)entry >> _ACL_T_ALIGNMENT_BITS) << _ACL_T_ALIGNMENT_BITS); in entry2acl() 58 return (aclp); in entry2acl()
|
| D | acl_from_text.c | 51 int _nfs4_acl_entry_from_text(acl_t aclp, char *entry); 84 _posix1e_acl_entry_from_text(acl_t aclp, char *entry) in _posix1e_acl_entry_from_text() argument 92 assert(_acl_brand(aclp) == ACL_BRAND_POSIX); in _posix1e_acl_entry_from_text() 162 error = _posix1e_acl_add_entry(aclp, t, id, p); in _posix1e_acl_entry_from_text()
|
| D | acl_to_text_nfs4.c | 230 _nfs4_acl_to_text_np(const acl_t aclp, ssize_t *len_p, int flags) in _nfs4_acl_to_text_np() argument 236 if (aclp->ats_acl.acl_cnt == 0) in _nfs4_acl_to_text_np() 239 size = aclp->ats_acl.acl_cnt * MAX_ENTRY_LENGTH; in _nfs4_acl_to_text_np() 244 while (acl_get_entry(aclp, entry_id, &entry) == 1) { in _nfs4_acl_to_text_np()
|
| D | acl_from_text_nfs4.c | 204 _nfs4_acl_entry_from_text(acl_t aclp, char *str) in _nfs4_acl_entry_from_text() argument 210 error = acl_create_entry(&aclp, &entry); in _nfs4_acl_entry_from_text() 282 acl_delete_entry(aclp, entry); in _nfs4_acl_entry_from_text()
|
| /freebsd-12-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
| D | zfs_acl.c | 452 zfs_acl_t *aclp; in zfs_acl_alloc() local 454 aclp = kmem_zalloc(sizeof (zfs_acl_t), KM_SLEEP); in zfs_acl_alloc() 455 list_create(&aclp->z_acl, sizeof (zfs_acl_node_t), in zfs_acl_alloc() 457 aclp->z_version = vers; in zfs_acl_alloc() 459 aclp->z_ops = zfs_acl_fuid_ops; in zfs_acl_alloc() 461 aclp->z_ops = zfs_acl_v0_ops; in zfs_acl_alloc() 462 return (aclp); in zfs_acl_alloc() 490 zfs_acl_release_nodes(zfs_acl_t *aclp) in zfs_acl_release_nodes() argument 494 while (aclnode = list_head(&aclp->z_acl)) { in zfs_acl_release_nodes() 495 list_remove(&aclp->z_acl, aclnode); in zfs_acl_release_nodes() [all …]
|
| /freebsd-12-stable/sys/kern/ |
| D | subr_acl_nfs4.c | 62 static void acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode); 112 _acl_denies(const struct acl *aclp, int access_mask, struct ucred *cred, in _acl_denies() argument 121 KASSERT(aclp->acl_cnt <= ACL_MAX_ENTRIES, in _acl_denies() 124 for (i = 0; i < aclp->acl_cnt; i++) { in _acl_denies() 125 entry = &(aclp->acl_entry[i]); in _acl_denies() 175 struct acl *aclp, accmode_t accmode, struct ucred *cred, int *privused) in vaccess_acl_nfs4() argument 227 denied = _acl_denies(aclp, access_mask, cred, file_uid, file_gid, in vaccess_acl_nfs4() 241 acl_nfs4_sync_mode_from_acl(&file_mode, aclp); in vaccess_acl_nfs4() 331 _acl_append(struct acl *aclp, acl_tag_t tag, acl_perm_t perm, in _acl_append() argument 336 KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES, in _acl_append() [all …]
|
| D | vfs_acl.c | 72 acl_type_t type, struct acl *aclp, int follow); 76 acl_type_t type, struct acl *aclp, int follow); 78 acl_type_t type, const struct acl *aclp, int follow); 80 acl_type_t type, const struct acl *aclp); 82 acl_type_t type, struct acl *aclp); 84 acl_type_t type, const struct acl *aclp); 230 const struct acl *aclp) in vacl_set_acl() argument 238 error = acl_copyin(aclp, inkernelacl, type); in vacl_set_acl() 268 struct acl *aclp) in vacl_get_acl() argument 290 error = acl_copyout(inkernelacl, aclp, type); in vacl_get_acl() [all …]
|
| /freebsd-12-stable/sys/cddl/compat/opensolaris/kern/ |
| D | opensolaris_acl.c | 104 acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries) in acl_from_aces() argument 125 bzero(aclp, sizeof(*aclp)); in acl_from_aces() 126 aclp->acl_maxcnt = ACL_MAX_ENTRIES; in acl_from_aces() 127 aclp->acl_cnt = nentries; in acl_from_aces() 130 entry = &(aclp->acl_entry[i]); in acl_from_aces() 174 aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp) in aces_from_acl() argument 180 bzero(aces, sizeof(*aces) * aclp->acl_cnt); in aces_from_acl() 182 *nentries = aclp->acl_cnt; in aces_from_acl() 184 for (i = 0; i < aclp->acl_cnt; i++) { in aces_from_acl() 185 entry = &(aclp->acl_entry[i]); in aces_from_acl()
|
| /freebsd-12-stable/sys/cddl/contrib/opensolaris/common/acl/ |
| D | acl_common.c | 269 acl_t *aclp; in acl_alloc() local 271 if (cacl_malloc((void **)&aclp, sizeof (acl_t)) != 0) in acl_alloc() 274 aclp->acl_aclp = NULL; in acl_alloc() 275 aclp->acl_cnt = 0; in acl_alloc() 279 aclp->acl_type = ACE_T; in acl_alloc() 280 aclp->acl_entry_size = sizeof (ace_t); in acl_alloc() 283 aclp->acl_type = ACLENT_T; in acl_alloc() 284 aclp->acl_entry_size = sizeof (aclent_t); in acl_alloc() 287 acl_free(aclp); in acl_alloc() 288 aclp = NULL; in acl_alloc() [all …]
|
| D | acl_common.h | 55 extern void acl_free(acl_t *aclp); 56 extern int acl_translate(acl_t *aclp, int target_flavor, boolean_t isdir,
|
| /freebsd-12-stable/sys/ufs/ufs/ |
| D | ufs_acl.c | 155 ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td) in ufs_getacl_nfs4_internal() argument 160 len = sizeof(*aclp); in ufs_getacl_nfs4_internal() 161 bzero(aclp, len); in ufs_getacl_nfs4_internal() 165 &len, (char *) aclp, td); in ufs_getacl_nfs4_internal() 166 aclp->acl_maxcnt = ACL_MAX_ENTRIES; in ufs_getacl_nfs4_internal() 172 acl_nfs4_sync_acl_from_mode(aclp, ip->i_mode, ip->i_uid); in ufs_getacl_nfs4_internal() 180 if (len != sizeof(*aclp)) { in ufs_getacl_nfs4_internal() 194 error = acl_nfs4_check(aclp, vp->v_type == VDIR); in ufs_getacl_nfs4_internal() 381 ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td) in ufs_setacl_nfs4_internal() argument 387 KASSERT(acl_nfs4_check(aclp, vp->v_type == VDIR) == 0, in ufs_setacl_nfs4_internal() [all …]
|
| D | acl.h | 42 int ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td); 43 int ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td);
|
| /freebsd-12-stable/contrib/libarchive/libarchive/test/ |
| D | test_acl_platform_posix1e.c | 222 void *aclp, int aclcnt, argument 252 acl_entry = &((aclent_t *)aclp)[e]; 300 void *aclp; 336 aclp = sunacl_get(GETACL, &aclcnt, 0, "test0"); 338 assert(aclp != NULL); 345 compare_acls(aclp, aclcnt, acls2, sizeof(acls2)/sizeof(acls2[0])); 346 free(aclp); 347 aclp = NULL; 370 void *aclp; 419 aclp = sunacl_get(GETACL, &aclcnt, fd, NULL); [all …]
|
| D | test_acl_platform_nfs4.c | 685 void *aclp, in compare_acls() argument 715 if (aclp == NULL) in compare_acls() 749 acl_entry = &((ace_t *)aclp)[e]; in compare_acls() 868 void *aclp; in DEFINE_TEST() 929 aclp = sunacl_get(ACE_GETACL, &aclcnt, 0, "testall"); in DEFINE_TEST() 932 assert(aclp != NULL); in DEFINE_TEST() 949 compare_acls(aclp, aclcnt, acls_reg, "testall", 0, regcnt); in DEFINE_TEST() 950 free(aclp); in DEFINE_TEST() 951 aclp = NULL; in DEFINE_TEST() 967 aclp = sunacl_get(ACE_GETACL, &aclcnt, 0, buff); in DEFINE_TEST() [all …]
|
| /freebsd-12-stable/sys/cddl/compat/opensolaris/sys/ |
| D | acl.h | 36 void aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp); 37 int acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries);
|
| /freebsd-12-stable/sys/sys/ |
| D | acl.h | 300 void acl_free(struct acl *aclp); 302 void acl_nfs4_sync_acl_from_mode(struct acl *aclp, 305 const struct acl *aclp); 306 int acl_nfs4_is_trivial(const struct acl *aclp, 325 int acl_nfs4_check(const struct acl *aclp, int is_directory);
|
| /freebsd-12-stable/sys/fs/nfs/ |
| D | nfs_commonacl.c | 396 nfsrv_buildacl(struct nfsrv_descript *nd, NFSACL_T *aclp, enum vtype type, in nfsrv_buildacl() argument 409 for (i = 0; i < aclp->acl_cnt; i++) { in nfsrv_buildacl() 411 switch (aclp->acl_entry[i].ae_tag) { in nfsrv_buildacl() 428 nfsv4_uidtostr(aclp->acl_entry[i].ae_id, &name, in nfsrv_buildacl() 436 nfsv4_gidtostr((gid_t)aclp->acl_entry[i].ae_id, &name, in nfsrv_buildacl() 445 isowner, &aclp->acl_entry[i]); in nfsrv_buildacl()
|
| D | nfs_commonsubs.c | 1072 nfsrv_dissectacl(struct nfsrv_descript *nd, NFSACL_T *aclp, int *aclerrp, in nfsrv_dissectacl() argument 1080 if (aclp) in nfsrv_dissectacl() 1081 aclp->acl_cnt = 0; in nfsrv_dissectacl() 1102 if (aclp && !aceerr) in nfsrv_dissectacl() 1103 error = nfsrv_dissectace(nd, &aclp->acl_entry[i], in nfsrv_dissectacl() 1111 if (aclp && !aceerr) in nfsrv_dissectacl() 1112 aclp->acl_cnt = acecnt; in nfsrv_dissectacl() 1195 struct nfsfsinfo *fsp, NFSACL_T *aclp, int compare, int *retcmpp, in nfsv4_loadattr() argument 1473 if (aceerr || aclp == NULL || in nfsv4_loadattr() 1474 nfsrv_compareacl(aclp, naclp)) in nfsv4_loadattr() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
| D | netbsd_syscall_hooks.h | 2761 #define __sanitizer_syscall_pre___acl_get_link(path, type, aclp) \ argument 2763 (long long)(path), (long long)(type), (long long)(aclp)) 2764 #define __sanitizer_syscall_post___acl_get_link(res, path, type, aclp) \ argument 2766 res, (long long)(path), (long long)(type), (long long)(aclp)) 2767 #define __sanitizer_syscall_pre___acl_set_link(path, type, aclp) \ argument 2769 (long long)(path), (long long)(type), (long long)(aclp)) 2770 #define __sanitizer_syscall_post___acl_set_link(res, path, type, aclp) \ argument 2772 res, (long long)(path), (long long)(type), (long long)(aclp)) 2779 #define __sanitizer_syscall_pre___acl_aclcheck_link(path, type, aclp) \ argument 2781 (long long)(path), (long long)(type), (long long)(aclp)) [all …]
|
| /freebsd-12-stable/sys/fs/nfsserver/ |
| D | nfs_nfsdserv.c | 95 NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp, char *pathcp, 100 int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, 330 NFSACL_T *aclp = NULL; in nfsrvd_setattr() local 337 aclp = acl_alloc(M_WAITOK); in nfsrvd_setattr() 338 aclp->acl_cnt = 0; in nfsrvd_setattr() 354 error = nfsrv_sattr(nd, vp, &nva, &attrbits, aclp, p); in nfsrvd_setattr() 380 acl_free(aclp); in nfsrvd_setattr() 481 if (!nd->nd_repstat && aclp->acl_cnt > 0 && in nfsrvd_setattr() 483 nd->nd_repstat = nfsrv_setacl(vp, aclp, nd->nd_cred, p); in nfsrvd_setattr() 499 acl_free(aclp); in nfsrvd_setattr() [all …]
|
| D | nfs_nfsdport.c | 1638 NFSACL_T *aclp, nfsattrbit_t *attrbitp, struct ucred *cred, struct thread *p, in nfsvno_open() argument 1682 aclp, p, attrbitp, exp); in nfsvno_open() 2600 nfsattrbit_t *attrbitp, NFSACL_T *aclp, struct thread *p) in nfsrv_sattr() argument 2681 error = nfsv4_sattr(nd, vp, nvap, attrbitp, aclp, p); in nfsrv_sattr() 2694 nfsattrbit_t *attrbitp, NFSACL_T *aclp, struct thread *p) in nfsv4_sattr() argument 2742 error = nfsrv_dissectacl(nd, aclp, &aceerr, &aclsize, in nfsv4_sattr() 4402 nfsrv_dssetacl(struct vnode *vp, struct acl *aclp, struct ucred *cred, in nfsrv_dssetacl() argument 4408 NULL, NULL, NULL, NULL, aclp); in nfsrv_dssetacl() 4415 char *cp, struct mbuf **mpp2, struct nfsvattr *nap, struct acl *aclp) in nfsrv_proxyds() argument 4551 mirrorcnt, aclp, &failpos); in nfsrv_proxyds() [all …]
|
| /freebsd-12-stable/bin/cp/ |
| D | utils.c | 468 struct acl *aclp; in preserve_dir_acls() local 517 aclp = &acl->ats_acl; in preserve_dir_acls() 518 if (aclp->acl_cnt != 0 && aclsetf(dest_dir, in preserve_dir_acls()
|
| /freebsd-12-stable/contrib/libarchive/test_utils/ |
| D | test_main.c | 2813 void *aclp; in sunacl_get() local 2831 aclp = NULL; in sunacl_get() 2840 if (aclp == NULL) in sunacl_get() 2841 aclp = malloc(cnt * size); in sunacl_get() 2843 aclp = realloc(NULL, cnt * size); in sunacl_get() 2844 if (aclp != NULL) { in sunacl_get() 2846 cnt = acl(path, cmd, cnt, aclp); in sunacl_get() 2848 cnt = facl(fd, cmd, cnt, aclp); in sunacl_get() 2851 free(aclp); in sunacl_get() 2852 aclp = NULL; in sunacl_get() [all …]
|