Menu

#1 addjailsw kills any daemon processes running in the jail

open
nobody
None
1
2003-09-21
2003-09-21
Aubrey
No

The addjailsw command kills any daemon processes
running through the jail!
e.g. any (jailed) user's ssh sessions will get killed
when I add extra software for that user.
Or is this normal behaviour?

Discussion

  • Aubrey

    Aubrey - 2003-09-21
    • priority: 5 --> 1
     
  • Felix Natter

    Felix Natter - 2004-03-05

    Logged In: YES
    user_id=991186

    even worse in my case (SuSE linux 7.3, I'll try debian on
    the weekend):
    if jail is running for /home/test2 and I run addjailsw for
    the same user, jail stops responding and a few seconds later
    the *whole system* crashes (I have to hit reset)

    is anybody still developing this?
    Is there a solution? I need to run jail on a production
    web-server...

     
  • Jonas Berlin

    Jonas Berlin - 2004-05-12

    Logged In: YES
    user_id=66259

    I made a patch that will

    a) skip overwriting the destination file if it has not changed
    b) delete the old destination file before copying

    This should fix the issues. It should be tested on non-linux platforms though,
    unlink might fail on some platforms if the library is in use.

    As a side note: a) is not necessary, however I added it because it probably
    saves some memory when new programs can reuse the old library (since it
    was not overwritten).

    The patch is here:
    http://xkr47.outerspace.dyndns.org/patches/jail/jail-conditional-overwrite.diff

    To apply the patch, after installing jail, do:

    cd /
    patch -p0 < jail-conditional-overwrite.diff

     
  • Nobody/Anonymous

    Logged In: NO

    thanks, this fixes the problem

     

Log in to post a comment.

MongoDB Logo MongoDB