forked from TencentOS/TencentOS-kernel
vm: fix isolate max_map_count, inherit the value of the parent namespace instead
Signed-off-by: Xiaoming Gao <newtongao@tencent.com>
This commit is contained in:
parent
f9a96d3888
commit
f540f245de
|
|
@ -137,7 +137,7 @@ static struct pid_namespace *create_pid_namespace(struct user_namespace *user_ns
|
|||
ns->user_ns = get_user_ns(user_ns);
|
||||
ns->ucounts = ucounts;
|
||||
ns->nr_hashed = PIDNS_HASH_ADDING;
|
||||
ns->max_map_count = DEFAULT_MAX_MAP_COUNT;
|
||||
ns->max_map_count = parent_pid_ns->max_map_count;
|
||||
INIT_WORK(&ns->proc_work, proc_cleanup_work);
|
||||
|
||||
set_bit(0, ns->pidmap[0].page);
|
||||
|
|
|
|||
Loading…
Reference in New Issue