diff options
Diffstat (limited to 'include/linux/init_task.h')
-rw-r--r-- | include/linux/init_task.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 82be96564266..e049526bc188 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
@@ -219,6 +219,12 @@ extern struct cred init_cred; | |||
219 | # define INIT_TASK_TI(tsk) | 219 | # define INIT_TASK_TI(tsk) |
220 | #endif | 220 | #endif |
221 | 221 | ||
222 | #ifdef CONFIG_SECURITY | ||
223 | #define INIT_TASK_SECURITY .security = NULL, | ||
224 | #else | ||
225 | #define INIT_TASK_SECURITY | ||
226 | #endif | ||
227 | |||
222 | /* | 228 | /* |
223 | * INIT_TASK is used to set up the first task table, touch at | 229 | * INIT_TASK is used to set up the first task table, touch at |
224 | * your own risk!. Base=0, limit=0x1fffff (=2MB) | 230 | * your own risk!. Base=0, limit=0x1fffff (=2MB) |
@@ -298,6 +304,7 @@ extern struct cred init_cred; | |||
298 | INIT_NUMA_BALANCING(tsk) \ | 304 | INIT_NUMA_BALANCING(tsk) \ |
299 | INIT_KASAN(tsk) \ | 305 | INIT_KASAN(tsk) \ |
300 | INIT_LIVEPATCH(tsk) \ | 306 | INIT_LIVEPATCH(tsk) \ |
307 | INIT_TASK_SECURITY \ | ||
301 | } | 308 | } |
302 | 309 | ||
303 | 310 | ||