blob: fd0d927f5371e3aa116af2162b0f32174983213a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
|