diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2011-11-14 22:29:17 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-04-07 19:55:50 -0400 |
commit | 7e6bd8fadd1216f50468f965d0308f45e5109ced (patch) | |
tree | 16357feae4c51fdbe952f71fe735664f088371fe /include/linux/cred.h | |
parent | 74ba508f60c3650595297b33a4cdfd02e443194e (diff) |
cred: Add forward declaration of init_user_ns in all cases.
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/cred.h')
-rw-r--r-- | include/linux/cred.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cred.h b/include/linux/cred.h index adadf71a7327..d12c4e475c15 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h | |||
@@ -357,11 +357,11 @@ static inline void put_cred(const struct cred *_cred) | |||
357 | #define current_user() (current_cred_xxx(user)) | 357 | #define current_user() (current_cred_xxx(user)) |
358 | #define current_security() (current_cred_xxx(security)) | 358 | #define current_security() (current_cred_xxx(security)) |
359 | 359 | ||
360 | extern struct user_namespace init_user_ns; | ||
360 | #ifdef CONFIG_USER_NS | 361 | #ifdef CONFIG_USER_NS |
361 | #define current_user_ns() (current_cred_xxx(user_ns)) | 362 | #define current_user_ns() (current_cred_xxx(user_ns)) |
362 | #define task_user_ns(task) (task_cred_xxx((task), user_ns)) | 363 | #define task_user_ns(task) (task_cred_xxx((task), user_ns)) |
363 | #else | 364 | #else |
364 | extern struct user_namespace init_user_ns; | ||
365 | #define current_user_ns() (&init_user_ns) | 365 | #define current_user_ns() (&init_user_ns) |
366 | #define task_user_ns(task) (&init_user_ns) | 366 | #define task_user_ns(task) (&init_user_ns) |
367 | #endif | 367 | #endif |