From: Max Kellermann Subject: Re: new REBOOT target Date: Tue, 1 Mar 2005 01:20:58 +0100 Message-ID: <20050301002058.GA981@roonstrasse.net> References: <20050226215628.C7D1.LARK@linux.net.cn> <20050228090635.GA25632@roonstrasse.net> <20050228174120.C816.LARK@linux.net.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@lists.netfilter.org To: Wang Jian Content-Disposition: inline In-Reply-To: <20050228174120.C816.LARK@linux.net.cn> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org On 2005/02/28 10:41, Wang Jian wrote: > Beside my laziness, the --passphrase is an error-proof mechanism per > se. Let's assume some one wants to use -j REBOOT, but he doesn't > specified a good enough match, just '-p icmp', then boom ;) In this > sense, the --passphrase is not match, but part of target. (my first reply to you didn't get to the list, maybe a mailman failure?) Now what about an error proof admin? ;) Sorry, I don't think this is a good argument, don't try to find an excuse for writing a dangerous rule (and for writing such a netfilter "design violation"). If an admin is brave enough to compile REBOOT into the kernel and write "-j REBOOT" somewhere, it's his own fault he didn't implement the correct match. Someone with root access should know better. REBOOT should ... reboot! Not match the protocol or a certain pass phrase. Max