[Systrace] Segfault

Stefan Pinkert stpinkert at stpinkert.de
Mon Jan 12 03:03:55 EST 2004


Hi,

i'm new to systrace. I've found it by reading the article "Enges Korsett" in 
the german journal "Linux Magazin". Unfortunately i've some problems with it. 
Here's my system configuration:

OS: SuSE9.0
Kernel: 2.4.24 patched with systrace
usr-systrace: usr-systrace-2004-01-09
The machine is used as a server so there's no XFree86 installed.

First of all is there anywhere a short description of the command line options 
of systrace? 

Patching and compiling the kernel wasn't a problem and until now it runs 
without any problems. The user-space tool was causing some problems but 
finally i was able to get it compiled. The first run (systrace -A /bin/ls) 
was successfull, but the second(systrace -f .systrace/bin_ls /bin/ls) died 
with a segfault. From what i can see from the strace log it seem to have 
problems with reading the policy file. Here are the corresponding lines from 
strace: 

open(".systrace/bin_ls", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0600, st_size=1206, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x4001a000
read(3, "Policy: /bin/ls, Emulation: linu"..., 4096) = 1206
gettimeofday({1073871300, 815142}, NULL) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

The second problem i found is that i was not able to let pass any options to 
ls (systrace -A /bin/ls -l). Systrace just killed the command.

regards Stefan



More information about the systrace mailing list