bugJailkit - Bugs: bug #26089, jk_chrootsh hangs at login in...

 
 

bug #26089: jk_chrootsh hangs at login in Jailkit 2.6 (regression)

Submitter:  David Ward <dpward>
Submitted:  Sun 05 Apr 2009 06:22:24 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  oli4
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 05 Apr 2009 04:31:13 PM UTC, comment #2: 

Yes, it looks like it's fixed now.  Thanks!

David Ward <dpward>
Sun 05 Apr 2009 10:58:03 AM UTC, comment #1: 

I think I fixed the regression in CVS.

can you confirm if the changes fix the behavior?

Olivier Sessink <oli4>
Group administrator
Sun 05 Apr 2009 06:22:24 AM UTC, original submission:  

I am using Jailkit 2.6 under Ubuntu 8.10, Ubuntu 7.04 (EOL), and Fedora 10.

When I log in to a jailed user account (with the shell set to /usr/sbin/jk_chrootsh), the login process hangs indefinitely.  No errors appear in stderr or any of the logs that I can see.  I eventually just have to use Ctrl+C to cancel the login attempt.  If I uninstall Jailkit 2.6 and reinstall Jailkit 2.5 without touching any files or configuration, the problem goes away immediately.

The steps I am performing after installing Jailkit include the following (all with sudo):

mkdir /jail
jk_init -v /jail basicshell
adduser hacker
passwd hacker
rm /home/hacker/Examples  # Ubuntu only; remove default symlink
jk_jailuser -m -s /bin/bash -j /jail hacker

Then I try to access the account with either 'su hacker' or 'ssh hacker@localhost' and it hangs right after it accepts the password.

Thanks.

David Ward <dpward>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by oli4 (Updated the item)
  • -email is unavailable- added by dpward (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-04-05 oli4 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2009-04-05 oli4 Assigned toNone oli4
    2009-04-05 oli4 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code