Ignore:
Timestamp:
Aug 4, 2006, 6:40:42 AM (14 years ago)
Author:
pguyot (Paul Guyot)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/tests/trace/Portfile

    r18988 r19004  
    1 # $Id: Portfile,v 1.6 2006/08/02 00:48:29 pguyot Exp $
     1# $Id: Portfile,v 1.7 2006/08/04 06:40:42 pguyot Exp $
    22
    33PortSystem 1.0
     
    1919destroot        {}
    2020
    21 test { 
     21test {
    2222        catch {system "touch create-trace"}
    2323        catch {system "rm delete-trace"}
     
    2727        catch {system "rmdir rmdir-trace"}
    2828        catch {system "mv rename-trace rename-new-trace"}
     29        catch {system "DYLD_INSERT_LIBRARIES= touch create-trace-modenv"}
    2930        system "mkdir -p /usr/bin"
    3031}
Note: See TracChangeset for help on using the changeset viewer.