diff options
Diffstat (limited to 'kernel/user_namespace.c')
-rw-r--r-- | kernel/user_namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index c490f1e4313b..d32b45662fb6 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c | |||
@@ -894,7 +894,7 @@ static bool new_idmap_permitted(const struct file *file, | |||
894 | int proc_setgroups_show(struct seq_file *seq, void *v) | 894 | int proc_setgroups_show(struct seq_file *seq, void *v) |
895 | { | 895 | { |
896 | struct user_namespace *ns = seq->private; | 896 | struct user_namespace *ns = seq->private; |
897 | unsigned long userns_flags = ACCESS_ONCE(ns->flags); | 897 | unsigned long userns_flags = READ_ONCE(ns->flags); |
898 | 898 | ||
899 | seq_printf(seq, "%s\n", | 899 | seq_printf(seq, "%s\n", |
900 | (userns_flags & USERNS_SETGROUPS_ALLOWED) ? | 900 | (userns_flags & USERNS_SETGROUPS_ALLOWED) ? |