diff options
Diffstat (limited to 'include/linux/init_task.h')
| -rw-r--r-- | include/linux/init_task.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 23fd8909b9e5..2f3c2d4ef73b 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
| @@ -12,6 +12,7 @@ | |||
| 12 | #include <net/net_namespace.h> | 12 | #include <net/net_namespace.h> |
| 13 | 13 | ||
| 14 | extern struct files_struct init_files; | 14 | extern struct files_struct init_files; |
| 15 | extern struct fs_struct init_fs; | ||
| 15 | 16 | ||
| 16 | #define INIT_KIOCTX(name, which_mm) \ | 17 | #define INIT_KIOCTX(name, which_mm) \ |
| 17 | { \ | 18 | { \ |
| @@ -57,7 +58,6 @@ extern struct nsproxy init_nsproxy; | |||
| 57 | .mnt_ns = NULL, \ | 58 | .mnt_ns = NULL, \ |
| 58 | INIT_NET_NS(net_ns) \ | 59 | INIT_NET_NS(net_ns) \ |
| 59 | INIT_IPC_NS(ipc_ns) \ | 60 | INIT_IPC_NS(ipc_ns) \ |
| 60 | .user_ns = &init_user_ns, \ | ||
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | #define INIT_SIGHAND(sighand) { \ | 63 | #define INIT_SIGHAND(sighand) { \ |
| @@ -113,6 +113,8 @@ extern struct group_info init_groups; | |||
| 113 | # define CAP_INIT_BSET CAP_INIT_EFF_SET | 113 | # define CAP_INIT_BSET CAP_INIT_EFF_SET |
| 114 | #endif | 114 | #endif |
| 115 | 115 | ||
| 116 | extern struct cred init_cred; | ||
| 117 | |||
| 116 | /* | 118 | /* |
| 117 | * INIT_TASK is used to set up the first task table, touch at | 119 | * INIT_TASK is used to set up the first task table, touch at |
| 118 | * your own risk!. Base=0, limit=0x1fffff (=2MB) | 120 | * your own risk!. Base=0, limit=0x1fffff (=2MB) |
| @@ -147,13 +149,10 @@ extern struct group_info init_groups; | |||
| 147 | .children = LIST_HEAD_INIT(tsk.children), \ | 149 | .children = LIST_HEAD_INIT(tsk.children), \ |
| 148 | .sibling = LIST_HEAD_INIT(tsk.sibling), \ | 150 | .sibling = LIST_HEAD_INIT(tsk.sibling), \ |
| 149 | .group_leader = &tsk, \ | 151 | .group_leader = &tsk, \ |
| 150 | .group_info = &init_groups, \ | 152 | .real_cred = &init_cred, \ |
| 151 | .cap_effective = CAP_INIT_EFF_SET, \ | 153 | .cred = &init_cred, \ |
| 152 | .cap_inheritable = CAP_INIT_INH_SET, \ | 154 | .cred_exec_mutex = \ |
| 153 | .cap_permitted = CAP_FULL_SET, \ | 155 | __MUTEX_INITIALIZER(tsk.cred_exec_mutex), \ |
| 154 | .cap_bset = CAP_INIT_BSET, \ | ||
| 155 | .securebits = SECUREBITS_DEFAULT, \ | ||
| 156 | .user = INIT_USER, \ | ||
| 157 | .comm = "swapper", \ | 156 | .comm = "swapper", \ |
| 158 | .thread = INIT_THREAD, \ | 157 | .thread = INIT_THREAD, \ |
| 159 | .fs = &init_fs, \ | 158 | .fs = &init_fs, \ |
