]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/conf.h
conf: non-functional changes
[mirror_lxc.git] / src / lxc / conf.h
index b7ddf1d3f434dedf95847115dfa113780cfcb368..58c6c4d1b33a7401e49794015ccb601a12528775 100644 (file)
@@ -282,7 +282,17 @@ struct lxc_conf {
        signed long personality;
        struct utsname *utsname;
        struct lxc_list cgroup;
-       struct lxc_list id_map;
+       struct {
+               struct lxc_list id_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;
+
+               /* 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;
+       };
        struct lxc_list network;
        int auto_mounts;
        struct lxc_list mount_list;
@@ -402,7 +412,7 @@ struct lxc_conf {
        struct lxc_list procs;
 };
 
-int write_id_mapping(enum idtype idtype, pid_t pid, const char *buf,
+extern int write_id_mapping(enum idtype idtype, pid_t pid, const char *buf,
                            size_t buf_size);
 
 #ifdef HAVE_TLS