How to run command in a chroot jail

This is a discussion on How to run command in a chroot jail within the Linux Programming forums, part of the Platform Specific Boards category; I need to code a jailed command executor and it needs to execute linux command, copying all the /bin directory ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,659
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 10: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, 05: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, 02: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21