jailkit-dev
[Top][All Lists]
Advanced

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

[Jailkit-dev] [bug #23493] Jailkit does not honour users with the same u


From: anonymous
Subject: [Jailkit-dev] [bug #23493] Jailkit does not honour users with the same user id
Date: Thu, 05 Jun 2008 12:13:37 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_3; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.20

URL:
  <http://savannah.nongnu.org/bugs/?23493>

                 Summary: Jailkit does not honour users with the same user id
                 Project: Jailkit
            Submitted by: None
            Submitted on: Thursday 06/05/2008 at 12:13 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Hi in this bit of code, jailkit does not honour users that are from the same
user and group id. The same user id is required for users to access a web
document root and have the same permissions, setup from within a control panel
software.

Can the check here also do a string comparison against the group ?

if ((strcmp(pw->pw_name, oldpw_name)!=0) && (strcmp(gr->gr_name,
oldgr_name)!=0)) {
  390                   syslog(LOG_ERR, "abort, username %s differs from jail 
username %s
for user ID %d, check /etc/passwd and %s/etc/passwd", oldpw_name, pw->pw_name,
getuid(), jaildir);
  391                   exit(37);
  392           }
  393           

How about this ?  Or add a config option to disable this check. It's a pretty
crazy one. 




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?23493>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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