jailkit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Jailkit-dev] [bug #54689] The chrooted jail pattern is path/./path not


From: anonymous
Subject: [Jailkit-dev] [bug #54689] The chrooted jail pattern is path/./path not path.path
Date: Wed, 19 Sep 2018 08:14:56 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0

URL:
  <https://savannah.nongnu.org/bugs/?54689>

                 Summary: The chrooted jail pattern is path/./path not
path.path
                 Project: Jailkit
            Submitted by: None
            Submitted on: Wed 19 Sep 2018 12:14:55 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?54689>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]