Netfilter ipt_owner.o

From: Stephen Marz (smarz@host187.south.iit.edu)
Date: Wed Oct 02 2002 - 10:32:42 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:34 EST