/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_acl.c | 463 zfs_acl_t *aclp; in zfs_acl_alloc() local 465 aclp = kmem_zalloc(sizeof (zfs_acl_t), KM_SLEEP); in zfs_acl_alloc() 466 list_create(&aclp->z_acl, sizeof (zfs_acl_node_t), in zfs_acl_alloc() 468 aclp->z_version = vers; in zfs_acl_alloc() 470 aclp->z_ops = zfs_acl_fuid_ops; in zfs_acl_alloc() 472 aclp->z_ops = zfs_acl_v0_ops; in zfs_acl_alloc() 473 return (aclp); in zfs_acl_alloc() 501 zfs_acl_release_nodes(zfs_acl_t *aclp) in zfs_acl_release_nodes() argument 505 while (aclnode = list_head(&aclp->z_acl)) { in zfs_acl_release_nodes() 506 list_remove(&aclp->z_acl, aclnode); in zfs_acl_release_nodes() [all …]
|
/illumos-gate/usr/src/lib/libsec/common/ |
H A D | acltext.c | 206 aclent_printacl(acl_t *aclp) in aclent_printacl() argument 217 aclcnt = aclp->acl_cnt; in aclent_printacl() 218 for (tp = aclp->acl_aclp; tp && aclcnt--; tp++) { in aclent_printacl() 222 aclcnt = aclp->acl_cnt; in aclent_printacl() 223 for (tp = aclp->acl_aclp; aclcnt--; tp++) { in aclent_printacl() 332 aclent_type_txt(dynaclstr_t *dstr, aclent_t *aclp, int flags) in aclent_type_txt() argument 337 switch (aclp->a_type) { in aclent_type_txt() 340 if (aclp->a_type == USER_OBJ) in aclent_type_txt() 348 if (aclp->a_type == USER) in aclent_type_txt() 354 error = str_append(dstr, pruname(aclp->a_id, idp, in aclent_type_txt() [all …]
|
H A D | aclutils.c | 101 cacl_get(acl_inp inp, int get_flag, int type, acl_t **aclp) in cacl_get() argument 113 *aclp = NULL; in cacl_get() 218 *aclp = acl_info; in cacl_get() 227 acl_get(const char *path, int get_flag, acl_t **aclp) in acl_get() argument 232 return (cacl_get(acl_inp, get_flag, ACL_PATH, aclp)); in acl_get() 236 facl_get(int fd, int get_flag, acl_t **aclp) in facl_get() argument 242 return (cacl_get(acl_inp, get_flag, ACL_FD, aclp)); in facl_get() 249 cacl_set(acl_inp *acl_inp, acl_t *aclp, int type) in cacl_set() argument 283 if ((error = acl_translate(aclp, acl_flavor_target, isdir, in cacl_set() 290 (aclp->acl_type == ACE_T) ? ACE_SETACL : SETACL, in cacl_set() [all …]
|
H A D | aclcheck.c | 300 ace_aclcheck(acl_t *aclp, int isdir) in ace_aclcheck() argument 310 if (aclp->acl_cnt <= 0 || aclp->acl_cnt > MAX_ACL_ENTRIES) in ace_aclcheck() 313 for (i = 0, acep = aclp->acl_aclp; in ace_aclcheck() 314 i != aclp->acl_cnt && error == 0; i++, acep++) { in ace_aclcheck() 361 acl_check(acl_t *aclp, int flag) in acl_check() argument 366 switch (aclp->acl_type) { in acl_check() 368 error = aclent_aclcheck(aclp->acl_aclp, aclp->acl_cnt, in acl_check() 372 error = ace_aclcheck(aclp, flag); in acl_check()
|
/illumos-gate/usr/src/cmd/chmod/ |
H A D | chmod.c | 149 static int doacl(char *file, struct stat *st, acl_args_t *aclp); 675 aclent_t *aclp, *tp; in handle_acl() local 686 if ((aclp = (aclent_t *)malloc((sizeof (aclent_t)) * aclcnt)) in handle_acl() 692 if (acl(name, GETACL, aclcnt, aclp) < 0) { in handle_acl() 693 free(aclp); in handle_acl() 698 for (tp = aclp, n = aclcnt; n--; tp++) { in handle_acl() 707 if (acl(name, SETACL, aclcnt, aclp) in handle_acl() 716 free(aclp); in handle_acl() 722 acl_t *aclp; in doacl() local 730 error = acl_get(file, 0, &aclp); in doacl() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass3b.c | 59 struct inoinfo *aclp; in pass3b() local 88 aclp = aclpsort[inumber]; in pass3b() 89 if ((int64_t)aclp->i_isize > acl_size_limit) { in pass3b() 93 (longlong_t)aclp->i_isize, in pass3b() 106 if ((int64_t)aclp->i_isize > maxaclsize) in pass3b() 107 maxaclsize = (int64_t)aclp->i_isize; in pass3b() 125 aclp = aclpsort[inumber]; in pass3b() 126 if ((int64_t)aclp->i_isize > acl_size_limit) { in pass3b() 129 if ((statemap[aclp->i_number] & STMASK) != SSTATE) { in pass3b() 132 dp = ginode(aclp->i_number); in pass3b() [all …]
|
H A D | inode.c | 904 struct inoinfo *aclp; in cacheacl() local 909 aclp = (struct inoinfo *) in cacheacl() 910 malloc(sizeof (*aclp) + (blks - 1) * sizeof (daddr32_t)); in cacheacl() 911 if (aclp == NULL) in cacheacl() 914 aclp->i_nextlist = *aclpp; in cacheacl() 915 *aclpp = aclp; in cacheacl() 916 aclp->i_number = inum; in cacheacl() 917 aclp->i_isize = (offset_t)dp->di_size; in cacheacl() 918 aclp->i_blkssize = (size_t)(blks * sizeof (daddr32_t)); in cacheacl() 919 (void) memmove(&aclp->i_blks[0], &dp->di_db[0], aclp->i_blkssize); in cacheacl() [all …]
|
/illumos-gate/usr/src/cmd/setfacl/ |
H A D | setfacl.c | 74 aclent_t *aclp; /* used by -m -d */ in main() local 163 aclcnt = get_acl_info(filep, &aclp); in main() 166 if (mod_entries(aclp, aclcnt, work_mp, in main() 241 mod_entries(aclent_t *aclp, int cnt, char *modp, char *delp, in mod_entries() argument 245 if (parse_entry_list(&aclp, &cnt, modp, MODIFY) == -1) in mod_entries() 249 if (parse_entry_list(&aclp, &cnt, delp, DELETE) == -1) in mod_entries() 252 if (aclsort(cnt, rfg, aclp) == -1) { in mod_entries() 253 (void) err_handle(cnt, aclp); in mod_entries() 259 if (acl(fnamep, SETACL, cnt, aclp) < 0) { in mod_entries() 279 aclent_t *aclp; in set_file_entries() local [all …]
|
/illumos-gate/usr/src/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 | 54 extern void acl_free(acl_t *aclp); 55 extern int acl_translate(acl_t *aclp, int target_flavor, boolean_t isdir,
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_acl.c | 421 aclent_t *aclp; in ufs_si_load() local 514 aclp = vsecattr.vsa_aclentp = in ufs_si_load() 518 aclp->a_type = ufsaclp->acl_tag; in ufs_si_load() 519 aclp->a_id = ufsaclp->acl_who; in ufs_si_load() 520 aclp->a_perm = ufsaclp->acl_perm; in ufs_si_load() 521 aclp++; in ufs_si_load() 529 aclp = vsecattr.vsa_dfaclentp = in ufs_si_load() 533 aclp->a_type = ufsaclp->acl_tag; in ufs_si_load() 534 aclp->a_id = ufsaclp->acl_who; in ufs_si_load() 535 aclp->a_perm = ufsaclp->acl_perm; in ufs_si_load() [all …]
|
/illumos-gate/usr/src/test/libsec-tests/cmd/ |
H A D | acl_from_text.c | 98 acl_t *aclp = NULL; /* acl info */ in main() local 117 err = acl_fromtext(str, &aclp); in main() 124 if (acl_compare(aclp, &acl_canned) != 0) { in main() 129 acl_free(aclp); in main() 130 aclp = NULL; in main()
|
H A D | acl_to_text.c | 36 acl_t *aclp = &acl_canned; in main() local 60 str = acl_totext(aclp, flags); in main()
|
/illumos-gate/usr/src/cmd/getfacl/ |
H A D | getfacl.c | 72 aclent_t *aclp; in main() local 127 if ((aclp = (aclent_t *)malloc(sizeof (aclent_t) * aclcnt)) in main() 135 if (acl(filep, GETACL, aclcnt, aclp) < 0) { in main() 143 for (tp = aclp; aclcnt--; tp++) { in main() 154 for (tp = aclp; aclcnt--; tp++) { in main() 267 free(aclp); in main()
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | acl_api.c | 211 smbfs_acl_get(int fd, acl_t **aclp, uid_t *uidp, gid_t *gidp) in smbfs_acl_get() argument 226 if (aclp) in smbfs_acl_get() 249 if (aclp) { in smbfs_acl_get() 261 if (aclp) { in smbfs_acl_get() 262 *aclp = acl; in smbfs_acl_get()
|
/illumos-gate/usr/src/cmd/unpack/ |
H A D | unpack.c | 246 acl_t *aclp = NULL; in main() local 358 error = facl_get(infile, ACL_NO_TRIVIAL, &aclp); in main() 457 if (aclp && (facl_set(outfile, aclp) < 0)) { in main() 472 if (aclp) { in main() 473 acl_free(aclp); in main() 474 aclp = NULL; in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rcp.c | 1868 acl_t *aclp; in sendacl() local 1874 aclerror = facl_get(f, ACL_NO_TRIVIAL, &aclp); in sendacl() 1886 if (aclp && (acl_type(aclp) != ACLENT_T) && (acl_aclflag == 0)) { in sendacl() 1892 aclcnt = (aclp != NULL) ? acl_cnt(aclp) : 0; in sendacl() 1894 if (aclp) { in sendacl() 1895 acltype = (acl_type(aclp) != ACLENT_T) ? 'Z' : 'A'; in sendacl() 1896 aclcnt = acl_cnt(aclp); in sendacl() 1897 trivial = (acl_flags(aclp) & ACL_IS_TRIVIAL); in sendacl() 1914 if (aclp && (trivial != ACL_IS_TRIVIAL)) { in sendacl() 1915 acltext = acl_totext(aclp, 0); in sendacl() [all …]
|
/illumos-gate/usr/src/cmd/pack/ |
H A D | pack.c | 347 acl_t *aclp = NULL; in main() local 465 error = facl_get(infile, ACL_NO_TRIVIAL, &aclp); in main() 570 if (aclp && (facl_set(outfile, aclp) < 0)) { in main() 581 if (aclp) { in main() 582 acl_free(aclp); in main() 583 aclp = NULL; in main()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | acl.c | 130 aclent_t *aclp, *aaclp; in cacl() local 278 for (numacls = 0, aclp = vsecattr.vsa_aclentp; in cacl() 280 aclp++, numacls++) { in cacl() 281 if (aclp->a_type & ACL_DEFAULT) in cacl() 289 vsecattr.vsa_dfaclentp = aclp; in cacl()
|
/illumos-gate/usr/src/cmd/cpio/ |
H A D | cpio.c | 531 acl_t *aclp; variable 749 if (aclp != NULL) { in main() 750 acl_free(aclp); in main() 751 aclp = NULL; in main() 781 if (aclp != NULL) { in main() 782 acl_free(aclp); in main() 783 aclp = NULL; in main() 807 if (aclp != NULL) { in main() 808 acl_free(aclp); in main() 809 aclp = NULL; in main() [all …]
|
/illumos-gate/usr/src/cmd/bart/ |
H A D | create.c | 613 acl_t *aclp; in get_acl_string() local 624 error = acl_get(fname, 0, &aclp); in get_acl_string() 631 acltext = acl_totext(aclp, 0); in get_acl_string() 632 acl_free(aclp); in get_acl_string()
|
/illumos-gate/usr/src/ucbcmd/ls/ |
H A D | ls.c | 323 aclent_t *aclp; in gstat() local 441 if ((aclp = (aclent_t *)malloc( in gstat() 447 if (acl(file, GETACL, aclcnt, aclp) < 0) { in gstat() 448 free(aclp); in gstat() 464 for (tp = aclp; aclcnt--; tp++) { in gstat() 478 free(aclp); in gstat()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_quota.c | 1133 acl_t *aclp, *existing_aclp; in smb_quota_add_ctrldir() local 1228 aclp = NULL; in smb_quota_add_ctrldir() 1230 if (acl_fromtext(SMB_QUOTA_CNTRL_PERM, &aclp) != 0) { in smb_quota_add_ctrldir() 1237 if (acl_set(file, aclp) == -1) { in smb_quota_add_ctrldir() 1242 acl_free(aclp); in smb_quota_add_ctrldir() 1245 acl_free(aclp); in smb_quota_add_ctrldir()
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_tar.c | 439 acl_t *aclp = NULL; in get_acl_info() local 448 erc = acl_get(name, ACL_NO_TRIVIAL, &aclp); in get_acl_info() 455 if (aclp && (acltp = acl_totext(aclp, in get_acl_info() 459 acl_free(aclp); in get_acl_info() 477 acl_t *aclp = NULL; in get_dir_acl_info() local 517 erc = acl_get(fil, ACL_NO_TRIVIAL, &aclp); in get_dir_acl_info() 524 if (aclp && (acltp = acl_totext(aclp, in get_dir_acl_info() 528 acl_free(aclp); in get_dir_acl_info()
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_vops.c | 1382 smb_vop_acl_read(vnode_t *vp, acl_t **aclp, int flags, acl_type_t acl_type, in smb_vop_acl_read() argument 1389 ASSERT(aclp); in smb_vop_acl_read() 1391 *aclp = NULL; in smb_vop_acl_read() 1411 *aclp = smb_fsacl_from_vsa(&vsecattr, acl_type); in smb_vop_acl_read() 1413 (*aclp)->acl_flags |= ACL_IS_DIR; in smb_vop_acl_read() 1424 smb_vop_acl_write(vnode_t *vp, acl_t *aclp, int flags, cred_t *cr) in smb_vop_acl_write() argument 1431 ASSERT(aclp); in smb_vop_acl_write() 1433 error = smb_fsacl_to_vsa(aclp, &vsecattr, &aclbsize); in smb_vop_acl_write()
|