Lines Matching defs:mapping
13 * -u getting a user mapping proposal
40 * display a user mapping proposal
140 * - fixed initialisation of stand-alone user mapping
181 * - adapted to new default user mapping
209 * - added an option for user mapping proposal
347 #define BUFSZ 1024 /* buffer size to read mapping file */
348 #define LINESZ 120 /* maximum useful size of a mapping line */
485 * Dummy mapping file (self tests only)
547 BOOL opt_u; /* user mapping proposal */
1599 static uid_t relay_find_user(const struct MAPPING *mapping __attribute__((unused)),
1612 static gid_t relay_find_group(const struct MAPPING *mapping __attribute__((unused)),
1650 ntfs_context->security.mapping,
1653 posix_desc = ntfs_build_permissions_posix(context.mapping,
1711 uid = ntfs_find_user(context.mapping[MAPUSERS],usid);
1714 uid = relay_find_user(context.mapping[MAPUSERS],usid);
1716 uid = ntfs_find_user(context.mapping[MAPUSERS],usid);
1730 gid = ntfs_find_group(context.mapping[MAPGROUPS],gsid);
1733 gid = relay_find_group(context.mapping[MAPGROUPS],gsid);
1735 gid = ntfs_find_group(context.mapping[MAPGROUPS],gsid);
1776 * Basic read from a user mapping file (Win32)
1788 * Read a dummy mapping file for tests
1811 * Apply default single user mapping
1815 static int do_default_mapping(struct MAPPING *mapping[],
1839 mapping[MAPUSERS] = usermapping;
1840 mapping[MAPGROUPS] = groupmapping;
1849 * Build the user mapping
1850 * - according to a mapping file if defined (or default present),
1851 * - or try default single user mapping if possible
1853 * The mapping is specific to a mounted device
1856 * returns zero if mapping is successful
1860 static int local_build_mapping(struct MAPPING *mapping[], const char *usermap_path)
1892 mapping[MAPUSERS] = (struct MAPPING*)NULL;
1893 mapping[MAPGROUPS] = (struct MAPPING*)NULL;
1910 /* build a full path to locate the mapping file */
1935 printf("** Could not find the user mapping file\n");
1956 mapping[MAPUSERS] = usermapping;
1957 mapping[MAPGROUPS] = groupmapping;
1968 do_default_mapping(mapping,(const SID*)&defmap);
1970 if (mapping[MAPUSERS])
1972 return (!mapping[MAPUSERS]);
2142 * mapping is not available (option -h)
2591 attr = ntfs_build_descr_posix(context.mapping,newpxdesc,
2913 descr = ntfs_build_descr_posix(context.mapping,&sampletry1.head,
2920 descr = ntfs_build_descr_posix(context.mapping,&sampletry1.head,
2927 descr = ntfs_build_descr_posix(context.mapping,pxsample,
2934 descr = ntfs_build_descr_posix(context.mapping,pxsample,
2941 descr = ntfs_build_descr_posix(context.mapping,pxsample,
2948 descr = ntfs_build_descr_posix(context.mapping,pxsample,
2955 descr = ntfs_build_descr_posix(context.mapping,pxsample,
2962 descr = ntfs_build_descr_posix(context.mapping,&sampletry8.head,
3239 pxattr = ntfs_build_descr_posix(context.mapping,
3513 pxattr = ntfs_build_descr_posix(context.mapping,
3610 local_build_mapping(context.mapping, (const char*)NULL);
3644 ntfs_free_mapping(context.mapping);
3869 ntfs_context->security.mapping,
3873 context.mapping,
4015 printf("# User mapping proposal :\n");
4429 mapped = !local_build_mapping(context.mapping,fullname);
4440 printf("No user mapping : "
4475 ntfs_free_mapping(context.mapping);
5979 fprintf(stderr," get a user mapping proposal applicable to file\n");
6013 fprintf(stderr," get a user mapping proposal applicable to mounted file\n");
6136 { "user-mapping",no_argument, NULL, 'u' },
6254 context.mapping[MAPUSERS] = (struct MAPPING*)NULL;
6255 context.mapping[MAPGROUPS] = (struct MAPPING*)NULL;