Re: [CFT] Grep to find users of sys_sysctl.

Eric W. Biederman
2006-10-20T12:56:43Z

Andrew Morton <akpm@osdl.org> writes:

> On Fri, 20 Oct 2006 01:05:18 -0600
> ebiederm@xmission.com (Eric W. Biederman) wrote:
>
>>
>> Anyone who is interested in knowing if they have an application on
>> their system that actually uses sys_sysctl please run the following grep.
>>
>> find / -type f -perm /111 -exec fgrep 'sysctl@@GLIBC' '{}' ';'
>>
>> The -perm /111 is an optimization to only look at executable files,
>> and may be omitted if you are patient.
>>
>> Currently I don't expect anyone to find a match anywhere except in
> libpthreads,
>> if you find any others please let me know.
>>
>
> http://www.google.com/codesearch
>
> there are a few hits...

What were you using for search criteria?

A challenge is to weed out code that runs on BSDs where people do use sysctl.

Eric