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

Jakub Jelinek
2006-10-20T08:02:34Z

On Fri, Oct 20, 2006 at 01:05:18AM -0600, 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' '{}' ';'

This assumes the binaries and/or libraries are not stripped, and they
usually are stripped. So, it is better to run something like:
find / -type f -perm /111 | while read f; do readelf -Ws $f 2>/dev/null | fgrep -q sysctl@GLIBC && echo $f; done

Jakub