summaryrefslogtreecommitdiffstats
path: root/sandbox/DNA/linux/TODO
diff options
context:
space:
mode:
authoreuer <root@euer.krebsco.de>2012-12-20 03:19:28 +0100
committereuer <root@euer.krebsco.de>2012-12-20 03:19:28 +0100
commit38dbb8ee3867060fddd427d1bb4e57ee0300c8bb (patch)
treeabb7b2ab988934d6ddfbdd0448517b3a957645bf /sandbox/DNA/linux/TODO
parent7c1b02b086a8377ad76a46c277a224150c5b85d6 (diff)
parent09dc57b9d5f564d13f80707eefadd845a4aa9aec (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'sandbox/DNA/linux/TODO')
-rw-r--r--sandbox/DNA/linux/TODO16
1 files changed, 16 insertions, 0 deletions
diff --git a/sandbox/DNA/linux/TODO b/sandbox/DNA/linux/TODO
new file mode 100644
index 00000000..fd0d927f
--- /dev/null
+++ b/sandbox/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