From: Stephen Marz <smarz@host187.south.iit.edu>
To: linux-kernel@vger.kernel.org
Subject: Netfilter ipt_owner.o
Date: Wed, 02 Oct 2002 10:32:42 -0500 [thread overview]
Message-ID: <3D9B119A.6020800@host187.south.iit.edu> (raw)
I attached a patch below that will allow ipt_owner to be loaded as a
module, for those who actually use ipt_owner.
----START PATCH---
diff -c ../linux-2.5.40/kernel/Makefile ./kernel/Makefile
*** ../linux-2.5.40/kernel/Makefile Tue Oct 1 02:06:22 2002
--- ./kernel/Makefile Wed Oct 2 10:25:04 2002
***************
*** 3,9 ****
#
export-objs = signal.o sys.o kmod.o context.o ksyms.o pm.o exec_domain.o \
! printk.o platform.o suspend.o dma.o module.o cpufreq.o
obj-y = sched.o fork.o exec_domain.o panic.o printk.o \
module.o exit.o itimer.o time.o softirq.o resource.o \
--- 3,10 ----
#
export-objs = signal.o sys.o kmod.o context.o ksyms.o pm.o exec_domain.o \
! printk.o platform.o suspend.o dma.o module.o cpufreq.o pid.o \
! exit.o
obj-y = sched.o fork.o exec_domain.o panic.o printk.o \
module.o exit.o itimer.o time.o softirq.o resource.o \
diff -c ../linux-2.5.40/kernel/exit.c ./kernel/exit.c
*** ../linux-2.5.40/kernel/exit.c Tue Oct 1 02:06:28 2002
--- ./kernel/exit.c Wed Oct 2 10:25:22 2002
***************
*** 706,712 ****
return pid_task(tmp, PIDTYPE_TGID);
}
!
/*
* this kills every thread in the thread group. Note that any externally
* wait4()-ing process will get the correct exit code - even if this
--- 706,712 ----
return pid_task(tmp, PIDTYPE_TGID);
}
! EXPORT_SYMBOL(next_thread);
/*
* this kills every thread in the thread group. Note that any externally
* wait4()-ing process will get the correct exit code - even if this
diff -c ../linux-2.5.40/kernel/pid.c ./kernel/pid.c
*** ../linux-2.5.40/kernel/pid.c Tue Oct 1 02:07:03 2002
--- ./kernel/pid.c Wed Oct 2 10:17:29 2002
***************
*** 23,28 ****
--- 23,29 ----
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/bootmem.h>
+ #include <linux/module.h>
#define PIDHASH_SIZE 4096
#define pid_hashfn(nr) ((nr >> 8) ^ nr) & (PIDHASH_SIZE - 1)
***************
*** 228,234 ****
return NULL;
return pid_task(pid->task_list.next, PIDTYPE_PID);
}
!
/*
* This function switches the PIDs if a non-leader thread calls
* sys_execve() - this must be done without releasing the PID.
--- 229,235 ----
return NULL;
return pid_task(pid->task_list.next, PIDTYPE_PID);
}
! EXPORT_SYMBOL(find_task_by_pid);
/*
* This function switches the PIDs if a non-leader thread calls
* sys_execve() - this must be done without releasing the PID.
---END PATCH---
reply other threads:[~2002-10-02 15:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3D9B119A.6020800@host187.south.iit.edu \
--to=smarz@host187.south.iit.edu \
--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
all inboxes | Powered by JetHome®