diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 28fa9d02fd59..5ea8baea9387 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -90,6 +90,7 @@ struct sched_param { | |||
90 | #include <linux/latencytop.h> | 90 | #include <linux/latencytop.h> |
91 | #include <linux/cred.h> | 91 | #include <linux/cred.h> |
92 | #include <linux/llist.h> | 92 | #include <linux/llist.h> |
93 | #include <linux/uidgid.h> | ||
93 | 94 | ||
94 | #include <asm/processor.h> | 95 | #include <asm/processor.h> |
95 | 96 | ||
@@ -728,8 +729,7 @@ struct user_struct { | |||
728 | 729 | ||
729 | /* Hash table maintenance information */ | 730 | /* Hash table maintenance information */ |
730 | struct hlist_node uidhash_node; | 731 | struct hlist_node uidhash_node; |
731 | uid_t uid; | 732 | kuid_t uid; |
732 | struct user_namespace *user_ns; | ||
733 | 733 | ||
734 | #ifdef CONFIG_PERF_EVENTS | 734 | #ifdef CONFIG_PERF_EVENTS |
735 | atomic_long_t locked_vm; | 735 | atomic_long_t locked_vm; |
@@ -738,7 +738,7 @@ struct user_struct { | |||
738 | 738 | ||
739 | extern int uids_sysfs_init(void); | 739 | extern int uids_sysfs_init(void); |
740 | 740 | ||
741 | extern struct user_struct *find_user(uid_t); | 741 | extern struct user_struct *find_user(kuid_t); |
742 | 742 | ||
743 | extern struct user_struct root_user; | 743 | extern struct user_struct root_user; |
744 | #define INIT_USER (&root_user) | 744 | #define INIT_USER (&root_user) |
@@ -2142,14 +2142,13 @@ extern struct task_struct *find_task_by_pid_ns(pid_t nr, | |||
2142 | extern void __set_special_pids(struct pid *pid); | 2142 | extern void __set_special_pids(struct pid *pid); |
2143 | 2143 | ||
2144 | /* per-UID process charging. */ | 2144 | /* per-UID process charging. */ |
2145 | extern struct user_struct * alloc_uid(struct user_namespace *, uid_t); | 2145 | extern struct user_struct * alloc_uid(kuid_t); |
2146 | static inline struct user_struct *get_uid(struct user_struct *u) | 2146 | static inline struct user_struct *get_uid(struct user_struct *u) |
2147 | { | 2147 | { |
2148 | atomic_inc(&u->__count); | 2148 | atomic_inc(&u->__count); |
2149 | return u; | 2149 | return u; |
2150 | } | 2150 | } |
2151 | extern void free_uid(struct user_struct *); | 2151 | extern void free_uid(struct user_struct *); |
2152 | extern void release_uids(struct user_namespace *ns); | ||
2153 | 2152 | ||
2154 | #include <asm/current.h> | 2153 | #include <asm/current.h> |
2155 | 2154 | ||