]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: use lxc_groups_t directly
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 5 Feb 2021 10:05:58 +0000 (11:05 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 5 Feb 2021 11:14:06 +0000 (12:14 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.h

index 4d13e90dcb84756414a0488a32f86dfdae9fd9d9..9dae088e63821f6a09822d38ab15d467d2f8eb2c 100644 (file)
@@ -15,6 +15,7 @@
 #include <sys/types.h>
 #include <sys/vfs.h>
 
+#include "attach_options.h"
 #include "caps.h"
 #include "compiler.h"
 #include "config.h"
@@ -413,14 +414,12 @@ struct lxc_conf {
        /* init command */
        char *init_cmd;
 
-       /* if running in a new user namespace, the UID/GID that init and COMMAND
-        * should run under when using lxc-execute */
+       /* The uid to use for the container. */
        uid_t init_uid;
+       /* The gid to use for the container. */
        gid_t init_gid;
-       struct {
-               int size;
-               gid_t *list;
-       } init_groups;
+       /* The groups to use for the container. */
+       lxc_groups_t init_groups;
 
        /* indicator if the container will be destroyed on shutdown */
        unsigned int ephemeral;