Lines Matching refs:pydesc
1308 struct POSIX_SECURITY *pydesc; in ntfs_build_basic_posix() local
1311 pydesc = (struct POSIX_SECURITY*)malloc( in ntfs_build_basic_posix()
1313 if (pydesc) { in ntfs_build_basic_posix()
1314 pyace = &pydesc->acl.ace[0]; in ntfs_build_basic_posix()
1318 pyace = &pydesc->acl.ace[1]; in ntfs_build_basic_posix()
1322 pyace = &pydesc->acl.ace[2]; in ntfs_build_basic_posix()
1326 pydesc->mode = mode; in ntfs_build_basic_posix()
1327 pydesc->tagsset = POSIX_ACL_USER_OBJ in ntfs_build_basic_posix()
1330 pydesc->acccnt = 3; in ntfs_build_basic_posix()
1331 pydesc->defcnt = 0; in ntfs_build_basic_posix()
1332 pydesc->firstdef = 6; in ntfs_build_basic_posix()
1333 pydesc->filler = 0; in ntfs_build_basic_posix()
1334 pydesc->acl.version = POSIX_VERSION; in ntfs_build_basic_posix()
1335 pydesc->acl.flags = 0; in ntfs_build_basic_posix()
1336 pydesc->acl.filler = 0; in ntfs_build_basic_posix()
1339 return (pydesc); in ntfs_build_basic_posix()
1353 struct POSIX_SECURITY *pydesc; in ntfs_build_inherited_posix() local
1368 pydesc = (struct POSIX_SECURITY*)malloc( in ntfs_build_inherited_posix()
1370 if (pydesc) { in ntfs_build_inherited_posix()
1379 pyace = &pydesc->acl.ace[i]; in ntfs_build_inherited_posix()
1400 pydesc->acccnt = defcnt; in ntfs_build_inherited_posix()
1411 pyace = &pydesc->acl.ace[i]; in ntfs_build_inherited_posix()
1420 pyace = &pydesc->acl.ace[i]; in ntfs_build_inherited_posix()
1429 pyace = &pydesc->acl.ace[i]; in ntfs_build_inherited_posix()
1436 pydesc->acccnt = i; in ntfs_build_inherited_posix()
1437 pydesc->firstdef = i; in ntfs_build_inherited_posix()
1438 pydesc->defcnt = 0; in ntfs_build_inherited_posix()
1439 ntfs_sort_posix(pydesc); in ntfs_build_inherited_posix()
1445 pydesc->firstdef = pydesc->acccnt; in ntfs_build_inherited_posix()
1448 memcpy(&pydesc->acl.ace[pydesc->firstdef], in ntfs_build_inherited_posix()
1450 pydesc->defcnt = defcnt; in ntfs_build_inherited_posix()
1452 pydesc->defcnt = 0; in ntfs_build_inherited_posix()
1455 posix_header(pydesc, mode & 07000); in ntfs_build_inherited_posix()
1456 if (!ntfs_valid_posix(pydesc)) { in ntfs_build_inherited_posix()
1459 free(pydesc); in ntfs_build_inherited_posix()
1460 pydesc = (struct POSIX_SECURITY*)NULL; in ntfs_build_inherited_posix()
1464 return (pydesc); in ntfs_build_inherited_posix()