Bug 2458 - do not print warning about missing home directory in chroot
Summary: do not print warning about missing home directory in chroot
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 7.1p1
Hardware: All All
: P5 normal
Assignee: Damien Miller
URL:
Keywords:
Depends on:
Blocks: V_7_2
  Show dependency treegraph
 
Reported: 2015-09-07 23:16 AEST by Christian Hesse
Modified: 2016-08-02 10:42 AEST (History)
3 users (show)

See Also:


Attachments
do not print warning about missing home directory in chroot (1.76 KB, application/x-download)
2015-09-07 23:16 AEST, Christian Hesse
no flags Details
do not print warning about missing home directory in chroot (1.76 KB, patch)
2015-09-07 23:17 AEST, Christian Hesse
no flags Details | Diff
Remove a redundant flag too (2.69 KB, patch)
2015-10-23 14:12 AEDT, Damien Miller
dtucker: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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