lkml.org 
[lkml]   [2012]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 05/43] cred: Add forward declaration of init_user_ns in all cases.
    From: Eric W. Biederman <ebiederm@xmission.com>

    Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
    ---
    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 adadf71..d12c4e4 100644
    --- a/include/linux/cred.h
    +++ b/include/linux/cred.h
    @@ -357,11 +357,11 @@ static inline void put_cred(const struct cred *_cred)
    #define current_user() (current_cred_xxx(user))
    #define current_security() (current_cred_xxx(security))

    +extern struct user_namespace init_user_ns;
    #ifdef CONFIG_USER_NS
    #define current_user_ns() (current_cred_xxx(user_ns))
    #define task_user_ns(task) (task_cred_xxx((task), user_ns))
    #else
    -extern struct user_namespace init_user_ns;
    #define current_user_ns() (&init_user_ns)
    #define task_user_ns(task) (&init_user_ns)
    #endif
    --
    1.7.2.5


    \
     
     \ /
      Last update: 2012-04-08 07:15    [W:4.280 / U:0.136 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site