OSDN Git Service

kernel: conditionally support non-root users, groups and capabilities
[tomoyo/tomoyo-test1.git] / kernel / cred.c
index e0573a4..ec1c076 100644 (file)
@@ -29,6 +29,9 @@
 
 static struct kmem_cache *cred_jar;
 
+/* init to 2 - one for init_task, one to ensure it is never freed */
+struct group_info init_groups = { .usage = ATOMIC_INIT(2) };
+
 /*
  * The initial credentials for the initial task
  */