summaryrefslogtreecommitdiff
path: root/include/linux/init_task.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-18 04:49:05 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-18 04:49:05 -0800
commita937b06ed59067eb1cc93390b8f13bbfab229458 (patch)
tree146aa92588c4bd40899cc161d4d18919405f7f66 /include/linux/init_task.h
parent7e594425ebac8ca16c7fc787e4ee76801a653d46 (diff)
[PATCH] NGROUPS 2.6.2rc2 + fixups
From: Tim Hockin <thockin@sun.com>, Neil Brown <neilb@cse.unsw.edu.au>, me New groups infrastructure. task->groups and task->ngroups are replaced by task->group_info. Group)info is a refcounted, dynamic struct with an array of pages. This allows for large numbers of groups. The current limit of 32 groups has been raised to 64k groups. It can be raised more by changing the NGROUPS_MAX constant in limits.h
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r--include/linux/init_task.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index f9708adb1d47..5c4843a08917 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -57,6 +57,8 @@
.siglock = SPIN_LOCK_UNLOCKED, \
}
+extern struct group_info init_groups;
+
/*
* INIT_TASK is used to set up the first task table, touch at
* your own risk!. Base=0, limit=0x1fffff (=2MB)
@@ -88,6 +90,7 @@
.real_timer = { \
.function = it_real_fn \
}, \
+ .group_info = &init_groups, \
.cap_effective = CAP_INIT_EFF_SET, \
.cap_inheritable = CAP_INIT_INH_SET, \
.cap_permitted = CAP_FULL_SET, \