Bug 2458

Summary: do not print warning about missing home directory in chroot
Product: Portable OpenSSH Reporter: Christian Hesse <mail>
Component: sshdAssignee: Damien Miller <djm>
Status: CLOSED FIXED    
Severity: normal CC: djm, dtucker, etienne.buira
Priority: P5    
Version: 7.1p1   
Hardware: All   
OS: All   
See Also: https://bugzilla.mindrot.org/show_bug.cgi?id=2452
Bug Depends on:    
Bug Blocks: 2451    
Attachments:
Description Flags
do not print warning about missing home directory in chroot
none
do not print warning about missing home directory in chroot
none
Remove a redundant flag too dtucker: ok+

Description Christian Hesse 2015-09-07 23:16:57 AEST
Created attachment 2695 [details]
do not print warning about missing home directory in chroot

Since setting options.chroot_directory to NULL after successful chroot
the following error message is back:

Could not chdir to home directory /home/user: No such file or
directory

Remember that we are inside a chroot and do not print error message
about missing home directory.
Comment 1 Christian Hesse 2015-09-07 23:17:36 AEST
Created attachment 2696 [details]
do not print warning about missing home directory in chroot
Comment 2 Christian Hesse 2015-09-08 00:23:46 AEST
BTW, this is kind of critical as it leaks host file system pathes into the chroot.
Comment 3 Damien Miller 2015-10-23 14:12:14 AEDT
Created attachment 2737 [details]
Remove a redundant flag too
Comment 4 Damien Miller 2015-10-25 09:52:54 AEDT
Patch applied - this will be in OpenSSH 7.2
Comment 5 Damien Miller 2016-08-02 10:42:50 AEST
Close all resolved bugs after 7.3p1 release