Giter Site home page Giter Site logo

chroot_before_main's Introduction

chroot_before_main 1.0.0 - A method of executing dynamically linked executables
                           inside a change root without copying the dynamic
                           libraries into change root.
-------------------------------------------------------------------------------

chroot_before_main is a combination of a shared library and accompanying binary
which provides a method for executing a program inside a change root directory
without having to copy in all libraries that the program depends on.  This is
accomplished by placing a hook into the program just before main() is called.
This hook performs the chroot() call.

The dynamic library loader (ld.so) provides a mechanism called LD_AUDIT which
allows for a function callback after all dynamic libraries have been loaded,
but before the main() function is called.  In the case of chroot_before_main,
the library chroot_before_main.so contains a function called la_preinit().
la_preinit is where a chroot() is called to place the program in a chroot
jail. The program can be further locked down by disallowing the chrooted
program to call chroot() itself, which is a known exploit for breaking
out of a jail.

Ryan Chapman, [email protected]
Sun Jun  3 15:24:09 MDT 2012

chroot_before_main's People

Contributors

ryanchapman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.