Package: makejail
Version: 0.0.5-7
Severity: normal

Hi,

I just started trying out makejail with a simple example:

chroot="/tmp/chroot"
testCommandsInsideJail=["ls"]

% sudo makejail config.py

Loading configuration file config.py
   Defining testCommandsInsideJail = ['ls']
   Defining chroot = '/tmp/chroot'
Chroot directory is /tmp/chroot
Initializing list of running processes
  Executing : ps -e
Running strace on commands from inside jail
   Execution #1
      Tracing command chroot /tmp/chroot ls
      Sleeping for 2.00 seconds
      Stopping tracing ...         Executing : killall -9 strace
        WARNING: exit code 256
      
      Looking for missing files in the trace file
      No missing file found
Executing command 'chroot /tmp/chroot ls' (pwd=/tmp/makejail_logs)   return 
code is 0 
Executing command 'chroot /tmp/chroot ls' (pwd=/tmp/makejail_logs)   return 
code is 0 
Sleeping for 2.00 seconds

% echo $?
0

% ls -lh /tmp/chroot
ls: cannot access /tmp/chroot: No such file or directory


On the other hand if I create /tmp/chroot first then I get the
expected result, a chroot with bin/ls and required libs.

I think makejail should create the chroot directory if missing or at
least abort with an error.

MfG
        Goswin

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (499, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31.6-xen-2010.02.18 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages makejail depends on:
ii  binstats                      1.08-8     Statistics tool for installed prog
ii  psmisc                        22.10-1    utilities that use the proc file s
ii  python                        2.5.4-9    An interactive high-level object-o
ii  strace                        4.5.19-1   A system call tracer

makejail recommends no packages.

makejail suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to