diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2011-11-17 11:20:58 +0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-04-08 03:55:54 +0400 |
commit | d0bd6594e286bd6145e04e19e8d3fa2e902cb800 (patch) | |
tree | ec512935f5cf2b4ae95927a47e96ad716159fb04 /include/linux/sched.h | |
parent | 6f9ac6d93a0916de09d11b0a247ade8f4347728b (diff) | |
download | linux-d0bd6594e286bd6145e04e19e8d3fa2e902cb800.tar.xz |
userns: Deprecate and rename the user_namespace reference in the user_struct
With a user_ns reference in struct cred the only user of the user namespace
reference in struct user_struct is to keep the uid hash table alive.
The user_namespace reference in struct user_struct will be going away soon, and
I have removed all of the references. Rename the field from user_ns to _user_ns
so that the compiler can verify nothing follows the user struct to the user
namespace anymore.
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 720ce8d98a7d..6867ae9bc8a0 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -729,7 +729,7 @@ struct user_struct { /* Hash table maintenance information */ struct hlist_node uidhash_node; uid_t uid; - struct user_namespace *user_ns; + struct user_namespace *_user_ns; /* Don't use will be removed soon */ #ifdef CONFIG_PERF_EVENTS atomic_long_t locked_vm; |