Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
return 0;
}
-static struct id_map *find_mapped_nsid_entry(struct lxc_conf *conf, unsigned id,
+static const struct id_map *find_mapped_nsid_entry(struct lxc_conf *conf, unsigned id,
enum idtype idtype)
{
struct lxc_list *it;
static struct id_map *mapped_nsid_add(struct lxc_conf *conf, unsigned id,
enum idtype idtype)
{
- struct id_map *map, *retmap;
+ const struct id_map *map;
+ struct id_map *retmap;
map = find_mapped_nsid_entry(conf, id, idtype);
if (!map)
* Pointer to the idmap entry for the container's root uid in
* the id_map list. Do not free!
*/
- struct id_map *root_nsuid_map;
+ const struct id_map *root_nsuid_map;
/*
* Pointer to the idmap entry for the container's root gid in
* the id_map list. Do not free!
*/
- struct id_map *root_nsgid_map;
+ const struct id_map *root_nsgid_map;
};
struct lxc_list network;