diff options
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index cae35b6b9aec..f42663eaf655 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -114,6 +114,13 @@ extern struct group_info init_groups; | |||
114 | .pid = &init_struct_pid, \ | 114 | .pid = &init_struct_pid, \ |
115 | } | 115 | } |
116 | 116 | ||
117 | #ifdef CONFIG_AUDITSYSCALL | ||
118 | #define INIT_IDS \ | ||
119 | .loginuid = -1, \ | ||
120 | .sessionid = -1, | ||
121 | #else | ||
122 | #define INIT_IDS | ||
123 | #endif | ||
117 | /* | 124 | /* |
118 | * INIT_TASK is used to set up the first task table, touch at | 125 | * INIT_TASK is used to set up the first task table, touch at |
119 | * your own risk!. Base=0, limit=0x1fffff (=2MB) | 126 | * your own risk!. Base=0, limit=0x1fffff (=2MB) |
@@ -132,9 +139,11 @@ extern struct group_info init_groups; | |||
132 | .cpus_allowed = CPU_MASK_ALL, \ | 139 | .cpus_allowed = CPU_MASK_ALL, \ |
133 | .mm = NULL, \ | 140 | .mm = NULL, \ |
134 | .active_mm = &init_mm, \ | 141 | .active_mm = &init_mm, \ |
135 | .run_list = LIST_HEAD_INIT(tsk.run_list), \ | 142 | .rt = { \ |
136 | .ioprio = 0, \ | 143 | .run_list = LIST_HEAD_INIT(tsk.rt.run_list), \ |
137 | .time_slice = HZ, \ | 144 | .time_slice = HZ, \ |
145 | .nr_cpus_allowed = NR_CPUS, \ | ||
146 | }, \ | ||
138 | .tasks = LIST_HEAD_INIT(tsk.tasks), \ | 147 | .tasks = LIST_HEAD_INIT(tsk.tasks), \ |
139 | .ptrace_children= LIST_HEAD_INIT(tsk.ptrace_children), \ | 148 | .ptrace_children= LIST_HEAD_INIT(tsk.ptrace_children), \ |
140 | .ptrace_list = LIST_HEAD_INIT(tsk.ptrace_list), \ | 149 | .ptrace_list = LIST_HEAD_INIT(tsk.ptrace_list), \ |
@@ -171,6 +180,7 @@ extern struct group_info init_groups; | |||
171 | [PIDTYPE_SID] = INIT_PID_LINK(PIDTYPE_SID), \ | 180 | [PIDTYPE_SID] = INIT_PID_LINK(PIDTYPE_SID), \ |
172 | }, \ | 181 | }, \ |
173 | .dirties = INIT_PROP_LOCAL_SINGLE(dirties), \ | 182 | .dirties = INIT_PROP_LOCAL_SINGLE(dirties), \ |
183 | INIT_IDS \ | ||
174 | INIT_TRACE_IRQFLAGS \ | 184 | INIT_TRACE_IRQFLAGS \ |
175 | INIT_LOCKDEP \ | 185 | INIT_LOCKDEP \ |
176 | } | 186 | } |