From: "Herbert Pötzl" <herbert@13thfloor.at>
To: Steven Micallef <steven.micallef@world.net>
Cc: "'Ben Collins'" <bcollins@debian.org>, linux-kernel@vger.kernel.org
Subject: Re: chroot() breaks syslog() ?
Date: Mon, 4 Aug 2003 15:33:07 +0200 [thread overview]
Message-ID: <20030804133307.GA4225@www.13thfloor.at> (raw)
In-Reply-To: <6416776FCC55D511BC4E0090274EFEF5080024AC@exchange.world.net>
On Mon, Aug 04, 2003 at 03:49:48PM +1000, Steven Micallef wrote:
> You're right - my mistake, it doesn't actually work on 2.4.8 either, I think
> I was looking at the wrong thing when I thought it was actually working.
>
> Is it worth considering (optionally) making /dev available to chroot()'ed
> environments, or would that just defeat the whole purpose of chroot()?
IMHO, devfs in chroot environment, is defeating the purpose
because if you have access to raw devices, like the device
your chroot dir is on, you can easily mount that device
again, and voila you have access to the full tree, if you
just have access to, lets say a ramdisk (as raw device of
course), you can also easily write on it, and create the
required device nodes yourself, then mount, and again
everything is available ...
best thing to do is to copy only those devices, which are
absolutely required to the chrooted environment ...
HTH,
Herbert
> Regards,
>
> Steve.
>
> > -----Original Message-----
> > From: Ben Collins [mailto:bcollins@debian.org]
> > Sent: Monday, 4 August 2003 3:19 PM
> > To: Steven Micallef
> > Cc: 'linux-kernel@vger.kernel.org'
> > Subject: Re: chroot() breaks syslog() ?
> >
> >
> > > connect(3, {sin_family=AF_UNIX, path="/dev/log"}, 16) = -1
> > ENOENT (No such
> > > file or directory)
> > >
> > > Is this intentional? If so, is there a work-around? I
> > discovered this when
> > > debugging 'rwhod', but I imagine there are many more utils
> > that would be
> > > affected too.
> >
> > I don't know how it ever did work, if in fact it did for you. /dev/log
> > is not a kernel device, it's just a normal socket created by syslogd.
> >
> > Now, if you use devfs, and mount devfs under the chroot, it magically
> > propogates /dev/log. But that's not the normal thing.
> >
> > --
> > Debian - http://www.debian.org/
> > Linux 1394 - http://www.linux1394.org/
> > Subversion - http://subversion.tigris.org/
> > WatchGuard - http://www.watchguard.com/
> > __________ Information from NOD32 1.449 (20030630) __________
> >
> > This message was checked by NOD32 for Exchange e-mail monitor.
> > http://www.nod32.com
> >
> >
> >
> >
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2003-08-04 13:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-04 5:49 Steven Micallef
2003-08-04 5:34 ` Ben Collins
2003-08-04 6:12 ` David Lang
2003-08-04 8:40 ` Wichert Akkerman
2003-08-04 13:33 ` Herbert Pötzl [this message]
2003-08-04 20:19 ` Olaf Titz
-- strict thread matches above, loose matches on Subject: below --
2003-08-06 13:34 Oliver Pitzeier
2003-08-06 8:42 Oliver Pitzeier
2003-08-06 11:08 ` Herbert Pötzl
2003-08-04 7:30 Steven Micallef
2003-08-04 5:27 Steven Micallef
2003-08-04 5:19 ` Ben Collins
2003-08-04 7:23 ` Torsten Foertsch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030804133307.GA4225@www.13thfloor.at \
--to=herbert@13thfloor.at \
--cc=bcollins@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=steven.micallef@world.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®