[haiku-bugs] Re: [Haiku] #7367: sshd fails to load, due to missing directory /var/empty

  • From: "mmadia" <trac@xxxxxxxxxxxx>
  • Date: Sun, 13 Mar 2011 14:05:03 -0000

#7367: sshd fails to load, due to missing directory /var/empty
--------------------------------------+----------------------------
   Reporter:  mmadia                  |      Owner:  stippi
       Type:  bug                     |     Status:  assigned
   Priority:  normal                  |  Milestone:  R1/alpha3
  Component:  Applications/Installer  |    Version:  R1/Development
 Resolution:                          |   Keywords:
 Blocked By:                          |   Blocking:
Has a Patch:  0                       |   Platform:  All
--------------------------------------+----------------------------
Changes (by mmadia):

 * status:  new => assigned
 * owner:  nobody => stippi
 * component:  - General => Applications/Installer
 * milestone:  R1 => R1/alpha3


Old description:

> r40924.
>
> By default, {{{ /boot/common/settings/network/services }}} launches {{{
> /boot/common/bin/sshd -D }}}.  However, on a cleanly installed partition,
> {{{ /var/empty }}} does not exist, thus sshd fails to start :
>
> {{{
> ~/Desktop> /boot/common/bin/sshd -D
> Missing privilege separation directory: /var/empty
> }}}
>
> browser:haiku/trunk/build/jam/OptionalPackages:1225 , specifies the
> /var/empty directory.
> {{{
>                 AddUserToHaikuImage sshd : 1001 : 100 : /var/empty :
> /bin/true
>                         : "sshd user" ;
> }}}
>
> I'm uncertain if it's more correct to specify a different directory or to
> simply  {{{  AddDirectoryToHaikuImage common var empty ; }}}

New description:

 r40924.

 By default, {{{ /boot/common/settings/network/services }}} launches {{{
 /boot/common/bin/sshd -D }}}.  However, on a cleanly installed partition,
 {{{ /var/empty }}} does not exist, thus sshd fails to start :

 {{{
 ~/Desktop> /boot/common/bin/sshd -D
 Missing privilege separation directory: /var/empty
 }}}

 browser:haiku/trunk/build/jam/OptionalPackages:1225 , specifies the
 /var/empty directory.
 {{{
                 AddUserToHaikuImage sshd : 1001 : 100 : /var/empty :
 /bin/true
                         : "sshd user" ;
 }}}

 It appears that common/var/empty is indeed added to the image file, as
 specifed by HaikuImage, but Installer ignores var and thus /var/empty goes
 missing on the installed partition.

 r35173 appears to be the culprit.

--

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7367#comment:1>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: