28.08.2015 Views

The Design and Implementation of the Anykernel and Rump Kernels

1F3KDce

1F3KDce

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A–32<br />

RUMPHIJACK(3) NetBSD Library Functions Manual RUMPHIJACK(3)<br />

NAME<br />

rumphijack -- System call hijack library<br />

LIBRARY<br />

used by ld.so(1)<br />

DESCRIPTION<br />

<strong>The</strong> ld.so(1) runtime linker can be instructed to load rumphijack between<br />

<strong>the</strong> main object <strong>and</strong> o<strong>the</strong>r libraries. This enables rumphijack to capture<br />

<strong>and</strong> redirect system call requests to a rump kernel instead <strong>of</strong> <strong>the</strong> host<br />

kernel.<br />

<strong>The</strong> behaviour <strong>of</strong> hijacked applications is affected by <strong>the</strong> following environment<br />

variables:<br />

RUMPHIJACK<br />

If present, this variable specifies which system calls should be<br />

hijacked. <strong>The</strong> string is parsed as a comma-separated list <strong>of</strong><br />

‘‘name=value’’ tuples. <strong>The</strong> possible lefth<strong>and</strong>side names are:<br />

‘‘path’’<br />

Pathname-based system calls are hijacked if <strong>the</strong> path<br />

<strong>the</strong> system call is directed to resides under value.<br />

In case <strong>of</strong> an absolute pathname argument, a literal<br />

prefix comparison is made. In case <strong>of</strong> a relative<br />

pathname, <strong>the</strong> current working direct is examined.<br />

This also implies that nei<strong>the</strong>r ‘‘..’’ nor symbolic<br />

links will cause <strong>the</strong> namespace to be switched.<br />

‘‘blanket’’ A colon-separated list <strong>of</strong> rump path prefixes. This<br />

acts almost like ‘‘path’’ with <strong>the</strong> difference that<br />

<strong>the</strong> prefix does not get removed when passing <strong>the</strong> path<br />

NetBSD 5.99.48 March 14, 2011 NetBSD 5.99.48

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!