projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
userns: Restrict when proc and sysfs can be mounted
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
kernel
/
user.c
diff --git
a/kernel/user.c
b/kernel/user.c
index
e81978e
..
8e635a1
100644
(file)
--- a/
kernel/user.c
+++ b/
kernel/user.c
@@
-51,6
+51,8
@@
struct user_namespace init_user_ns = {
.owner = GLOBAL_ROOT_UID,
.group = GLOBAL_ROOT_GID,
.proc_inum = PROC_USER_INIT_INO,
+ .may_mount_sysfs = true,
+ .may_mount_proc = true,
};
EXPORT_SYMBOL_GPL(init_user_ns);