Skip to contentSkip to conversation

syscall filtering

Qemu-devel Magnus Damm 5 participants 5 messages Nov 23, 2004 – Nov 24, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

While Piotrek is thinking about securing the system emulator, I am more interested in syscall filtering. I have not thought about it too much, but the idea (if possible) would be to run qemu as a filter for certain binaries on your machine. Basically, you run i386-user with filters on a i386 machine.

fakeroot-replacement:
---------------------
fakeroot is nice, but is only working for dynamically linked binaries. Using the qemu user emulator to filter syscalls would make it possible to have a fakeroot that works for any binary. As long as the binary doesn't try to do any root-activities in the kernel that is.

securing scripts:
-----------------
Trojans hiding in configure-scripts, how fun is that? Remember?
http://www.mavetju.org/unix/openssh-trojan.php
By executing the configure script (and all children) in an environment that detects and disables network activity I would feel safe(r).

/ magnus

#1 lore raw
Quoted 7 lines · Magnus Damm

Hello,

While Piotrek is thinking about securing the system emulator, I am more interested in syscall filtering. I have not thought about it too much, but the idea (if possible) would be to run qemu as a filter for certain binaries on your machine. Basically, you run i386-user with filters on a i386 machine.

You would also need to add memory access protection. With the current user emulation it is possible for the emulated appliction to directly modify the emulator state.

Paul

#2 lore raw
In reply to Magnus Damm
Quoted 7 lines · Magnus Damm

Hello,

While Piotrek is thinking about securing the system emulator, I am more interested in syscall filtering. I have not thought about it too much, but the idea (if possible) would be to run qemu as a filter for certain binaries on your machine. Basically, you run i386-user with filters on a i386 machine.

What about systrace ?
http://www.citi.umich.edu/u/provos/systrace/index.html

You never need an emulator to filter syscalls on Unix: take a look to ptrace syscall, especially PTRACE_SYSCALL request, all needed features are already there...

Signature · 2 lines
J. Mayer <[email protected]>
Never organized
#4 lore raw
In reply to J. Mayer

Hi,

Quoted 3 lines

You never need an emulator to filter syscalls on Unix: take a look to ptrace syscall, especially PTRACE_SYSCALL request, all needed features are already there...

The problem is that many applications are ptrace-resistant, so systrace does not work there. You need a complete emulator for those applications.

Many greetings,
Philipp Gühring