diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2913252989b3..121d655e460d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1145,7 +1145,8 @@ struct task_struct { | |||
1145 | struct list_head cpu_timers[3]; | 1145 | struct list_head cpu_timers[3]; |
1146 | 1146 | ||
1147 | /* process credentials */ | 1147 | /* process credentials */ |
1148 | struct cred *cred; /* actual/objective task credentials */ | 1148 | const struct cred *cred; /* actual/objective task credentials (COW) */ |
1149 | struct mutex cred_exec_mutex; /* execve vs ptrace cred calculation mutex */ | ||
1149 | 1150 | ||
1150 | char comm[TASK_COMM_LEN]; /* executable name excluding path | 1151 | char comm[TASK_COMM_LEN]; /* executable name excluding path |
1151 | - access with [gs]et_task_comm (which lock | 1152 | - access with [gs]et_task_comm (which lock |
@@ -1720,7 +1721,6 @@ static inline struct user_struct *get_uid(struct user_struct *u) | |||
1720 | return u; | 1721 | return u; |
1721 | } | 1722 | } |
1722 | extern void free_uid(struct user_struct *); | 1723 | extern void free_uid(struct user_struct *); |
1723 | extern void switch_uid(struct user_struct *); | ||
1724 | extern void release_uids(struct user_namespace *ns); | 1724 | extern void release_uids(struct user_namespace *ns); |
1725 | 1725 | ||
1726 | #include <asm/current.h> | 1726 | #include <asm/current.h> |
@@ -1870,6 +1870,8 @@ static inline unsigned long wait_task_inactive(struct task_struct *p, | |||
1870 | #define for_each_process(p) \ | 1870 | #define for_each_process(p) \ |
1871 | for (p = &init_task ; (p = next_task(p)) != &init_task ; ) | 1871 | for (p = &init_task ; (p = next_task(p)) != &init_task ; ) |
1872 | 1872 | ||
1873 | extern bool is_single_threaded(struct task_struct *); | ||
1874 | |||
1873 | /* | 1875 | /* |
1874 | * Careful: do_each_thread/while_each_thread is a double loop so | 1876 | * Careful: do_each_thread/while_each_thread is a double loop so |
1875 | * 'break' will not work as expected - use goto instead. | 1877 | * 'break' will not work as expected - use goto instead. |