[H-GEN] /dev/log inside a chroot

Bruce Campbell bc at humbug.org.au
Wed Aug 23 01:24:34 EDT 2000


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

On Wed, 23 Aug 2000, Martin Pool wrote:

mbp> On Wed, Aug 23, 2000 at 12:33:43PM +1000, Bruce Campbell wrote:
mbp> > On Wed, 23 Aug 2000, David Jericho wrote:
mbp> > davidj> How do I go about fixing this? That is, getting the
mbp> > davidj> chrooted version of /dev/log to work?
mbp> > As long as the device is created with the appropriate major and minor
mbp> > numbers as the true /dev/log, messages written to /chroot/dev/log (ugh)
mbp> > should turn up in the global syslog.
mbp> If it had major/minor number that would be true, but as it doesn't it
mbp> isn't:
mbp> srw-rw-rw-    1 root     root            0 Aug 23 06:30 /dev/log
mbp> This is a Unix domain socket, so you cannot just copy it.  (?)

  0 cr--r--r--    1 root     root       9,  5 Jun  2 08:00 /dev/log

On this Unix, its a device.  It does depend on which variant of Unix you
are using (obviously), hence the difference in opinions expressed.

You can also do wonders with hard links if you have the disk space on / .

-- 
  Bruce.                                                         | VP/BOFH
  Infinite Monkeys.  Infinite Keyboards.  I see no Shakespeare.  |  HUMBUG
  Usenet may or may not be an implementation of RFC2795.         |     PAN


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list