HomeSort by: relevance | last modified time | path
    Searched refs:aclp (Results 1 - 25 of 27) sorted by relevancy

1 2

  /src/lib/libc/posix1e/
acl_get.c 65 acl_t aclp; local in function:acl_get_file
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 in function:acl_get_link_np
91 aclp = acl_init(ACL_MAX_ENTRIES)
120 acl_t aclp; local in function:acl_get_fd_np
    [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 in function:entry2acl
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 162 ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct lwp *l)
168 len = sizeof(*aclp);
169 bzero(aclp, len);
172 NFS4_ACL_EXTATTR_NAMESPACE, NFS4_ACL_EXTATTR_NAME, &len, aclp, l);
173 aclp->acl_maxcnt = ACL_MAX_ENTRIES;
179 acl_nfs4_sync_acl_from_mode(aclp, ip->i_mode, ip->i_uid);
187 if (len != sizeof(*aclp)) {
201 error = acl_nfs4_check(aclp, vp->v_type == VDIR);
381 ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp,
388 KASSERT(acl_nfs4_check(aclp, vp->v_type == VDIR) == 0)
    [all...]
ufs_vnops.c 684 struct acl *aclp; local in function:ufs_update_nfs4_acl_after_mode_change
686 aclp = acl_alloc(KM_SLEEP);
687 error = ufs_getacl_nfs4_internal(vp, aclp, l);
695 acl_nfs4_sync_acl_from_mode(aclp, mode, file_owner_id);
696 error = ufs_setacl_nfs4_internal(vp, aclp, l, false);
699 acl_free(aclp);
  /src/sys/kern/
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,
97 KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES);
99 ae = &(aclp->acl_entry[aclp->acl_cnt]);
100 aclp->acl_cnt++;
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]
    [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 in function:acl_alloc
    [all...]
vnode_if.c 2003 struct acl *aclp,
2013 a.a_aclp = aclp;
2039 struct acl *aclp,
2049 a.a_aclp = aclp;
2077 struct acl *aclp,
2087 a.a_aclp = aclp;
systrace_args.c 3782 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
3791 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
3808 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
3817 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
3826 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
3835 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
3844 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
3869 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
3878 uarg[2] = (intptr_t) SCARG(p, aclp); /* struct acl * */
  /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));
netbsd32_syscallargs.h 2708 syscallarg(netbsd32_aclp_t) aclp;
2715 syscallarg(netbsd32_aclp_t) aclp;
2728 syscallarg(netbsd32_aclp_t) aclp;
2735 syscallarg(netbsd32_aclp_t) aclp;
2742 syscallarg(netbsd32_aclp_t) aclp;
2749 syscallarg(netbsd32_aclp_t) aclp;
2756 syscallarg(netbsd32_aclp_t) aclp;
2775 syscallarg(netbsd32_aclp_t) aclp;
2782 syscallarg(netbsd32_aclp_t) aclp;
netbsd32_systrace_args.c 3599 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
3608 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
3625 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
3634 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
3643 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
3652 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
3661 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
3686 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
3695 uarg[2] = (intptr_t) SCARG(p, aclp).i32; /* netbsd32_aclp_t */
  /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);
nfs_commonsubs.c 695 * If the aclp == NULL or won't fit in an acl, just discard the acl info.
698 nfsrv_dissectacl(struct nfsrv_descript *nd, NFSACL_T *aclp, int *aclerrp,
706 if (aclp)
707 aclp->acl_cnt = 0;
720 if (aclp && !aceerr)
721 error = nfsrv_dissectace(nd, &aclp->acl_entry[i],
729 if (aclp && !aceerr)
730 aclp->acl_cnt = acecnt;
813 struct nfsfsinfo *fsp, NFSACL_T *aclp, int compare, int *retcmpp,
1088 if (aceerr || aclp == NULL |
2058 NFSACL_T *aclp, *naclp = NULL; local in function:nfsv4_fillattr
    [all...]
  /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);
syscallargs.h 3252 syscallarg(struct acl *) aclp;
3261 syscallarg(struct acl *) aclp;
3278 syscallarg(struct acl *) aclp;
3287 syscallarg(struct acl *) aclp;
3296 syscallarg(struct acl *) aclp;
3305 syscallarg(struct acl *) aclp;
3314 syscallarg(struct acl *) aclp;
3339 syscallarg(struct acl *) aclp;
3348 syscallarg(struct acl *) aclp;
  /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/sys/fs/nfs/server/
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; local in function:nfsrvd_setattr
322 aclp = acl_alloc(M_WAITOK);
323 aclp->acl_cnt = 0;
332 error = nfsrv_sattr(nd, vp, &nva, &attrbits, aclp, p);
352 acl_free(aclp);
443 if (!nd->nd_repstat && aclp->acl_cnt > 0 &&
445 nd->nd_repstat = nfsrv_setacl(vp, aclp, nd->nd_cred, p);
461 acl_free(aclp);
1161 NFSACL_T *aclp = NULL; local in function:nfsrvd_mknod
2595 NFSACL_T *aclp = NULL; local in function:nfsrvd_open
    [all...]
nfs_nfsdsubs.c 1592 struct nfsvattr *nvap, NFSACL_T *aclp, NFSPROC_T *p, nfsattrbit_t *attrbitp,
1658 nfsrv_useacl != 0 && aclp != NULL) {
1659 if (aclp->acl_cnt > 0) {
1660 error = nfsrv_setacl(vp, aclp, nd->nd_cred, p);
  /src/sys/miscfs/genfs/
genfs_vnops.c 1029 _acl_denies(const struct acl *aclp, int access_mask, kauth_cred_t cred,
1038 KASSERT(aclp->acl_cnt <= ACL_MAX_ENTRIES);
1040 for (i = 0; i < aclp->acl_cnt; i++) {
1041 ae = &(aclp->acl_entry[i]);
1096 gid_t file_gid, mode_t file_mode, struct acl *aclp, accmode_t accmode)
1142 denied = _acl_denies(aclp, access_mask, cred, file_uid, file_gid,
1156 __acl_nfs4_sync_mode_from_acl(&file_mode, aclp);
  /src/bin/cp/
utils.c 473 struct acl *aclp; local in function:preserve_dir_acls
522 aclp = &acl->ats_acl;
523 if (aclp->acl_cnt != 0 && aclsetf(dest_dir,

Completed in 45 milliseconds

1 2