aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exec.c
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-09-20 13:33:17 -0400
committerChristopher Kenna <cjk@cs.unc.edu>2012-09-20 13:33:17 -0400
commit5e0a4919ccb230ab449826ef91bdf38a4ed283e5 (patch)
tree3790db1aa69ed50b08f34c21c1796785df6a0304 /fs/exec.c
parentc00613f1fad38acec00ef2c009ae4e73110084ac (diff)
parent5dd038629bdedef22d5ecad2d5e75ad81f4dc694 (diff)
Merge remote-tracking branch 'oneiric-ubuntu/pandaboard' into pandaboard-litmus
Remote branch is from Ubuntu Oneiric (tag Ubuntu-3.0.0-1215.27) with minor patch to the TWL-RTC code. Trying to pull this into LITMUS^RT staging (as of 9/20/2012) to get LITMUS^RT running on the PandaBoard. Conflicts: Makefile fs/exec.c include/linux/fs.h kernel/fork.c
Diffstat (limited to 'fs/exec.c')
-rw-r--r--fs/exec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/exec.c b/fs/exec.c
index 99845622986..4e20f0dea7e 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -58,6 +58,8 @@
58 58
59#include <litmus/litmus.h> 59#include <litmus/litmus.h>
60 60
61#include <trace/events/fs.h>
62
61#include <asm/uaccess.h> 63#include <asm/uaccess.h>
62#include <asm/mmu_context.h> 64#include <asm/mmu_context.h>
63#include <asm/tlb.h> 65#include <asm/tlb.h>
@@ -791,6 +793,8 @@ struct file *open_exec(const char *name)
791 793
792 fsnotify_open(file); 794 fsnotify_open(file);
793 795
796 trace_open_exec(name);
797
794 err = deny_write_access(file); 798 err = deny_write_access(file);
795 if (err) 799 if (err)
796 goto exit; 800 goto exit;
@@ -1413,6 +1417,8 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
1413 printable(bprm->buf[2]) && 1417 printable(bprm->buf[2]) &&
1414 printable(bprm->buf[3])) 1418 printable(bprm->buf[3]))
1415 break; /* -ENOEXEC */ 1419 break; /* -ENOEXEC */
1420 if (try)
1421 break; /* -ENOEXEC */
1416 request_module("binfmt-%04x", *(unsigned short *)(&bprm->buf[2])); 1422 request_module("binfmt-%04x", *(unsigned short *)(&bprm->buf[2]));
1417#endif 1423#endif
1418 } 1424 }