Browse Source
git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21826 10447126-35f2-4685-b0cf-6dd780d3921fearly
2 changed files with 106 additions and 0 deletions
@ -0,0 +1,71 @@ |
|||||||
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||||
|
#
|
||||||
|
# Filename: package/.../ipt_sysrq/compile-fix-2.6.21.patch
|
||||||
|
# Copyright (C) 2007 The OpenSDE Project
|
||||||
|
#
|
||||||
|
# More information can be found in the files COPYING and README.
|
||||||
|
#
|
||||||
|
# This patch file is dual-licensed. It is available under the license the
|
||||||
|
# patched project is licensed under, as long as it is an OpenSource license
|
||||||
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||||
|
# of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation; either version 2 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||||
|
|
||||||
|
--- ./src/ipt_SYSRQ-module.c.orig 2007-07-20 14:38:27.000000000 +0300
|
||||||
|
+++ ./src/ipt_SYSRQ-module.c 2007-07-20 14:51:09.000000000 +0300
|
||||||
|
@@ -38,12 +38,7 @@
|
||||||
|
if( (c=rsysrq_extract((struct rsysrq_s*)buf,passwd,now.tv_sec,tolerance))==0 )
|
||||||
|
return(0);
|
||||||
|
|
||||||
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
|
||||||
|
- handle_sysrq(c, NULL, NULL, NULL );
|
||||||
|
-#else
|
||||||
|
- handle_sysrq(c, NULL, NULL );
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
+ handle_sysrq(c, NULL);
|
||||||
|
return(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -53,8 +48,7 @@
|
||||||
|
unsigned int hooknum,
|
||||||
|
const struct net_device *in,
|
||||||
|
const struct net_device *out,
|
||||||
|
- const void *targinfo,
|
||||||
|
- void *userinfo)
|
||||||
|
+ const void *targinfo)
|
||||||
|
#else
|
||||||
|
static unsigned int
|
||||||
|
target(struct sk_buff **pskb,
|
||||||
|
@@ -107,8 +101,9 @@
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
-static struct ipt_target ipt_sysrq_reg = {
|
||||||
|
+static struct xt_target ipt_sysrq_reg = {
|
||||||
|
.name = "SYSRQ",
|
||||||
|
+ .family = AF_INET,
|
||||||
|
.target = target,
|
||||||
|
.checkentry = checkentry,
|
||||||
|
.me = THIS_MODULE,
|
||||||
|
@@ -120,7 +115,7 @@
|
||||||
|
|
||||||
|
static int __init init(void)
|
||||||
|
{
|
||||||
|
- if (ipt_register_target(&ipt_sysrq_reg))
|
||||||
|
+ if (xt_register_target(&ipt_sysrq_reg))
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
@@ -128,7 +123,7 @@
|
||||||
|
|
||||||
|
static void __exit fini(void)
|
||||||
|
{
|
||||||
|
- ipt_unregister_target(&ipt_sysrq_reg);
|
||||||
|
+ xt_unregister_target(&ipt_sysrq_reg);
|
||||||
|
}
|
||||||
|
|
||||||
|
module_init(init);
|
@ -0,0 +1,35 @@ |
|||||||
|
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- |
||||||
|
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||||
|
[COPY] |
||||||
|
[COPY] Filename: package/.../ipt_sysrq/ipt_sysrq.desc |
||||||
|
[COPY] Copyright (C) 2007 The OpenSDE Project |
||||||
|
[COPY] |
||||||
|
[COPY] More information can be found in the files COPYING and README. |
||||||
|
[COPY] |
||||||
|
[COPY] This program is free software; you can redistribute it and/or modify |
||||||
|
[COPY] it under the terms of the GNU General Public License as published by |
||||||
|
[COPY] the Free Software Foundation; version 2 of the License. A copy of the |
||||||
|
[COPY] GNU General Public License can be found in the file COPYING. |
||||||
|
[COPY] --- SDE-COPYRIGHT-NOTE-END --- |
||||||
|
|
||||||
|
[I] Remote SysRq for Linux implemented as an iptables target |
||||||
|
|
||||||
|
[T] IP Tables network magic SysRq is a Linux iptables target that allows |
||||||
|
[T] to do the same as the magic SysRq key on a keyboard does, but over the |
||||||
|
[T] network. It includes syncing disks, remounting them read-only, rebooting |
||||||
|
[T] the machine, etc. |
||||||
|
|
||||||
|
[U] http://marek.terminus.sk/prog/ipt_sysrq.shtml |
||||||
|
|
||||||
|
[A] Marek Zelem <marek@terminus.sk> |
||||||
|
[M] Nagy Karoly Gabriel <nagy.karoly@opensde.org> |
||||||
|
|
||||||
|
[F] NOPARALLEL |
||||||
|
[C] extra/base |
||||||
|
|
||||||
|
[L] GPL |
||||||
|
[S] Stable |
||||||
|
[V] 0.5 |
||||||
|
[P] X -----5---9 800.000 |
||||||
|
|
||||||
|
[D] 0 ipt-sysrq-0.5.tar.gz http://marek.terminus.sk/prog/ |
Loading…
Reference in new issue