Lines Matching refs:mapping

1150 		user = scx->mapping[MAPUSERS];
1383 group = scx->mapping[MAPGROUPS];
1416 * a security_id only changes when user mapping is changed, which
1426 * reciprocal for some configuration of the user mapping data
2096 if (!scx->mapping[MAPUSERS])
2115 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2118 pxdesc = ntfs_build_permissions_posix(scx->mapping,securattr,
2124 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2139 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2198 if (!scx->mapping[MAPUSERS])
2221 pxdesc = ntfs_build_permissions_posix(scx->mapping,securattr,
2239 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2246 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2248 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2328 if (!scx->mapping[MAPUSERS] || (!scx->uid && !(request & S_IEXEC)))
2347 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2352 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2363 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2466 if (!scx->mapping[MAPUSERS])
2501 scx->mapping, securattr,
2531 stbuf->st_uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2540 stbuf->st_uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2542 stbuf->st_gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2603 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
2606 pxdesc = ntfs_build_permissions_posix(scx->mapping,securattr,
2608 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2612 pxdesc = ntfs_build_permissions_posix(scx->mapping,securattr,
2617 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
2703 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2704 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2710 newattr = ntfs_build_descr_posix(scx->mapping, pxdesc,
2760 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2761 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2767 newattr = ntfs_build_descr_posix(scx->mapping, pxdesc,
2842 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2843 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2947 usid = ntfs_find_usid(scx->mapping[MAPUSERS],uid,(SID*)&defusid);
2948 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS],gid,(SID*)&defgsid);
2956 newattr = ntfs_build_descr_posix(scx->mapping, pxdesc,
3035 * Also always allow if no mapping has been defined
3037 if (!scx->mapping[MAPUSERS] || !processuid)
3059 uid = ntfs_find_user(scx->mapping[MAPUSERS],
3139 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3140 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3141 oldpxdesc = ntfs_build_permissions_posix(scx->mapping,
3258 * Checks user mapping has been defined before request for setting
3316 uid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3317 gid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3320 newpxdesc = ntfs_build_permissions_posix(scx->mapping,
3445 * user mapping defined
3465 * Also always allow if no mapping has been defined
3467 if (!scx->mapping[MAPUSERS]
3544 * Also always allow if no mapping has been defined
3546 if (!scx->mapping[MAPUSERS])
3550 if (!scx->mapping[MAPUSERS]
3584 * no user mapping defined
3693 pxdesc = ntfs_build_permissions_posix(scx->mapping, oldattr,
3697 fileuid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3698 filegid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3706 fileuid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3707 filegid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3824 newpxdesc = ntfs_build_permissions_posix(scx->mapping, oldattr,
3829 fileuid = ntfs_find_user(scx->mapping[MAPUSERS],usid);
3830 filegid = ntfs_find_group(scx->mapping[MAPGROUPS],gsid);
3904 if (scx->mapping[MAPUSERS]) {
3905 usid = ntfs_find_usid(scx->mapping[MAPUSERS], scx->uid, (SID*)&defusid);
3906 gsid = ntfs_find_gsid(scx->mapping[MAPGROUPS], scx->gid, (SID*)&defgsid);
3925 * If there is no user mapping and this is not a root
3929 * rely on a user mapping
4037 * inherited (which is not the case on Windows) if no user mapping
4157 for (usermapping=scx->mapping[MAPUSERS]; usermapping && !res;
4163 for (groupmapping=scx->mapping[MAPGROUPS];
4179 * Apply default single user mapping
4207 scx->mapping[MAPUSERS] = usermapping;
4208 scx->mapping[MAPGROUPS] = groupmapping;
4217 * Make sure there are no ambiguous mapping
4218 * Ambiguous mapping may lead to undesired configurations and
4258 * Try and apply default single user mapping
4290 * Basic read from a user mapping file on another volume
4300 * Read from a user mapping file on current NTFS partition
4310 * Build the user mapping
4311 * - according to a mapping file if defined (or default present),
4312 * - or try default single user mapping if possible
4314 * The mapping is specific to a mounted device
4317 * returns zero if mapping is successful
4348 scx->mapping[MAPUSERS] = (struct MAPPING*)NULL;
4349 scx->mapping[MAPGROUPS] = (struct MAPPING*)NULL;
4373 scx->mapping[MAPUSERS] = usermapping;
4374 scx->mapping[MAPGROUPS] = groupmapping;
4385 /* no mapping file, try a default mapping */
4389 ntfs_log_info("Using default user mapping\n");
4392 return (!scx->mapping[MAPUSERS] || link_group_members(scx));
4557 ntfs_free_mapping(scx->mapping);
5248 usid = ntfs_find_usid(scapi->security.mapping[MAPUSERS], uid, (SID*)&defusid);
5274 gsid = ntfs_find_gsid(scapi->security.mapping[MAPGROUPS], gid, (SID*)&defgsid);
5300 uid = ntfs_find_user(scapi->security.mapping[MAPUSERS], usid);
5326 gid = ntfs_find_group(scapi->security.mapping[MAPGROUPS], gsid);
5373 /* accept no mapping and no $Secure */