search for: send_nam

Displaying 4 results from an estimated 4 matches for "send_nam".

Did you mean: send_dma
2014 Jan 01
0
Soft chroot jail for sftp-server
...ee(path); > return; > } > > } 975a1135 > name = jail_to_actual(name); 997a1158 > name = jail_to_actual(name); 1021a1183 > name = jail_to_actual(name); 1042a1205 > path = jail_to_actual(path); 1054,1055c1217,1233 < s.name = s.long_name = resolvedname; < send_names(id, 1, &s); --- > if (jail != NULL) { > char* jailed_resolvedname = actual_to_jail(xstrdup(resolvedname)); > /* Note that only the resolved string needs to point inside the jail. During resolution it may visit links outside jail > * The SFTP-user, however, is not able...
2007 Nov 11
1
ftp-server patch - restrict user to directory
...); } debug3("request %u: realpath", id); - verbose("realpath \"%s\"", path); - if (realpath(path, resolvedname) == NULL) { - send_status(id, errno_to_portable(errno)); - } else { - Stat s; - attrib_clear(&s.attrib); - s.name = s.long_name = resolvedname; - send_names(id, 1, &s); - } + + /* RestrictDirectory ? - could be used to probe the file system. + * Need to allow on realpath since that is done automatically to get the $HOME. + * The user must then cd <whereever> before s/he can do anything else. + */ + if(num_realpaths++ == 0 || allowed_acce...
2002 Nov 05
0
[PATCH] Add getlink command to sftp
...n(name, a->uid, a->gid); if (ret == -1) status = errno_to_portable(errno); } *************** *** 907,915 **** send_status(id, errno_to_portable(errno)); else { Stat s; ! link[len] = '\0'; attrib_clear(&s.attrib); s.name = s.long_name = link; send_names(id, 1, &s); } --- 941,958 ---- send_status(id, errno_to_portable(errno)); else { Stat s; ! struct stat st; ! int status; link[len] = '\0'; attrib_clear(&s.attrib); + + status = lstat(path, &st); + if (status == 0) { + stat_to_attrib(&st, &...
2003 Sep 22
13
[Bug 697] ending slash is not used
http://bugzilla.mindrot.org/show_bug.cgi?id=697 Summary: ending slash is not used Product: Portable OpenSSH Version: 3.7.1p1 Platform: PPC OS/Version: AIX Status: NEW Severity: normal Priority: P2 Component: sftp-server AssignedTo: openssh-bugs at mindrot.org ReportedBy: ramses at