| /netbsd-src/lib/libc/posix1e/ |
| H A D | acl_get.c | 65 acl_t aclp; in acl_get_file() local 68 aclp = acl_init(ACL_MAX_ENTRIES); in acl_get_file() 69 if (aclp == NULL) in acl_get_file() 73 error = __acl_get_file(path_p, type, &aclp->ats_acl); in acl_get_file() 75 acl_free(aclp); in acl_get_file() 79 aclp->ats_acl.acl_maxcnt = ACL_MAX_ENTRIES; in acl_get_file() 80 _acl_brand_from_type(aclp, type); in acl_get_file() 82 return (aclp); in acl_get_file() 88 acl_t aclp; in acl_get_link_np() local 91 aclp = acl_init(ACL_MAX_ENTRIES); in acl_get_link_np() [all …]
|
| H A D | acl_strip.c | 45 _nfs4_acl_strip_np(const acl_t aclp, int canonical_six) in _nfs4_acl_strip_np() argument 58 __acl_nfs4_sync_mode_from_acl(&mode, &(aclp->ats_acl)); in _nfs4_acl_strip_np() 65 _posix1e_acl_strip_np(const acl_t aclp, int recalculate_mask) in _posix1e_acl_strip_np() argument 72 assert(_acl_brand(aclp) == ACL_BRAND_POSIX); in _posix1e_acl_strip_np() 74 acl_old = acl_dup(aclp); in _posix1e_acl_strip_np() 133 acl_strip_np(const acl_t aclp, int recalculate_mask) in acl_strip_np() argument 135 switch (_acl_brand(aclp)) { in acl_strip_np() 137 return (_nfs4_acl_strip_np(aclp, 0)); in acl_strip_np() 140 return (_posix1e_acl_strip_np(aclp, recalculate_mask)); in acl_strip_np() 156 acl_is_trivial_np(const acl_t aclp, int *trivialp) in acl_is_trivial_np() argument [all …]
|
| H A D | acl_branding.c | 58 acl_t aclp; in entry2acl() local 60 aclp = (acl_t)(((unsigned long)entry >> _ACL_T_ALIGNMENT_BITS) << _ACL_T_ALIGNMENT_BITS); in entry2acl() 62 return (aclp); in entry2acl()
|
| H A D | acl_to_text_nfs4.c | 235 _nfs4_acl_to_text_np(const acl_t aclp, ssize_t *len_p, int flags) in _nfs4_acl_to_text_np() argument 242 if (aclp->ats_acl.acl_cnt == 0) in _nfs4_acl_to_text_np() 245 size = aclp->ats_acl.acl_cnt * MAX_ENTRY_LENGTH; in _nfs4_acl_to_text_np() 250 while (acl_get_entry(aclp, entry_id, &entry) == 1) { in _nfs4_acl_to_text_np()
|
| H A D | acl_from_text.c | 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()
|
| H A D | acl_from_text_nfs4.c | 209 _nfs4_acl_entry_from_text(acl_t aclp, char *str) in _nfs4_acl_entry_from_text() argument 215 error = acl_create_entry(&aclp, &entry); in _nfs4_acl_entry_from_text() 287 acl_delete_entry(aclp, entry); in _nfs4_acl_entry_from_text()
|
| /netbsd-src/sys/kern/ |
| H A D | subr_acl_nfs4.c | 54 static void acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode); 92 _acl_append(struct acl *aclp, acl_tag_t tag, acl_perm_t perm, in _acl_append() argument 97 KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES); in _acl_append() 99 ae = &(aclp->acl_entry[aclp->acl_cnt]); in _acl_append() 100 aclp->acl_cnt++; in _acl_append() 113 _acl_duplicate_entry(struct acl *aclp, unsigned int entry_index) 117 KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES); 119 for (i = aclp->acl_cnt; i > entry_index; i--) 120 aclp->acl_entry[i] = aclp->acl_entry[i - 1]; 122 aclp->acl_cnt++; [all …]
|
| H A D | vfs_acl.c | 205 * (unlocked). The aclp pointer is assumed still to point to userland, so 215 const struct acl *aclp) in vacl_set_acl() 221 error = acl_copyin(aclp, inkernelacl, type); in vacl_set_acl() 237 struct acl *aclp) in vacl_get_acl() 248 error = acl_copyout(inkernelacl, aclp, type); in vacl_get_acl() 274 const struct acl *aclp) in vacl_aclcheck() 280 error = acl_copyin(aclp, inkernelacl, type); in vacl_aclcheck() 304 SCARG(uap, aclp), NSM_FOLLOW_NOEMULROOT); 316 SCARG(uap, aclp), NSM_NOFOLLOW_NOEMULROOT); 321 struct acl *aclp, namei_simple_flags_ in kern___acl_get_path() 213 vacl_set_acl(struct lwp * l,struct vnode * vp,acl_type_t type,const struct acl * aclp) vacl_set_acl() argument 235 vacl_get_acl(struct lwp * l,struct vnode * vp,acl_type_t type,struct acl * aclp) vacl_get_acl() argument 272 vacl_aclcheck(struct lwp * l,struct vnode * vp,acl_type_t type,const struct acl * aclp) vacl_aclcheck() argument 319 kern___acl_get_path(struct lwp * l,const char * path,acl_type_t type,struct acl * aclp,namei_simple_flags_t flags) kern___acl_get_path() argument 358 kern___acl_set_path(struct lwp * l,const char * path,acl_type_t type,const struct acl * aclp,namei_simple_flags_t flags) kern___acl_set_path() argument 490 kern___acl_aclcheck_path(struct lwp * l,const char * path,acl_type_t type,struct acl * aclp,namei_simple_flags_t flags) kern___acl_aclcheck_path() argument 526 struct acl *aclp; acl_alloc() local 538 acl_free(struct acl * aclp) acl_free() argument [all...] |
| /netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| H A 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 …]
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/ |
| H A D | archive_disk_acl_sunos.c | 109 void *aclp; in sunacl_get() local 127 aclp = NULL; in sunacl_get() 137 if (aclp == NULL) in sunacl_get() 138 aclp = malloc(cnt * size); in sunacl_get() 140 aclp = realloc(NULL, cnt * size); in sunacl_get() 141 if (aclp != NULL) { in sunacl_get() 143 cnt = acl(path, cmd, cnt, aclp); in sunacl_get() 145 cnt = facl(fd, cmd, cnt, aclp); in sunacl_get() 148 free(aclp); in sunacl_get() 149 aclp = NULL; in sunacl_get() [all …]
|
| /netbsd-src/sys/ufs/ufs/ |
| H A D | ufs_acl.c | 162 ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct lwp *l) in ufs_getacl_nfs4_internal() argument 168 len = sizeof(*aclp); in ufs_getacl_nfs4_internal() 169 bzero(aclp, len); in ufs_getacl_nfs4_internal() 172 NFS4_ACL_EXTATTR_NAMESPACE, NFS4_ACL_EXTATTR_NAME, &len, aclp, l); in ufs_getacl_nfs4_internal() 173 aclp->acl_maxcnt = ACL_MAX_ENTRIES; in ufs_getacl_nfs4_internal() 179 acl_nfs4_sync_acl_from_mode(aclp, ip->i_mode, ip->i_uid); in ufs_getacl_nfs4_internal() 187 if (len != sizeof(*aclp)) { in ufs_getacl_nfs4_internal() 201 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, in ufs_setacl_nfs4_internal() argument 388 KASSERT(acl_nfs4_check(aclp, vp->v_type == VDIR) == 0); in ufs_setacl_nfs4_internal() [all …]
|
| H A D | acl.h | 43 int ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct lwp *l); 44 int ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct lwp *l, bool lock); 45 int ufs_setacl_posix1e(struct vnode *vp, int type, struct acl *aclp,
|
| /netbsd-src/sys/compat/netbsd32/ |
| H A D | netbsd32_acl.c | 58 SCARG_P32(uap, aclp), NSM_FOLLOW_NOEMULROOT); in netbsd32___acl_get_file() 70 SCARG_P32(uap, aclp), NSM_NOFOLLOW_NOEMULROOT); in netbsd32___acl_get_link() 82 SCARG_P32(uap, aclp), NSM_FOLLOW_NOEMULROOT); in netbsd32___acl_set_file() 94 SCARG_P32(uap, aclp), NSM_NOFOLLOW_NOEMULROOT); in netbsd32___acl_set_link() 109 SCARG_P32(uap, aclp)); in netbsd32___acl_get_fd() 128 SCARG_P32(uap, aclp)); in netbsd32___acl_set_fd() 184 SCARG(uap, type), SCARG_P32(uap, aclp), NSM_FOLLOW_NOEMULROOT); in netbsd32___acl_aclcheck_file() 196 SCARG(uap, type), SCARG_P32(uap, aclp), NSM_NOFOLLOW_NOEMULROOT); in netbsd32___acl_aclcheck_link() 212 SCARG_P32(uap, aclp)); in netbsd32___acl_aclcheck_fd()
|
| /netbsd-src/external/cddl/osnet/dist/common/acl/ |
| H A 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 …]
|
| H A 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,
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/test/ |
| H A D | test_acl_platform_posix1e.c | 221 void *aclp, int aclcnt, argument 251 acl_entry = &((aclent_t *)aclp)[e]; 299 void *aclp; 335 aclp = sunacl_get(GETACL, &aclcnt, 0, "test0"); 337 assert(aclp != NULL); 344 compare_acls(aclp, aclcnt, acls2, sizeof(acls2)/sizeof(acls2[0])); 345 free(aclp); 346 aclp = NULL; 369 void *aclp; 418 aclp = sunacl_get(GETACL, &aclcnt, fd, NULL); [all …]
|
| H A D | test_acl_platform_nfs4.c | 684 void *aclp, in compare_acls() argument 714 if (aclp == NULL) in compare_acls() 748 acl_entry = &((ace_t *)aclp)[e]; in compare_acls() 867 void *aclp; in DEFINE_TEST() 928 aclp = sunacl_get(ACE_GETACL, &aclcnt, 0, "testall"); in DEFINE_TEST() 931 assert(aclp != NULL); in DEFINE_TEST() 948 compare_acls(aclp, aclcnt, acls_reg, "testall", 0, regcnt); in DEFINE_TEST() 949 free(aclp); in DEFINE_TEST() 950 aclp = NULL; in DEFINE_TEST() 966 aclp = sunacl_get(ACE_GETACL, &aclcnt, 0, buff); in DEFINE_TEST() [all …]
|
| /netbsd-src/sys/fs/nfs/common/ |
| H A D | nfs_commonacl.c | 394 nfsrv_buildacl(struct nfsrv_descript *nd, NFSACL_T *aclp, enum vtype type, in nfsrv_buildacl() argument 407 for (i = 0; i < aclp->acl_cnt; i++) { in nfsrv_buildacl() 409 switch (aclp->acl_entry[i].ae_tag) { in nfsrv_buildacl() 426 nfsv4_uidtostr(aclp->acl_entry[i].ae_id, &name, in nfsrv_buildacl() 434 nfsv4_gidtostr((gid_t)aclp->acl_entry[i].ae_id, &name, in nfsrv_buildacl() 443 isowner, &aclp->acl_entry[i]); in nfsrv_buildacl() 456 nfsrv_setacl(vnode_t vp, NFSACL_T *aclp, struct ucred *cred, in nfsrv_setacl() argument 471 if (aclp->acl_cnt > (ACL_MAX_ENTRIES - 6) / 2) { in nfsrv_setacl() 475 error = VOP_SETACL(vp, ACL_TYPE_NFS4, aclp, cred, p); in nfsrv_setacl()
|
| /netbsd-src/external/cddl/osnet/sys/sys/ |
| H A D | acl.h | 308 void acl_free(struct acl *aclp); 310 void acl_nfs4_sync_acl_from_mode(struct acl *aclp, 313 const struct acl *aclp); 314 int acl_nfs4_is_trivial(const struct acl *aclp, 335 int acl_nfs4_check(const struct acl *aclp, int is_directory);
|
| /netbsd-src/sys/sys/ |
| H A D | acl.h | 299 void acl_free(struct acl *aclp); 301 void acl_nfs4_sync_acl_from_mode(struct acl *aclp, 304 const struct acl *aclp); 305 int acl_nfs4_is_trivial(const struct acl *aclp, 320 int acl_nfs4_check(const struct acl *aclp, int is_directory);
|
| /netbsd-src/sys/rump/librump/rumpvfs/ |
| H A D | rumpvnode_if.c | 701 struct acl *aclp, in RUMP_VOP_GETACL() argument 707 error = VOP_GETACL(vp, type, aclp, cred); in RUMP_VOP_GETACL() 716 struct acl *aclp, in RUMP_VOP_SETACL() argument 722 error = VOP_SETACL(vp, type, aclp, cred); in RUMP_VOP_SETACL() 731 struct acl *aclp, in RUMP_VOP_ACLCHECK() argument 737 error = VOP_ACLCHECK(vp, type, aclp, cred); in RUMP_VOP_ACLCHECK()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/ |
| H A 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 …]
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/ |
| H A 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 …]
|
| /netbsd-src/sys/fs/nfs/server/ |
| H A D | nfs_nfsdserv.c | 81 NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp, char *pathcp, 86 int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, 315 NFSACL_T *aclp = NULL; in nfsrvd_setattr() local 322 aclp = acl_alloc(M_WAITOK); in nfsrvd_setattr() 323 aclp->acl_cnt = 0; in nfsrvd_setattr() 332 error = nfsrv_sattr(nd, vp, &nva, &attrbits, aclp, p); in nfsrvd_setattr() 352 acl_free(aclp); in nfsrvd_setattr() 443 if (!nd->nd_repstat && aclp->acl_cnt > 0 && in nfsrvd_setattr() 445 nd->nd_repstat = nfsrv_setacl(vp, aclp, nd->nd_cred, p); in nfsrvd_setattr() 461 acl_free(aclp); in nfsrvd_setattr() [all …]
|
| /netbsd-src/external/mpl/dhcp/bind/dist/lib/dns/ |
| H A D | acl.c | 479 dns_acl_detach(dns_acl_t **aclp) { in dns_acl_detach() argument 480 REQUIRE(aclp != NULL && DNS_ACL_VALID(*aclp)); in dns_acl_detach() 481 dns_acl_t *acl = *aclp; in dns_acl_detach() 482 *aclp = NULL; in dns_acl_detach()
|