mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 14:34:19 +00:00
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>
This commit is contained in:
parent
74ba508f60
commit
7e6bd8fadd
1 changed files with 1 additions and 1 deletions
|
@ -357,11 +357,11 @@ static inline void put_cred(const struct cred *_cred)
|
||||||
#define current_user() (current_cred_xxx(user))
|
#define current_user() (current_cred_xxx(user))
|
||||||
#define current_security() (current_cred_xxx(security))
|
#define current_security() (current_cred_xxx(security))
|
||||||
|
|
||||||
|
extern struct user_namespace init_user_ns;
|
||||||
#ifdef CONFIG_USER_NS
|
#ifdef CONFIG_USER_NS
|
||||||
#define current_user_ns() (current_cred_xxx(user_ns))
|
#define current_user_ns() (current_cred_xxx(user_ns))
|
||||||
#define task_user_ns(task) (task_cred_xxx((task), user_ns))
|
#define task_user_ns(task) (task_cred_xxx((task), user_ns))
|
||||||
#else
|
#else
|
||||||
extern struct user_namespace init_user_ns;
|
|
||||||
#define current_user_ns() (&init_user_ns)
|
#define current_user_ns() (&init_user_ns)
|
||||||
#define task_user_ns(task) (&init_user_ns)
|
#define task_user_ns(task) (&init_user_ns)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue