linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Netfilter ipt_owner.o
@ 2002-10-02 15:32 Stephen Marz
  0 siblings, 0 replies; only message in thread
From: Stephen Marz @ 2002-10-02 15:32 UTC (permalink / raw)
  To: linux-kernel

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---


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-02 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 15:32 Netfilter ipt_owner.o Stephen Marz

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).