bugJailkit - Bugs: bug #54689, The chrooted jail pattern is...

 
 

bug #54689: The chrooted jail pattern is path/./path not path.path

Submitter:  None
Submitted:  Wed 19 Sep 2018 12:14:55 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 19 Sep 2018 01:59:11 PM UTC, comment #1: 

thanks, fixed in cvs! your fixes are perfect!

Olivier Sessink <oli4>
Group administrator
Wed 19 Sep 2018 12:14:55 PM UTC, original submission:  

Hi,
the non-chrotted paths on my system are following the pattern below.
/home/domain.de/Maildir/
And the chrotted paths on my system are following the pattern below.
/home/chroot/146375555212927/home/domain.de/Maildir/
Therefore, the path of the home directory
/home/chroot/146375555212927/./home/domain.de
Therefore, the jk_procmailwrapper was always terminated with exitcode 17.

To fix this, must in the function user_is_chrooted line 58 changed to:
tmp = strstr (homedir, "/./");
and line 142 to:
if (!pw->pw_dir || strlen(pw->pw_dir) ==0 || strstr(pw->pw_dir, "/./") == NULL) {

That worked for me at least.

Anonymous

 

(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 (Posted a comment)
  •  

    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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-19 oli4 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code