| /src/lib/libc/posix1e/ |
| acl_get.c | 65 acl_t aclp; local 68 aclp = acl_init(ACL_MAX_ENTRIES); 69 if (aclp == NULL) 73 error = __acl_get_file(path_p, type, &aclp->ats_acl); 75 acl_free(aclp); 79 aclp->ats_acl.acl_maxcnt = ACL_MAX_ENTRIES; 80 _acl_brand_from_type(aclp, type); 82 return (aclp); 88 acl_t aclp; local 91 aclp = acl_init(ACL_MAX_ENTRIES) 120 acl_t aclp; local [all...] |
| acl_strip.c | 45 _nfs4_acl_strip_np(const acl_t aclp, int canonical_six) 58 __acl_nfs4_sync_mode_from_acl(&mode, &(aclp->ats_acl)); 65 _posix1e_acl_strip_np(const acl_t aclp, int recalculate_mask) 72 assert(_acl_brand(aclp) == ACL_BRAND_POSIX); 74 acl_old = acl_dup(aclp); 133 acl_strip_np(const acl_t aclp, int recalculate_mask) 135 switch (_acl_brand(aclp)) { 137 return (_nfs4_acl_strip_np(aclp, 0)); 140 return (_posix1e_acl_strip_np(aclp, recalculate_mask)); 156 acl_is_trivial_np(const acl_t aclp, int *trivialp [all...] |
| acl_branding.c | 58 acl_t aclp; local 60 aclp = (acl_t)(((unsigned long)entry >> _ACL_T_ALIGNMENT_BITS) << _ACL_T_ALIGNMENT_BITS); 62 return (aclp);
|
| acl_from_text.c | 84 _posix1e_acl_entry_from_text(acl_t aclp, char *entry) 92 assert(_acl_brand(aclp) == ACL_BRAND_POSIX); 162 error = _posix1e_acl_add_entry(aclp, t, id, p);
|
| acl_from_text_nfs4.c | 209 _nfs4_acl_entry_from_text(acl_t aclp, char *str) 215 error = acl_create_entry(&aclp, &entry); 287 acl_delete_entry(aclp, entry);
|
| acl_to_text_nfs4.c | 235 _nfs4_acl_to_text_np(const acl_t aclp, ssize_t *len_p, int flags) 242 if (aclp->ats_acl.acl_cnt == 0) 245 size = aclp->ats_acl.acl_cnt * MAX_ENTRY_LENGTH; 250 while (acl_get_entry(aclp, entry_id, &entry) == 1) {
|
| /src/sys/ufs/ufs/ |
| 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,
|
| ufs_acl.c | 164 ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct lwp *l) 170 len = sizeof(*aclp); 171 bzero(aclp, len); 174 NFS4_ACL_EXTATTR_NAMESPACE, NFS4_ACL_EXTATTR_NAME, &len, aclp, l); 175 aclp->acl_maxcnt = ACL_MAX_ENTRIES; 181 acl_nfs4_sync_acl_from_mode(aclp, ip->i_mode, ip->i_uid); 189 if (len != sizeof(*aclp)) { 203 error = acl_nfs4_check(aclp, vp->v_type == VDIR); 383 ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, 390 KASSERT(acl_nfs4_check(aclp, vp->v_type == VDIR) == 0) [all...] |
| /src/sys/kern/ |
| subr_acl_nfs4.c | 57 static void acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode); 96 _acl_append(struct acl *aclp, acl_tag_t tag, acl_perm_t perm, 101 KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES); 103 ae = &(aclp->acl_entry[aclp->acl_cnt]); 104 aclp->acl_cnt++; 117 _acl_duplicate_entry(struct acl *aclp, unsigned int entry_index) 121 KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES); 123 for (i = aclp->acl_cnt; i > entry_index; i--) 124 aclp->acl_entry[i] = aclp->acl_entry[i - 1] [all...] |
| vfs_acl.c | 205 * (unlocked). The aclp pointer is assumed still to point to userland, so 215 const struct acl *aclp) 221 error = acl_copyin(aclp, inkernelacl, type); 237 struct acl *aclp) 248 error = acl_copyout(inkernelacl, aclp, type); 274 const struct acl *aclp) 280 error = acl_copyin(aclp, inkernelacl, type); 304 SCARG(uap, aclp), NSM_FOLLOW_NOEMULROOT); 316 SCARG(uap, aclp), NSM_NOFOLLOW_NOEMULROOT); 321 struct acl *aclp, namei_simple_flags_t flags 528 struct acl *aclp; local [all...] |
| /src/external/bsd/libarchive/dist/libarchive/ |
| archive_disk_acl_sunos.c | 109 void *aclp; local 127 aclp = NULL; 137 if (aclp == NULL) 138 aclp = malloc(cnt * size); 140 aclp = realloc(NULL, cnt * size); 141 if (aclp != NULL) { 143 cnt = acl(path, cmd, cnt, aclp); 145 cnt = facl(fd, cmd, cnt, aclp); 148 free(aclp); 149 aclp = NULL 454 void *aclp; local 713 void *aclp; local [all...] |
| /src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
| zfs_acl.c | 452 zfs_acl_t *aclp; local 454 aclp = kmem_zalloc(sizeof (zfs_acl_t), KM_SLEEP); 455 list_create(&aclp->z_acl, sizeof (zfs_acl_node_t), 457 aclp->z_version = vers; 459 aclp->z_ops = zfs_acl_fuid_ops; 461 aclp->z_ops = zfs_acl_v0_ops; 462 return (aclp); 490 zfs_acl_release_nodes(zfs_acl_t *aclp) 494 while (aclnode = list_head(&aclp->z_acl)) { 495 list_remove(&aclp->z_acl, aclnode) 635 zfs_acl_t *aclp = datap; local 1060 zfs_acl_t *aclp; local 1145 zfs_acl_t *aclp; local 1484 zfs_acl_t *aclp = NULL; local 1754 zfs_acl_t *aclp; local 1853 zfs_acl_t *aclp; local 1915 zfs_acl_t *aclp; local 2087 zfs_acl_t *aclp; local [all...] |
| /src/sys/compat/netbsd32/ |
| netbsd32_acl.c | 58 SCARG_P32(uap, aclp), NSM_FOLLOW_NOEMULROOT); 70 SCARG_P32(uap, aclp), NSM_NOFOLLOW_NOEMULROOT); 82 SCARG_P32(uap, aclp), NSM_FOLLOW_NOEMULROOT); 94 SCARG_P32(uap, aclp), NSM_NOFOLLOW_NOEMULROOT); 109 SCARG_P32(uap, aclp)); 128 SCARG_P32(uap, aclp)); 184 SCARG(uap, type), SCARG_P32(uap, aclp), NSM_FOLLOW_NOEMULROOT); 196 SCARG(uap, type), SCARG_P32(uap, aclp), NSM_NOFOLLOW_NOEMULROOT); 212 SCARG_P32(uap, aclp));
|
| /src/external/cddl/osnet/dist/common/acl/ |
| 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,
|
| acl_common.c | 269 acl_t *aclp; local 271 if (cacl_malloc((void **)&aclp, sizeof (acl_t)) != 0) 274 aclp->acl_aclp = NULL; 275 aclp->acl_cnt = 0; 279 aclp->acl_type = ACE_T; 280 aclp->acl_entry_size = sizeof (ace_t); 283 aclp->acl_type = ACLENT_T; 284 aclp->acl_entry_size = sizeof (aclent_t); 287 acl_free(aclp); 288 aclp = NULL 683 aclent_t *aclp; local [all...] |
| /src/external/bsd/libarchive/dist/libarchive/test/ |
| test_acl_platform_posix1e.c | 221 void *aclp, int aclcnt, 251 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...] |
| test_acl_platform_nfs4.c | 684 void *aclp, 714 if (aclp == NULL) 748 acl_entry = &((ace_t *)aclp)[e]; 869 void *aclp; 930 aclp = sunacl_get(ACE_GETACL, &aclcnt, 0, "testall"); 933 assert(aclp != NULL); 950 compare_acls(aclp, aclcnt, acls_reg, "testall", 0, regcnt); 951 free(aclp); 952 aclp = NULL; 968 aclp = sunacl_get(ACE_GETACL, &aclcnt, 0, buff) [all...] |
| /src/sys/fs/nfs/common/ |
| nfs_commonacl.c | 394 nfsrv_buildacl(struct nfsrv_descript *nd, NFSACL_T *aclp, enum vtype type, 407 for (i = 0; i < aclp->acl_cnt; i++) { 409 switch (aclp->acl_entry[i].ae_tag) { 426 nfsv4_uidtostr(aclp->acl_entry[i].ae_id, &name, 434 nfsv4_gidtostr((gid_t)aclp->acl_entry[i].ae_id, &name, 443 isowner, &aclp->acl_entry[i]); 456 nfsrv_setacl(vnode_t vp, NFSACL_T *aclp, struct ucred *cred, 471 if (aclp->acl_cnt > (ACL_MAX_ENTRIES - 6) / 2) { 475 error = VOP_SETACL(vp, ACL_TYPE_NFS4, aclp, cred, p);
|
| /src/external/cddl/osnet/sys/sys/ |
| 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);
|
| /src/sys/sys/ |
| 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);
|
| /src/sys/rump/librump/rumpvfs/ |
| rumpvnode_if.c | 701 struct acl *aclp, 707 error = VOP_GETACL(vp, type, aclp, cred); 716 struct acl *aclp, 722 error = VOP_SETACL(vp, type, aclp, cred); 731 struct acl *aclp, 737 error = VOP_ACLCHECK(vp, type, aclp, cred);
|
| /src/external/mpl/dhcp/bind/dist/lib/dns/include/dns/ |
| acl.h | 166 dns_acl_detach(dns_acl_t **aclp); 172 *\li '*aclp' to be a valid acl. 175 *\li '*aclp' is not linked on final detach.
|
| /src/external/mpl/dhcp/bind/dist/lib/dns/ |
| acl.c | 479 dns_acl_detach(dns_acl_t **aclp) { 480 REQUIRE(aclp != NULL && DNS_ACL_VALID(*aclp)); 481 dns_acl_t *acl = *aclp; 482 *aclp = NULL;
|
| /src/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/ |
| netbsd_syscall_hooks.h | 2761 #define __sanitizer_syscall_pre___acl_get_link(path, type, aclp) \ 2763 (long long)(path), (long long)(type), (long long)(aclp)) 2764 #define __sanitizer_syscall_post___acl_get_link(res, path, type, aclp) \ 2766 res, (long long)(path), (long long)(type), (long long)(aclp)) 2767 #define __sanitizer_syscall_pre___acl_set_link(path, type, aclp) \ 2769 (long long)(path), (long long)(type), (long long)(aclp)) 2770 #define __sanitizer_syscall_post___acl_set_link(res, path, type, aclp) \ 2772 res, (long long)(path), (long long)(type), (long long)(aclp)) 2779 #define __sanitizer_syscall_pre___acl_aclcheck_link(path, type, aclp) \ 2781 (long long)(path), (long long)(type), (long long)(aclp)) [all...] |
| /src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/ |
| netbsd_syscall_hooks.h | 2761 #define __sanitizer_syscall_pre___acl_get_link(path, type, aclp) \ 2763 (long long)(path), (long long)(type), (long long)(aclp)) 2764 #define __sanitizer_syscall_post___acl_get_link(res, path, type, aclp) \ 2766 res, (long long)(path), (long long)(type), (long long)(aclp)) 2767 #define __sanitizer_syscall_pre___acl_set_link(path, type, aclp) \ 2769 (long long)(path), (long long)(type), (long long)(aclp)) 2770 #define __sanitizer_syscall_post___acl_set_link(res, path, type, aclp) \ 2772 res, (long long)(path), (long long)(type), (long long)(aclp)) 2779 #define __sanitizer_syscall_pre___acl_aclcheck_link(path, type, aclp) \ 2781 (long long)(path), (long long)(type), (long long)(aclp)) [all...] |