From 8ade18b9aeb6e1d59d49d1b98ad162af8b872ef5 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 20 Dec 2012 10:35:56 +0700 Subject: //sandbox - graveyard for the too-new and too-old projects of course, there is always a good time for grave-digging, voodoo and necomancing. Just take care, the projects may bite --- sandbox/DNA/linux/TODO | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sandbox/DNA/linux/TODO (limited to 'sandbox/DNA/linux/TODO') 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 -- cgit v1.2.3