Re: [PATCH 4/4] sysctl: Add register_sysctl_init() interface

2020-05-15 Thread Xiaoming Ni
On 2020/5/15 16:10, Kees Cook wrote: On Fri, May 15, 2020 at 12:33:44PM +0800, Xiaoming Ni wrote: In order to eliminate the duplicate code for registering the sysctl interface during the initialization of each feature, add the register_sysctl_init() interface I think this should come before th

Re: [PATCH 4/4] sysctl: Add register_sysctl_init() interface

2020-05-15 Thread Kees Cook
On Fri, May 15, 2020 at 12:33:44PM +0800, Xiaoming Ni wrote: > In order to eliminate the duplicate code for registering the sysctl > interface during the initialization of each feature, add the > register_sysctl_init() interface I think this should come before the code relocations. -- Kees Cook

[PATCH 4/4] sysctl: Add register_sysctl_init() interface

2020-05-14 Thread Xiaoming Ni
In order to eliminate the duplicate code for registering the sysctl interface during the initialization of each feature, add the register_sysctl_init() interface Signed-off-by: Xiaoming Ni --- include/linux/sysctl.h| 2 ++ kernel/hung_task_sysctl.c | 15 +-- kernel/sysctl.c