mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-05-20 03:33:53 +00:00
trace: ureadahead support
This commit is contained in:
@@ -56,6 +56,8 @@
|
||||
#include <linux/fsnotify.h>
|
||||
#include <linux/fs_struct.h>
|
||||
|
||||
#include <trace/events/fs.h>
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/mmu_context.h>
|
||||
#include <asm/tlb.h>
|
||||
@@ -130,6 +132,10 @@ SYSCALL_DEFINE1(uselib, const char __user *, library)
|
||||
|
||||
fsnotify_open(file->f_path.dentry);
|
||||
|
||||
tmp = getname(library);
|
||||
trace_uselib(tmp);
|
||||
putname(library);
|
||||
|
||||
error = -ENOEXEC;
|
||||
if(file->f_op) {
|
||||
struct linux_binfmt * fmt;
|
||||
@@ -665,6 +671,8 @@ struct file *open_exec(const char *name)
|
||||
|
||||
fsnotify_open(file->f_path.dentry);
|
||||
|
||||
trace_open_exec(name);
|
||||
|
||||
err = deny_write_access(file);
|
||||
if (err)
|
||||
goto exit;
|
||||
|
||||
Reference in New Issue
Block a user