Displaying 2 results from an estimated 2 matches for "num_chroot_us".
2002 Jul 04
4
Chroot patch (v3.4p1)
...oups", sAllowGroups },
{ "denygroups", sDenyGroups },
{ "ciphers", sCiphers },
@@ -779,6 +780,16 @@
}
break;
+ case sChrootUsers:
+ while ((arg = strdelim(&cp)) && *arg != '\0') {
+ if (options->num_chroot_users >= MAX_CHROOT_USERS)
+ fatal( "%s line %d: too many chroot users.",
+ filename, linenum);
+ options->chroot_users[options->num_chroot_users++] =
+ xstrdup(arg);...
2002 Aug 08
0
Probable bug in Chroot patch (v3.4p1)
While I was trying to get the patch to work on one of my AIX hosts (4.3.3),
I discovered what is probably a bug in the section of code in session.c.
for (i = 0; i < options.num_chroot_users; i++) {
if (match_user(pw->pw_name, hostname, ipaddr,
options.chroot_users[i])) {
dir = chroot_dir(pw);
/* 'dir' now points to memory block holding pathname */
new_home = dir;
/* contents of 'dir' pointer copied to 'new_home' poi...