summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-04-04 17:22:48 -0600
committerroot <root@traveler.zdomain.com>2007-04-04 17:22:48 -0600
commit5ad8a10f75d4d232c3151dd43c70a00381e2fb81 (patch)
treedb7f10e975c4c0db09dfad8ce54a3e6d4022fe7a /fs
parent1e191d5402beb371e7901d62acf0eb031ec968ac (diff)
Adds CodeTEST support to the Linux kernel.
http://www.bitshrine.org/gpp/linux-2.6.19.2-mx-codetest.patch
Diffstat (limited to 'fs')
-rw-r--r--fs/exec.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 8c01dcbec3e4..30fe75cd64e9 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -57,6 +57,13 @@
#include <linux/kmod.h>
#endif
+#ifdef CONFIG_CODETEST
+/*
+ * CodeTEST mods
+ */
+extern void ct_thread_create(struct task_struct *p);
+#endif /* CONFIG_CODETEST */
+
int core_uses_pid;
char core_pattern[128] = "core";
int suid_dumpable = 0;
@@ -895,6 +902,10 @@ int flush_old_exec(struct linux_binprm * bprm)
flush_signal_handlers(current, 0);
flush_old_files(current->files);
+#ifdef CONFIG_CODETEST
+ ct_thread_create(current);
+#endif /* CONFIG_CODETEST */
+
return 0;
mmap_failed: