Thread: How to run command in a chroot jail

  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    3

    How to run command in a chroot jail

    I need to code a jailed command executor and it needs to execute linux command, copying all the /bin directory to my new root is the only way ?

    Thanks, any help is appreciated

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Command line how to handle optional command.
    By ovid in forum C++ Programming
    Replies: 1
    Last Post: 03-07-2010, 11:41 PM
  2. More jail time for virus writers
    By Salem in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-15-2006, 09:49 AM
  3. Problems with chroot()
    By kalium in forum C Programming
    Replies: 3
    Last Post: 03-06-2006, 06:47 AM
  4. Someone keep me out of jail
    By RoD in forum A Brief History of Cprogramming.com
    Replies: 30
    Last Post: 02-14-2005, 03:20 PM
  5. Sony Executives Face Jail
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 06-04-2004, 04:28 PM