summaryrefslogtreecommitdiffstats
path: root/.graveyard/DNA/linux/TODO
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-11-05 23:40:11 +0100
committermakefu <github@syntax-fehler.de>2013-11-05 23:40:11 +0100
commit940d07624c6b82d5e7ec790c2ef49b4694a48794 (patch)
tree3f4bb46333429d8e9a4f566579f82cacbd3096c9 /.graveyard/DNA/linux/TODO
parentfe1017207310d0cfd6448750205d08b2455f20a2 (diff)
parent85c99011060b4b37a760fa24d0a0e23e83413bef (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to '.graveyard/DNA/linux/TODO')
-rw-r--r--.graveyard/DNA/linux/TODO16
1 files changed, 16 insertions, 0 deletions
diff --git a/.graveyard/DNA/linux/TODO b/.graveyard/DNA/linux/TODO
new file mode 100644
index 00000000..fd0d927f
--- /dev/null
+++ b/.graveyard/DNA/linux/TODO
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+## find all syscalls that have to be patched
+h="/lib/modules/$(uname -r)/build/include/linux/syscalls.h"
+sed -n 's/.*sys_\([^)]\+\)(.*/\1/p' $h | while read f; do
+ x="`( man 3p $f || man 3 $f || man $f ) 2>/dev/null`"
+ echo "`
+ echo "$x" | grep -q ENAMETOOLONG && echo 1 || echo 0``
+ echo "$x" | grep -q EACCES && echo 1 || echo 0``
+ ` $f"
+done
+
+# disable interrupts before modifying the sys_call_table
+# see: sti tli
+# disable other CPUs: suspend-code [the suspend code does all this, too]
+# TLB flushen: irgendwo bei der architektur