source: trunk/base/tests/trace/Portfile @ 19004

Last change on this file since 19004 was 19004, checked in by pguyot (Paul Guyot), 14 years ago

Changes to strengthen the trace mode:

  • the values of the global variables are noted when the library is loaded and not when the first trapped function is called.
  • when a process calls exec[ve], the environment variables are restored.

Both changes aim at preventing processes to (inadvertantly) bypass of trace
mode.

Several holes remain (syscall, setuid binaries owned by a different user, kernel
modules), but this should prevent all inadvertant methods to bypass the trace
mode.

  • Property svn:eol-style set to native
File size: 697 bytes
Line 
1# $Id: Portfile,v 1.7 2006/08/04 06:40:42 pguyot Exp $
2
3PortSystem 1.0
4name            trace
5version         1
6categories      test
7maintainers     pguyot@kallisys.net
8description     Test port for -t
9homepage        http://darwinports.opendarwin.org/
10platforms       darwin
11
12long_description ${description}
13
14fetch           {}
15checksum        {}
16extract         {}
17configure       {}
18build           {}
19destroot        {}
20
21test {
22        catch {system "touch create-trace"}
23        catch {system "rm delete-trace"}
24        system "touch /tmp/hello-trace"
25        system "rm /tmp/hello-trace"
26        catch {system "mkdir mkdir-trace"}
27        catch {system "rmdir rmdir-trace"}
28        catch {system "mv rename-trace rename-new-trace"}
29        catch {system "DYLD_INSERT_LIBRARIES= touch create-trace-modenv"}
30        system "mkdir -p /usr/bin"
31}
Note: See TracBrowser for help on using the repository browser.