aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README35
-rw-r--r--man/scanelf.119
2 files changed, 44 insertions, 10 deletions
diff --git a/README b/README
index 12ffb7e..20fd953 100644
--- a/README
+++ b/README
@@ -7,7 +7,7 @@ used on any distro.
Usage: scanelf [options] <dir1/file1> [dir2 dirN fileN ...]
-Options: -[plRmyxetrnibs:aqvF:f:o:BhV]
+Options: -[plRmyxetrnibs:N:TaqvF:f:o:BhV]
-p, --path * Scan all directories in PATH environment
-l, --ldpath * Scan all directories in /etc/ld.so.conf
-R, --recursive * Scan directories recursively
@@ -15,13 +15,15 @@ Options: -[plRmyxetrnibs:aqvF:f:o:BhV]
-y, --symlink * Don't scan symlinks
-x, --pax * Print PaX markings
- -e, --header * Print GNU_STACK 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, --symbol <arg> * Find a specified symbol
+ -N, --lib <arg> * Find a specified library
+ -T, --textrels * Locate cause of TEXTREL
-a, --all * Print all scanned info (-x -e -t -r -n -i -b)
-q, --quiet * Only output 'bad' things
@@ -34,9 +36,14 @@ Options: -[plRmyxetrnibs:aqvF:f:o:BhV]
-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
+ 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
+ p filename (with search path removed)
+ f base filename
+
+Prefix each modifier with '%' (verbose) or '#' (silent)
== pspax ==
Usage: pspax [options]
@@ -52,8 +59,22 @@ 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 <file1> [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
-PaX Homepage:
-http://pax.grsecurity.net/
+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/
diff --git a/man/scanelf.1 b/man/scanelf.1
index f6c1b7f..a46ea60 100644
--- a/man/scanelf.1
+++ b/man/scanelf.1
@@ -49,6 +49,13 @@ Print INTERP information
\fB\-s, \-\-symbol <arg>\fR
Find a specified symbol
.TP
+\fB\-N, \-\-lib <arg>\fR
+Find a specified library
+.TP
+\fB\-T, \-\-textrels <arg>\fR
+Find a specified symbol
+Locate cause of TEXTREL
+.TP
\fB\-a, \-\-all\fR
Print all scanned info (-x -e -t -r -n -i -b)
.TP
@@ -65,13 +72,20 @@ This option implies -a internally.
Use specified format for output.
\fB%F\fR FILENAME
\fB%x\fR PaX-Flags
- \fB%e\fR STACK/RELRO
+ \fB%e\fR STACK/RELRO/LOAD
\fB%t\fR TEXTREL
\fB%r\fR RPATH
\fB%b\fR BINDINGS
\fB%n\fR NEEDED
\fB%i\fR INTERP
\fB%s\fR symbol
+ \fB%N\fR library
+ \fB%T\fR TEXTRELs
+ \fB%o\fR Elf Type
+ \fB%p\fR filename (with search path removed)
+ \fB%f\fR base filename
+.TP
+ Prefix each modifier with '%' (verbose) or '#' (silent)
.TP
\fB\-f, \-\-from <arg>\fR
Read input stream from a filename
@@ -105,7 +119,7 @@ scanelf -p # Would print everything in your normal PATH.
.TP
scanelf -l -p -a -R # Would print everything in library path and PATHs recursively.
.LP
-scanelf -ltq # Would search every elf in your library paths for quality assurance problems with text relocations. use -p native pie systems.
+scanelf -ltq # Would search every elf in your library paths for quality assurance problems with text relocations. use -p on native pie systems.
.TP
Alternativly you can run it like:
.LP
@@ -118,7 +132,6 @@ options) and send bug reports to pax-utils <solar@gentoo.org> or
.BR chpax (1),
.BR paxctl (1),
.BR pspax (1),
-.BR gradm (8),
.BR readelf (1),
.SH "AUTHORS"
scanelf was written by <solar@gentoo.org> and <vapier@gentoo.org>