Re: [REPOST][RFC][PATCH] sysctl: Remove the sysctl system call
From: Michael Kerrisk (man-pages)
Date: Tue Oct 08 2019 - 06:30:43 EST
On 10/3/19 11:05 PM, Kees Cook wrote:
> On Thu, Oct 03, 2019 at 03:44:32PM -0500, Eric W. Biederman wrote:
>>
>> This system call has been deprecated almost since it was introduced, and none
>> of the common distributions enable it. The only indication that I can find that
>> anyone might care is that a few of the defconfigs in the kernel enable it. However
>> that is a small fractions of the defconfigs so I suspect it just a lack of care
>> rather than a reflection of software using the the sysctl system call.
>>
>> As there appear to be no users of the sysctl system call, remove the
>> code so that the proc filesystem can be simplified.
>
> nitpick: line lengths near 80 characters
>
>> Signed-off-by: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
>
> But, yes, I would love to see this gone. :)
>
> Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>
And for the record, the manual page has since 2007 documented that
this system call is likely to go away in the future.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/