diff options
| author | Richard Weinberger <richard@nod.at> | 2015-04-11 15:45:22 -0400 |
|---|---|---|
| committer | Richard Weinberger <richard@nod.at> | 2015-04-12 15:03:31 -0400 |
| commit | 9058f3b326dbe8cd2ebea7f3cfe367b0d101039b (patch) | |
| tree | 3d41d3cde25579460f291b4bd4f9d3060b1b8e6e /kernel | |
| parent | fa41b1c7dfa0453931afb32c9988af67a2ee28ae (diff) | |
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')
| -rw-r--r-- | kernel/exec_domain.c | 37 |
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 @@ | |||
| 20 | #include <linux/types.h> | 20 | #include <linux/types.h> |
| 21 | #include <linux/fs_struct.h> | 21 | #include <linux/fs_struct.h> |
| 22 | 22 | ||
| 23 | static void default_handler(int, struct pt_regs *); | ||
| 24 | static unsigned long ident_map[32] = { | ||
| 25 | 0, 1, 2, 3, 4, 5, 6, 7, | ||
| 26 | 8, 9, 10, 11, 12, 13, 14, 15, | ||
| 27 | 16, 17, 18, 19, 20, 21, 22, 23, | ||
| 28 | 24, 25, 26, 27, 28, 29, 30, 31 | ||
| 29 | }; | ||
| 30 | |||
| 31 | struct exec_domain default_exec_domain = { | ||
| 32 | .name = "Linux", /* name */ | ||
| 33 | .handler = default_handler, /* lcall7 causes a seg fault. */ | ||
| 34 | .pers_low = 0, /* PER_LINUX personality. */ | ||
| 35 | .pers_high = 0, /* PER_LINUX personality. */ | ||
| 36 | .signal_map = ident_map, /* Identity map signals. */ | ||
| 37 | .signal_invmap = ident_map, /* - both ways. */ | ||
| 38 | }; | ||
| 39 | |||
| 40 | |||
| 41 | static void | ||
| 42 | default_handler(int segment, struct pt_regs *regp) | ||
| 43 | { | ||
| 44 | set_personality(0); | ||
| 45 | |||
| 46 | if (current_thread_info()->exec_domain->handler != default_handler) | ||
| 47 | current_thread_info()->exec_domain->handler(segment, regp); | ||
| 48 | else | ||
| 49 | send_sig(SIGSEGV, current, 1); | ||
| 50 | } | ||
| 51 | |||
| 52 | int __set_personality(unsigned int personality) | ||
| 53 | { | ||
| 54 | current->personality = personality; | ||
| 55 | |||
| 56 | return 0; | ||
| 57 | } | ||
| 58 | EXPORT_SYMBOL(__set_personality); | ||
| 59 | |||
| 60 | #ifdef CONFIG_PROC_FS | 23 | #ifdef CONFIG_PROC_FS |
| 61 | static int execdomains_proc_show(struct seq_file *m, void *v) | 24 | static int execdomains_proc_show(struct seq_file *m, void *v) |
| 62 | { | 25 | { |
