From: Borislav Petkov <bp@alien8.de>
To: bbi5291 <bbi5291@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Does init start with any open files?
Date: Tue, 25 Dec 2012 12:58:44 +0100 [thread overview]
Message-ID: <20121225115844.GG7692@liondog.tnic> (raw)
In-Reply-To: <CAMmfjbNmN0pPXr-HY7qzK52YpwoSU76q1Puog951X7h099XHBA@mail.gmail.com>
First of all,
please do not top-post. You can search the net for why top-posting is
discouraged.
On Tue, Dec 25, 2012 at 06:25:11AM -0500, bbi5291 wrote:
> Well, that can't be right---I grepped the kernel source for "initctl"
> and got no results.
That's because it is a named pipe.
> Besides, if you're running a shell, then init has already had time
> to open and close whatever file descriptors it wants to. What I want
> to know is whether init has any open file descriptors, at, say, the
> moment its main() starts executing.
You probably want to stare at init/main.c:kernel_init() and what it
calls, and then download the sources of the init executable which is run
on your distro, whip up a text editor and start staring at them.
HTH.
--
Regards/Gruss,
Boris.
Sent from a fat crate under my desk. Formatting is fine.
--
next prev parent reply other threads:[~2012-12-25 11:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-25 7:38 Does init start with any open files? bbi5291
2012-12-25 11:17 ` Borislav Petkov
2012-12-25 11:25 ` bbi5291
2012-12-25 11:58 ` Borislav Petkov [this message]
2012-12-25 13:38 ` Miquel van Smoorenburg
2012-12-25 21:40 ` Rob Landley
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=20121225115844.GG7692@liondog.tnic \
--to=bp@alien8.de \
--cc=bbi5291@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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