/titanic_41/usr/src/cmd/setfacl/ |
H A D | setfacl.c | 543 err_handle(int cnt, aclent_t *aclentp) in err_handle() argument 548 rc = aclcheck(aclentp, cnt, &which); in err_handle() 603 parse_entry(char *fieldp, aclent_t *aclentp, int mode) in parse_entry() argument 633 aclentp->a_type = DEF_USER; in parse_entry() 635 aclentp->a_type = USER; in parse_entry() 639 aclentp->a_type = DEF_GROUP; in parse_entry() 641 aclentp->a_type = GROUP; in parse_entry() 645 aclentp->a_type = DEF_CLASS_OBJ; in parse_entry() 647 aclentp->a_type = CLASS_OBJ; in parse_entry() 651 aclentp->a_type = DEF_OTHER_OBJ; in parse_entry() [all …]
|
/titanic_41/usr/src/lib/libsec/common/ |
H A D | aclcheck.c | 74 aclent_t *aclentp; in aclent_aclcheck() local 81 for (aclentp = aclbufp; nentries > 0; nentries--, aclentp++) { in aclent_aclcheck() 82 switch (aclentp->a_type) { in aclent_aclcheck() 86 *which = (int)(aclentp - aclbufp); in aclent_aclcheck() 97 *which = (int)(aclentp - aclbufp); in aclent_aclcheck() 108 *which = (int)(aclentp - aclbufp); in aclent_aclcheck() 119 *which = (int)(aclentp - aclbufp); in aclent_aclcheck() 132 if (aclentp->a_type == DEF_USER) { in aclent_aclcheck() 135 } else if (aclentp->a_type == DEF_GROUP) { in aclent_aclcheck() 138 } else if (aclentp->a_type == USER) { in aclent_aclcheck() [all …]
|
H A D | acltext.c | 792 aclent_t *aclentp; in aclfromtext() local 799 aclentp = aclp->acl_aclp; in aclfromtext() 804 return (aclentp); in aclfromtext()
|
/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | ufs_acl.c | 716 aclent_t *aclentp; in ufs_acl_get() local 745 aclentp = vsap->vsa_aclentp; in ufs_acl_get() 748 aclentp->a_type = USER_OBJ; in ufs_acl_get() 749 aclentp->a_perm = ((ushort_t)(ip->i_mode & 0700)) >> 6; in ufs_acl_get() 750 aclentp->a_id = ip->i_uid; /* Really undefined */ in ufs_acl_get() 751 aclentp++; in ufs_acl_get() 754 aclentp->a_type = GROUP_OBJ; in ufs_acl_get() 755 aclentp->a_perm = ((ushort_t)(ip->i_mode & 0070)) >> 3; in ufs_acl_get() 756 aclentp->a_id = ip->i_gid; /* Really undefined */ in ufs_acl_get() 757 aclentp++; in ufs_acl_get() [all …]
|
/titanic_41/usr/src/uts/common/fs/ |
H A D | fs_subr.c | 542 aclent_t *aclentp; in fs_fab_acl() local 561 aclentp = vsecattr->vsa_aclentp; in fs_fab_acl() 563 aclentp->a_type = USER_OBJ; /* Owner */ in fs_fab_acl() 564 aclentp->a_perm = ((ushort_t)(vattr.va_mode & 0700)) >> 6; in fs_fab_acl() 565 aclentp->a_id = vattr.va_uid; /* Really undefined */ in fs_fab_acl() 566 aclentp++; in fs_fab_acl() 568 aclentp->a_type = GROUP_OBJ; /* Group */ in fs_fab_acl() 569 aclentp->a_perm = ((ushort_t)(vattr.va_mode & 0070)) >> 3; in fs_fab_acl() 570 aclentp->a_id = vattr.va_gid; /* Really undefined */ in fs_fab_acl() 571 aclentp++; in fs_fab_acl() [all …]
|
/titanic_41/usr/src/common/acl/ |
H A D | acl_common.c | 673 convert_aent_to_ace(aclent_t *aclentp, int aclcnt, boolean_t isdir, in convert_aent_to_ace() argument 687 ksort((caddr_t)aclentp, aclcnt, sizeof (aclent_t), cmp2acls); in convert_aent_to_ace() 689 for (i = 0, aclp = aclentp; i < aclcnt; aclp++, i++) { in convert_aent_to_ace() 703 error = ln_aent_to_ace(aclentp, i, &acep, &acecnt, isdir); in convert_aent_to_ace() 708 error = ln_aent_to_ace(&aclentp[dfaclstart], dfaclcnt, in convert_aent_to_ace() 1086 ace_list_to_aent(ace_list_t *list, aclent_t **aclentp, int *aclcnt, in ace_list_to_aent() argument 1206 *aclentp = result; in ace_list_to_aent() 1266 aclent_t **aclentp, int *aclcnt, aclent_t **dfaclentp, int *dfaclcnt, in ln_ace_to_aent() argument 1276 *aclentp = NULL; in ln_ace_to_aent() 1438 error = ace_list_to_aent(normacl, aclentp, aclcnt, in ln_ace_to_aent() [all …]
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs_srv.c | 2889 aclent_t *aclentp; in acl_perm() local 2904 aclentp = vsa.vsa_aclentp; in acl_perm() 2909 for (; aclcnt > 0; aclcnt--, aclentp++) { in acl_perm() 2910 switch (aclentp->a_type) { in acl_perm() 2915 aclentp->a_perm << 3; in acl_perm() 2916 other_perm |= aclentp->a_perm; in acl_perm() 2920 aclentp->a_perm << 3; in acl_perm() 2923 other_perm |= aclentp->a_perm; in acl_perm() 2926 other_orig = aclentp->a_perm; in acl_perm() 2929 mask_perm = aclentp->a_perm; in acl_perm() [all …]
|
H A D | nfs4_acl.c | 1257 ace4_list_to_aent(ace4_list_t *list, aclent_t **aclentp, int *aclcnt, in ace4_list_to_aent() argument 1360 *aclentp = result; in ace4_list_to_aent() 1379 aclent_t **aclentp, int *aclcnt, in ln_ace4_to_aent() argument 1390 *aclentp = NULL; in ln_ace4_to_aent() 1561 error = ace4_list_to_aent(normacl, aclentp, aclcnt, in ln_ace4_to_aent()
|
/titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fake_vop.c | 1078 aclent_t *aclentp; in fop_getsecattr() local 1084 aclentp = vsecattr->vsa_aclentp; in fop_getsecattr() 1086 aclentp->a_type = OTHER_OBJ; in fop_getsecattr() 1087 aclentp->a_perm = 0777; in fop_getsecattr() 1088 aclentp->a_id = (gid_t)-1; in fop_getsecattr() 1089 aclentp++; in fop_getsecattr()
|