/freebsd-10.1-release/lib/libc/posix1e/ |
H A D | acl_get.c | 60 acl_t aclp; local 63 aclp = acl_init(ACL_MAX_ENTRIES); 64 if (aclp == NULL) 68 error = __acl_get_file(path_p, type, &aclp->ats_acl); 70 acl_free(aclp); 74 aclp->ats_acl.acl_maxcnt = ACL_MAX_ENTRIES; 75 _acl_brand_from_type(aclp, type); 77 return (aclp); 83 acl_t aclp; local 86 aclp 115 acl_t aclp; local [all...] |
H A D | acl_strip.c | 42 void acl_nfs4_sync_mode_from_acl(mode_t *_mode, const struct acl *aclp); 43 void acl_nfs4_trivial_from_mode_libc(struct acl *aclp, int file_owner_id, 47 _nfs4_acl_strip_np(const acl_t aclp, int canonical_six) argument 60 acl_nfs4_sync_mode_from_acl(&mode, &(aclp->ats_acl)); 67 _posix1e_acl_strip_np(const acl_t aclp, int recalculate_mask) argument 75 assert(_acl_brand(aclp) == ACL_BRAND_POSIX); 77 acl_old = acl_dup(aclp); 136 acl_strip_np(const acl_t aclp, int recalculate_mask) argument 138 switch (_acl_brand(aclp)) { 140 return (_nfs4_acl_strip_np(aclp, 159 acl_is_trivial_np(const acl_t aclp, int *trivialp) argument [all...] |
H A D | acl_branding.c | 52 acl_t aclp; local 54 aclp = (acl_t)(((long)entry >> _ACL_T_ALIGNMENT_BITS) << _ACL_T_ALIGNMENT_BITS); 56 return (aclp);
|
H A D | acl_from_text.c | 49 int _nfs4_acl_entry_from_text(acl_t aclp, char *entry); 82 _posix1e_acl_entry_from_text(acl_t aclp, char *entry) argument 90 assert(_acl_brand(aclp) == ACL_BRAND_POSIX); 160 error = _posix1e_acl_add_entry(aclp, t, id, p);
|
H A D | acl_from_text_nfs4.c | 202 _nfs4_acl_entry_from_text(acl_t aclp, char *str) argument 208 error = acl_create_entry(&aclp, &entry); 280 acl_delete_entry(aclp, entry);
|
H A D | acl_to_text_nfs4.c | 228 _nfs4_acl_to_text_np(const acl_t aclp, ssize_t *len_p, int flags) argument 234 if (aclp->ats_acl.acl_cnt == 0) 237 size = aclp->ats_acl.acl_cnt * MAX_ENTRY_LENGTH; 242 while (acl_get_entry(aclp, entry_id, &entry) == 1) {
|
/freebsd-10.1-release/sys/cddl/compat/opensolaris/sys/ |
H A 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-10.1-release/sys/ufs/ufs/ |
H A D | acl.h | 40 int ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td); 41 int ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td);
|
H A D | ufs_acl.c | 152 ufs_getacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struct thread *td) argument 157 len = sizeof(*aclp); 158 bzero(aclp, len); 162 &len, (char *) aclp, td); 163 aclp->acl_maxcnt = ACL_MAX_ENTRIES; 169 acl_nfs4_sync_acl_from_mode(aclp, ip->i_mode, ip->i_uid); 177 if (len != sizeof(*aclp)) { 191 error = acl_nfs4_check(aclp, vp->v_type == VDIR); 356 struct acl *aclp; 378 ufs_setacl_nfs4_internal(struct vnode *vp, struct acl *aclp, struc argument [all...] |
H A D | ufs_vnops.c | 684 struct acl *aclp; local 686 aclp = acl_alloc(M_WAITOK); 687 error = ufs_getacl_nfs4_internal(vp, aclp, td); 695 acl_nfs4_sync_acl_from_mode(aclp, mode, file_owner_id); 696 error = ufs_setacl_nfs4_internal(vp, aclp, td); 699 acl_free(aclp);
|
/freebsd-10.1-release/sys/kern/ |
H A D | subr_acl_nfs4.c | 60 static void acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode); 110 _acl_denies(const struct acl *aclp, int access_mask, struct ucred *cred, argument 119 KASSERT(aclp->acl_cnt <= ACL_MAX_ENTRIES, 120 ("aclp->acl_cnt <= ACL_MAX_ENTRIES")); 122 for (i = 0; i < aclp->acl_cnt; i++) { 123 entry = &(aclp->acl_entry[i]); 173 struct acl *aclp, accmode_t accmode, struct ucred *cred, int *privused) 225 denied = _acl_denies(aclp, access_mask, cred, file_uid, file_gid, 239 acl_nfs4_sync_mode_from_acl(&file_mode, aclp); 329 _acl_append(struct acl *aclp, acl_tag_ argument 172 vaccess_acl_nfs4(enum vtype type, uid_t file_uid, gid_t file_gid, struct acl *aclp, accmode_t accmode, struct ucred *cred, int *privused) argument 350 _acl_duplicate_entry(struct acl *aclp, int entry_index) argument 366 acl_nfs4_sync_acl_from_mode_draft(struct acl *aclp, mode_t mode, int file_owner_id) argument 712 acl_nfs4_sync_acl_from_mode(struct acl *aclp, mode_t mode, int file_owner_id) argument 724 acl_nfs4_sync_mode_from_acl(mode_t *_mode, const struct acl *aclp) argument 1133 acl_nfs4_compute_inherited_acl_psarc(const struct acl *parent_aclp, struct acl *aclp, mode_t mode, int file_owner_id, int is_directory) argument 1213 acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode) argument 1226 acl_nfs4_trivial_from_mode_libc(struct acl *aclp, int mode, int canonical_six) argument 1267 acl_nfs4_is_trivial(const struct acl *aclp, int file_owner_id) argument 1309 acl_nfs4_check(const struct acl *aclp, int is_directory) argument [all...] |
H A D | vfs_acl.c | 63 acl_type_t type, struct acl *aclp); 65 acl_type_t type, struct acl *aclp); 67 acl_type_t type, struct acl *aclp); 199 * (unlocked). The aclp pointer is assumed still to point to userland, so 209 struct acl *aclp) 216 error = acl_copyin(aclp, inkernelacl, type); 245 struct acl *aclp) 265 error = acl_copyout(inkernelacl, aclp, type); 302 struct acl *aclp) 308 error = acl_copyin(aclp, inkernelac 208 vacl_set_acl(struct thread *td, struct vnode *vp, acl_type_t type, struct acl *aclp) argument 244 vacl_get_acl(struct thread *td, struct vnode *vp, acl_type_t type, struct acl *aclp) argument 301 vacl_aclcheck(struct thread *td, struct vnode *vp, acl_type_t type, struct acl *aclp) argument 546 struct acl *aclp; local 558 acl_free(struct acl *aclp) argument [all...] |
H A D | systrace_args.c | 1859 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1868 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1877 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1886 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1911 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1920 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 2388 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 2397 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 2414 uarg[2] = (intptr_t) p->aclp; /* struct acl * */
|
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | 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) argument 494 while (aclnode = list_head(&aclp->z_acl)) { 495 list_remove(&aclp 503 zfs_acl_free(zfs_acl_t *aclp) argument 533 zfs_ace_valid(vtype_t obj_type, zfs_acl_t *aclp, uint16_t type, uint16_t iflags) argument 571 zfs_acl_next_ace(zfs_acl_t *aclp, void *start, uint64_t *who, uint32_t *access_mask, uint16_t *iflags, uint16_t *type) argument 635 zfs_acl_t *aclp = datap; local 645 zfs_acl_curr_node(zfs_acl_t *aclp) argument 657 zfs_copy_ace_2_fuid(zfsvfs_t *zfsvfs, vtype_t obj_type, zfs_acl_t *aclp, void *datap, zfs_ace_t *z_acl, uint64_t aclcnt, size_t *size, zfs_fuid_info_t **fuidp, cred_t *cr) argument 719 zfs_copy_fuid_2_ace(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, cred_t *cr, void *datap, int filter) argument 776 zfs_copy_ace_2_oldace(vtype_t obj_type, zfs_acl_t *aclp, ace_t *acep, zfs_oldace_t *z_acl, int aclcnt, size_t *size) argument 802 zfs_acl_xform(znode_t *zp, zfs_acl_t *aclp, cred_t *cr) argument 872 zfs_set_ace(zfs_acl_t *aclp, void *acep, uint32_t access_mask, uint16_t access_type, uint64_t fuid, uint16_t entry_type) argument 890 zfs_mode_compute(uint64_t fmode, zfs_acl_t *aclp, uint64_t *pflags, uint64_t fuid, uint64_t fgid) argument 1064 zfs_acl_t *aclp; local 1162 zfs_acl_t *aclp; local 1181 zfs_aclset_common(znode_t *zp, zfs_acl_t *aclp, cred_t *cr, dmu_tx_t *tx) argument 1333 zfs_acl_chmod(vtype_t vtype, uint64_t mode, boolean_t trim, zfs_acl_t *aclp) argument 1443 zfs_acl_chmod_setattr(znode_t *zp, zfs_acl_t **aclp, uint64_t mode) argument 1469 zfs_restricted_update(zfsvfs_t *zfsvfs, zfs_acl_t *aclp, void *acep) argument 1506 zfs_acl_t *aclp = NULL; local 1776 zfs_acl_t *aclp; local 1874 zfs_acl_t *aclp; local 1936 zfs_acl_t *aclp; local 2111 zfs_acl_t *aclp; local [all...] |
H A D | zfs_vnops.c | 3003 zfs_acl_t *aclp; local 3082 aclp = NULL; 3362 if (err = zfs_acl_chmod_setattr(zp, &aclp, new_mode)) 3377 0, aclp->z_acl_bytes); 3380 aclp->z_acl_bytes); 3382 } else if (!zp->z_is_sa && aclp->z_acl_bytes > ZFS_ACE_SPACE) { 3384 0, aclp->z_acl_bytes); 3478 ASSERT3U((uintptr_t)aclp, !=, 0); 3479 err = zfs_aclset_common(zp, aclp, cr, tx); 3483 zp->z_acl_cached = aclp; [all...] |
/freebsd-10.1-release/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_acl.c | 102 acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries) argument 123 bzero(aclp, sizeof(*aclp)); 124 aclp->acl_maxcnt = ACL_MAX_ENTRIES; 125 aclp->acl_cnt = nentries; 128 entry = &(aclp->acl_entry[i]); 172 aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp) argument 178 bzero(aces, sizeof(*aces) * aclp->acl_cnt); 180 *nentries = aclp->acl_cnt; 182 for (i = 0; i < aclp [all...] |
/freebsd-10.1-release/sys/cddl/contrib/opensolaris/common/acl/ |
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,
|
H A D | 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 297 acl_free(acl_t *aclp) argument 683 aclent_t *aclp; local 1505 acl_translate(acl_t *aclp, int target_flavor, boolean_t isdir, uid_t owner, gid_t group) argument [all...] |
/freebsd-10.1-release/sys/fs/nfs/ |
H A D | nfs_commonacl.c | 390 nfsrv_buildacl(struct nfsrv_descript *nd, NFSACL_T *aclp, enum vtype type, argument 403 for (i = 0; i < aclp->acl_cnt; i++) { 405 switch (aclp->acl_entry[i].ae_tag) { 422 nfsv4_uidtostr(aclp->acl_entry[i].ae_id, &name, 430 nfsv4_gidtostr((gid_t)aclp->acl_entry[i].ae_id, &name, 439 isowner, &aclp->acl_entry[i]); 452 nfsrv_setacl(vnode_t vp, NFSACL_T *aclp, struct ucred *cred, argument 467 if (aclp->acl_cnt > (ACL_MAX_ENTRIES - 6) / 2) { 471 error = VOP_SETACL(vp, ACL_TYPE_NFS4, aclp, cred, p);
|
H A D | nfs_commonsubs.c | 683 * If the aclp == NULL or won't fit in an acl, just discard the acl info. 686 nfsrv_dissectacl(struct nfsrv_descript *nd, NFSACL_T *aclp, int *aclerrp, argument 694 if (aclp) 695 aclp->acl_cnt = 0; 708 if (aclp && !aceerr) 709 error = nfsrv_dissectace(nd, &aclp->acl_entry[i], 717 if (aclp && !aceerr) 718 aclp->acl_cnt = acecnt; 801 struct nfsfsinfo *fsp, NFSACL_T *aclp, int compare, int *retcmpp, 1065 if (aceerr || aclp 798 nfsv4_loadattr(struct nfsrv_descript *nd, vnode_t vp, struct nfsvattr *nap, struct nfsfh **nfhpp, fhandle_t *fhp, int fhsize, struct nfsv3_pathconf *pc, struct statfs *sbp, struct nfsstatfs *sfp, struct nfsfsinfo *fsp, NFSACL_T *aclp, int compare, int *retcmpp, u_int32_t *leasep, u_int32_t *rderrp, NFSPROC_T *p, struct ucred *cred) argument 2022 NFSACL_T *aclp, *naclp = NULL; local [all...] |
/freebsd-10.1-release/sys/sys/ |
H A D | acl.h | 297 void acl_free(struct acl *aclp); 299 void acl_nfs4_sync_acl_from_mode(struct acl *aclp, 302 const struct acl *aclp); 303 int acl_nfs4_is_trivial(const struct acl *aclp, 322 int acl_nfs4_check(const struct acl *aclp, int is_directory);
|
/freebsd-10.1-release/sys/fs/nfsserver/ |
H A D | nfs_nfsdserv.c | 78 NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp, char *pathcp, 83 int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, 301 NFSACL_T *aclp = NULL; local 308 aclp = acl_alloc(M_WAITOK); 309 aclp->acl_cnt = 0; 318 error = nfsrv_sattr(nd, &nva, &attrbits, aclp, p); 338 acl_free(aclp); 429 if (!nd->nd_repstat && aclp->acl_cnt > 0 && 431 nd->nd_repstat = nfsrv_setacl(vp, aclp, nd->nd_cred, p); 447 acl_free(aclp); 1148 NFSACL_T *aclp = NULL; local 1783 nfsrvd_symlinksub(struct nfsrv_descript *nd, struct nameidata *ndp, struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, vnode_t dirp, struct nfsvattr *dirforp, struct nfsvattr *diraftp, int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp, char *pathcp, int pathlen) argument 1916 nfsrvd_mkdirsub(struct nfsrv_descript *nd, struct nameidata *ndp, struct nfsvattr *nvap, fhandle_t *fhp, vnode_t *vpp, vnode_t dirp, struct nfsvattr *dirforp, struct nfsvattr *diraftp, int *diraft_retp, nfsattrbit_t *attrbitp, NFSACL_T *aclp, NFSPROC_T *p, struct nfsexstuff *exp) argument 2572 NFSACL_T *aclp = NULL; local [all...] |
H A D | nfs_nfsdsubs.c | 1569 struct nfsvattr *nvap, NFSACL_T *aclp, NFSPROC_T *p, nfsattrbit_t *attrbitp, 1635 nfsrv_useacl != 0 && aclp != NULL) { 1636 if (aclp->acl_cnt > 0) { 1637 error = nfsrv_setacl(vp, aclp, nd->nd_cred, p); 1568 nfsrv_fixattr(struct nfsrv_descript *nd, vnode_t vp, struct nfsvattr *nvap, NFSACL_T *aclp, NFSPROC_T *p, nfsattrbit_t *attrbitp, struct nfsexstuff *exp) argument
|
/freebsd-10.1-release/bin/cp/ |
H A D | utils.c | 451 struct acl *aclp; local 500 aclp = &acl->ats_acl; 501 if (aclp->acl_cnt != 0 && aclsetf(dest_dir,
|
/freebsd-10.1-release/sys/compat/freebsd32/ |
H A D | freebsd32_systrace_args.c | 1751 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1760 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1769 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1778 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1803 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 1812 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 2172 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 2181 uarg[2] = (intptr_t) p->aclp; /* struct acl * */ 2198 uarg[2] = (intptr_t) p->aclp; /* struct acl * */
|