Messages in this thread Patch in this message | | | From | David Howells <> | Subject | [PATCH] put sys_call_table into R/O data | Date | Wed, 30 Apr 2003 14:42:25 +0100 |
| |
Hi Linus,
Here's a patch that puts the system call table into the R/O data section of the i386.
David
diff -uNr -x'*.o' -x'.*' -xTAGS linux-2.5.67/arch/i386/kernel/entry.S linux-2.5.67-afs/arch/i386/kernel/entry.S --- linux-2.5.67/arch/i386/kernel/entry.S 2003-03-28 11:37:52.000000000 +0000 +++ linux-2.5.67-afs/arch/i386/kernel/entry.S 2003-04-30 14:38:32.000000000 +0100 @@ -582,8 +582,8 @@ pushl $do_spurious_interrupt_bug jmp error_code -.data -ENTRY(sys_call_table) +.section .rodata +sys_call_table: .long sys_restart_syscall /* 0 - old "setup()" system call, used for restarting */ .long sys_exit .long sys_fork @@ -852,6 +852,6 @@ .long sys_clock_gettime /* 265 */ .long sys_clock_getres .long sys_clock_nanosleep - - + + nr_syscalls=(.-sys_call_table)/4 - 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/
| |