|
From: Andrew Morton on 20 Oct 2006 03:40 On Fri, 20 Oct 2006 01:05:18 -0600 ebiederm(a)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... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Russell King on 20 Oct 2006 04:00 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' '{}' ';' > > 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. glibc on ARM _requires_ sys_sysctl for userspace ioperm, inb, outb etc emulation. -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Jakub Jelinek on 20 Oct 2006 04:10 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(a)GLIBC && echo $f; done Jakub - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Eric W. Biederman on 20 Oct 2006 09:00 Andrew Morton <akpm(a)osdl.org> writes: > On Fri, 20 Oct 2006 01:05:18 -0600 > ebiederm(a)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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Eric W. Biederman on 20 Oct 2006 09:50
Jakub Jelinek <jakub(a)redhat.com> writes: > 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(a)GLIBC && echo $f; done Thanks the better grep helps. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |