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?
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...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
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...
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
Logged In: NO
thanks, this fixes the problem