return -1;
}
-int find_unmapped_nsuid(struct lxc_conf *conf, enum idtype idtype)
+int find_unmapped_nsid(struct lxc_conf *conf, enum idtype idtype)
{
struct lxc_list *it;
struct id_map *map;
return d->fn(d->arg);
}
-static struct id_map *mapped_hostid_entry(unsigned id, struct lxc_conf *conf,
+static struct id_map *mapped_hostid_entry(struct lxc_conf *conf, unsigned id,
enum idtype idtype)
{
struct lxc_list *it;
extern void lxc_restore_phys_nics_to_netns(int netnsfd, struct lxc_conf *conf);
-extern int find_unmapped_nsuid(struct lxc_conf *conf, enum idtype idtype);
+extern int find_unmapped_nsid(struct lxc_conf *conf, enum idtype idtype);
extern int mapped_hostid(unsigned id, struct lxc_conf *conf, enum idtype idtype);
extern int chown_mapped_root(char *path, struct lxc_conf *conf);
extern int ttys_shift_ids(struct lxc_conf *c);
if (!n2)
exit(1);
if (hostid_mapped < 0) {
- hostid_mapped = find_unmapped_nsuid(conf, ID_TYPE_UID);
+ hostid_mapped = find_unmapped_nsid(conf, ID_TYPE_UID);
n2[n2args++] = "-m";
if (hostid_mapped < 0) {
ERROR("Could not find free uid to map");
if (!n2)
exit(1);
if (hostgid_mapped < 0) {
- hostgid_mapped = find_unmapped_nsuid(conf, ID_TYPE_GID);
+ hostgid_mapped = find_unmapped_nsid(conf, ID_TYPE_GID);
n2[n2args++] = "-m";
if (hostgid_mapped < 0) {
ERROR("Could not find free uid to map");