lkml.org 
[lkml]   [2006]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] sysctl: Allow /proc/sys without sys_sysctl
Date
Andi Kleen <ak@suse.de> writes:

> ebiederm@xmission.com (Eric W. Biederman) writes:
>
>> Since sys_sysctl is deprecated start allow it to be compiled out.
>> This should catch any remaining user space code that cares,
>
> I tried this long ago, but found that glibc uses sysctl in each
> program to get the kernel version. It probably handles ENOSYS,
> but there might be slowdowns or subtle problems from it not knowing
> the kernel version.
>
> So I think it's ok to remove the big sysctl, but at a very minimal
> replacement that just handles (CTL_KERN, KERN_VERSION) is needed.

If glibc is looking at kernel.osrelease it might make sense.
If glibc is looking at kernel.version which is just the build number
and date I can't imagine a correct usage.

If this usage is still common in glibc we can decide what to do
when the warnings pop up.

> Also it's useful to printk for the rest at least for some time
> so we know what uses it.

Yes. Andrew and I discussed that and when he picked up a patch.
A printk was added to warn of people using the interface.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-07-12 05:17    [W:0.099 / U:1.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site