HOMEPAGE: http://hardened.gentoo.org/pax-utils.xml CVS: cvs://anoncvs.gentoo.org VIEWVCS: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/ pax-utils is a small set of various PaX aware and related utilities for ELF binaries. It was written for ELF Q/A on Gentoo systems but can be used on any distro. == scanelf == * Scan ELF binaries for stuff Usage: scanelf [options] [dir2 dirN file2 fileN ...] Options: -[plRmyAXz:xetrnLibSs:k:gN:TaqvF:f:o:E:M:BhV] -p, --path * Scan all directories in PATH environment -l, --ldpath * Scan all directories in /etc/ld.so.conf -R, --recursive * Scan directories recursively -m, --mount * Don't recursively cross mount points -y, --symlink * Don't scan symlinks -A, --archives * Scan archives (.a files) -L, --ldcache * Utilize ld.so.cache information (use with -r/-n) -X, --fix * Try and 'fix' bad things (use with -r/-e) -z, --setpax * Sets EI_PAX/PT_PAX_FLAGS to (use with -Xx) -x, --pax * Print PaX markings -e, --header * Print GNU_STACK/PT_LOAD markings -t, --textrel * Print TEXTREL information -r, --rpath * Print RPATH information -n, --needed * Print NEEDED information -i, --interp * Print INTERP information -b, --bind * Print BIND information -S, --soname * Print SONAME information -s, --symbol * Find a specified symbol -k, --section * Find a specified section -N, --lib * Find a specified library -g, --gmatch * Use strncmp to match libraries. (use with -N) -T, --textrels * Locate cause of TEXTREL -E, --etype * Print only ELF files matching etype ET_DYN,ET_EXEC ... -M, --bits * Print only ELF files matching numeric bits -a, --all * Print all scanned info (-x -e -t -r -b) -q, --quiet * Only output 'bad' things -v, --verbose * Be verbose (can be specified more than once) -F, --format * Use specified format for output -f, --from * Read input stream from a filename -o, --file * Write output stream to a filename -B, --nobanner * Don't display the header -h, --help * Print this help and exit -V, --version * Print version and exit The format modifiers for the -F option are: F Filename x PaX Flags e STACK/RELRO t TEXTREL r RPATH n NEEDED i INTERP b BIND s symbol N library o Type T TEXTRELs S SONAME k section p filename (with search path removed) f filename (short name/basename) Prefix each modifier with '%' (verbose) or '#' (silent) ELF Etypes: (0) = ET_NONE (1) = ET_REL (2) = ET_EXEC (3) = ET_DYN (4) = ET_CORE (5) = ET_NUM (65024) = ET_LOOS (65279) = ET_HIOS (65280) = ET_LOPROC (65535) = ET_HIPROC == pspax == * List ELF/PaX information about running processes Usage: pspax [options] Options: -a, --all * Show all processes -B, --nobanner * Don't display the header -h, --help * Print this help and exit -V, --version * Print version and exit If pspax was compiled with CFLAGS += -DWANT_SYSCAP and LDFLAGS +=- lcap it will also list runtime capabilities If extended attribute support is enabled it will list those values as well. == dumpelf == * Dump internal ELF structure Usage: dumpelf [file2 fileN ...] Options: -v, --verbose * Be verbose (can be specified more than once) -h, --help * Print this help and exit -V, --version * Print version and exit == INSTALL == make install You don't need PaX to use the pax-utils. Infact the only thing they really have in common is that pax-utils was initially written to aid in deploying PaX systems so it includes support for PT_PAX_FLAGS and the deprecated but still in use EI_PAX flags. For more information about PaX see the homepage at http://pax.grsecurity.net/ == LINKS == (Gentoo) http://www.gentoo.org/proj/en/hardened/pax-utils.xml http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/ Maintainer: solar@gentoo.org,vapier@gentoo.org (OpenSUSE) http://lists.opensuse.org/opensuse-commit/2006-11/msg00820.html Maintainer: ludwig.nussel@suse.de (Ubuntu) http://packages.ubuntu.com/edgy/devel/pax-utils Maintainer: john.r.moser@gmail.com (Debian) http://packages.debian.org/unstable/misc/pax-utils http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388200 Maintainer: rdenis@simphalempin.com (FreeBSD) http://portsmon.freebsd.org/portoverview.py?category=sysutils&portname=pax-utils http://www.freshports.org/sysutils/pax-utils/ http://archive.netbsd.se/?ml=freebsd-cvs-all&a=2006-08&m=2311441 Maintainer: pav@FreeBSD.org