[Devel] [PATCH RH7] pid: Use proper ns in proc_dointvec_pidmax()
Kirill Tkhai
ktkhai at virtuozzo.com
Tue Oct 20 12:40:38 MSK 2020
Use current task pid ns instead of pid ns for future children
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
kernel/sysctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 0e3aa418a87f..34dcbc792482 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -339,7 +339,7 @@ static int proc_dointvec_pidmax(struct ctl_table *table, int write,
struct ctl_table tmp;
tmp = *table;
- tmp.data = ¤t->nsproxy->pid_ns->pid_max;
+ tmp.data = &task_active_pid_ns(current)->pid_max;
return proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos);
}
More information about the Devel
mailing list