On Wed, 25 Jan 2006 22:23:34 -0500, Bill Marcum <(E-Mail Removed)> wrote:
> On Wed, 25 Jan 2006 23:02:27 +0100, Ralf Näke
> <(E-Mail Removed)> wrote:
> >
> > if i want to test a application i want to block all trafic from this
> > application to the internet. but in the first moment i do not have any
> > idea which ports this apllication will use. furthermore i will be shure
> > that this application not uses the port 80 for exsample to phone at
> > home. but if i close the port 80 i will not be able to use my browser.
>
> Maybe what you want is to run the application in a virtual machine or
> User Mode Linux.
The grsecurity kernel patches advertise GID based socket restrictions
(
http://www.grsecurity.net/features.php). You could make one browser
setgid (with a dedicated group) and deny it the ability to open
network sockets.
Along similar lines, you could probably do what you want with a custom
selinux policy, but I've never heard of anyone getting any joy out of
trying to handcraft a policy.
Mike
--
Michael Zawrotny
Institute of Molecular Biophysics
Florida State University | email:
(E-Mail Removed)
Tallahassee, FL 32306-4380 | phone: (850) 644-0069