From: John Haxby <john.haxby@oracle.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Patrick McHardy <kaber@trash.net>,
Netfilter Developer Mailing List
<netfilter-devel@vger.kernel.org>,
Linux Netdev List <netdev@vger.kernel.org>
Subject: Re: [PATCH 1/2] netfilter: xtables: inclusion of xt_SYSRQ
Date: Wed, 28 Apr 2010 15:54:27 +0100 [thread overview]
Message-ID: <4BD84C23.2000301@oracle.com> (raw)
In-Reply-To: <4BD84992.5030909@oracle.com>
On 28/04/10 15:43, John Haxby wrote:
>
> kdboe (or kgdboe) isn't part of the kernel and I don't think it
> necessarily fits all the use cases for xt_SYSRQ. The one I have in
> mind is where there is a non-kernel hacker whose machine has got into
> trouble. The poor harrassed sys admin (in this case) has configured
> netconsole and knows that sysrq-t and sysrq-m are useful as a first
> attempt at passing useful information to someone who knows what might
> be going on and that sysrq-c to get a crash dump will also be
> useful. (This represents quite a few of the better sys admins that I
> come across.) xt_SYSRQ is likewise easy to set up and easy to use.
> It's true that k(g)dboe would provide this kind of information
> provided that the debuginfo was present on the target machine and the
> environment was such that any sort of debugging over netconsole was
> sufficiently secure ... (is it at least as secure as the xt_SYSRQ
> controls?)
>
I really must read what I've written more carefully. I should have
gone on to say that I don't see that k(g)dboe will be viable in this use
case although for someone actually debugging a kernel on a machine that
they have access to xt_SYSRQ leaves an awful lot to be desired :-) But
that isn't the common use-case I see -- the one I see is where the sys
admins used to have a "crash trolley" which was a console and PS/2
keyboard which they could plug into a machine to get some information,
but as many rack machines no longer have anything PS/2 and USB hot plug
is unlikely to work on a sick machine we need a sufficiently light
mechanism that it will work in most cases (xt_SYSRQ is careful to
pre-allocate most of the resources it will need).
And then I should have said that moving on to the possibility of a
standalone module and that ...
> I was running over the design of a standalone module in my head on the
> way in this morning. It seems fairly straightforward, but as I
> started adding in necessary requirements like limited IP addresses
> (which I know are not actually secure), limited interfaces (which are
> more secure in a controlled physical environment), user-space control
> and so on the more it was sounding as though it would just be a
> cut-down iptables. And then, of course, that begs the question "why
> don't you leave all that extra stuff to iptables?"
So unless I'm missing something obvious and different, I don't see that
a standalone module is going to be lightweight enough to be acceptable.
Sorry for not making filling this parts in earlier.
jch
next prev parent reply other threads:[~2010-04-28 14:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 10:26 nf-next: sysrq and condition 20100421 Jan Engelhardt
2010-04-21 10:26 ` [PATCH 1/2] netfilter: xtables: inclusion of xt_SYSRQ Jan Engelhardt
2010-04-21 12:59 ` Patrick McHardy
2010-04-21 13:07 ` Jan Engelhardt
2010-04-21 13:17 ` Patrick McHardy
2010-04-21 13:35 ` Jan Engelhardt
2010-04-28 14:43 ` John Haxby
2010-04-28 14:54 ` John Haxby [this message]
2010-04-28 15:03 ` Jan Engelhardt
2010-04-28 15:50 ` John Haxby
2010-07-25 16:49 ` Jan Engelhardt
2010-07-25 18:13 ` John Haxby
2012-01-05 13:19 ` Shan Wei
2010-04-21 10:26 ` [PATCH 2/2] netfilter: xtables: inclusion of xt_condition Jan Engelhardt
2010-04-21 13:07 ` Patrick McHardy
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=4BD84C23.2000301@oracle.com \
--to=john.haxby@oracle.com \
--cc=jengelh@medozas.de \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).