summaryrefslogtreecommitdiffstats
path: root/kernel/exec_domain.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2015-04-11 21:45:22 +0200
committerRichard Weinberger <richard@nod.at>2015-04-12 21:03:31 +0200
commit9058f3b326dbe8cd2ebea7f3cfe367b0d101039b (patch)
tree3d41d3cde25579460f291b4bd4f9d3060b1b8e6e /kernel/exec_domain.c
parentfa41b1c7dfa0453931afb32c9988af67a2ee28ae (diff)
downloadlinux-9058f3b326dbe8cd2ebea7f3cfe367b0d101039b.tar.bz2
Remove rest of exec domains.
It is gone from all archs, now we can remove the final bits. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'kernel/exec_domain.c')
-rw-r--r--kernel/exec_domain.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/kernel/exec_domain.c b/kernel/exec_domain.c
index b2fb57d6b9b2..6873bb3e6b7e 100644
--- a/kernel/exec_domain.c
+++ b/kernel/exec_domain.c
@@ -20,43 +20,6 @@
#include <linux/types.h>
#include <linux/fs_struct.h>
-static void default_handler(int, struct pt_regs *);
-static unsigned long ident_map[32] = {
- 0, 1, 2, 3, 4, 5, 6, 7,
- 8, 9, 10, 11, 12, 13, 14, 15,
- 16, 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30, 31
-};
-
-struct exec_domain default_exec_domain = {
- .name = "Linux", /* name */
- .handler = default_handler, /* lcall7 causes a seg fault. */
- .pers_low = 0, /* PER_LINUX personality. */
- .pers_high = 0, /* PER_LINUX personality. */
- .signal_map = ident_map, /* Identity map signals. */
- .signal_invmap = ident_map, /* - both ways. */
-};
-
-
-static void
-default_handler(int segment, struct pt_regs *regp)
-{
- set_personality(0);
-
- if (current_thread_info()->exec_domain->handler != default_handler)
- current_thread_info()->exec_domain->handler(segment, regp);
- else
- send_sig(SIGSEGV, current, 1);
-}
-
-int __set_personality(unsigned int personality)
-{
- current->personality = personality;
-
- return 0;
-}
-EXPORT_SYMBOL(__set_personality);
-
#ifdef CONFIG_PROC_FS
static int execdomains_proc_show(struct seq_file *m, void *v)
{