2013-01-22 14:50:07 +05:30
|
|
|
/*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-FileCopyrightText: 2013 Eric Biederman
|
2013-01-22 14:50:07 +05:30
|
|
|
*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2013-01-22 14:50:07 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _IDMAPPING_H_
|
|
|
|
#define _IDMAPPING_H_
|
|
|
|
|
|
|
|
struct map_range {
|
2013-08-13 22:58:07 +05:30
|
|
|
unsigned long upper; /* first ID inside the namespace */
|
|
|
|
unsigned long lower; /* first ID outside the namespace */
|
|
|
|
unsigned long count; /* Length of the inside and outside ranges */
|
2013-01-22 14:50:07 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
extern struct map_range *get_map_ranges(int ranges, int argc, char **argv);
|
|
|
|
extern void write_mapping(int proc_dir_fd, int ranges,
|
2022-08-05 21:10:26 +05:30
|
|
|
const struct map_range *mappings, const char *map_file, uid_t ruid);
|
2013-01-22 14:50:07 +05:30
|
|
|
|
|
|
|
#endif /* _ID_MAPPING_H_ */
|
|
|
|
|