Commit 3fc9c6f4 authored by Hongtao Lyu's avatar Hongtao Lyu
Browse files

first success modify to fs

parent b2fccabc
......@@ -1159,6 +1159,8 @@ struct file *file_open_root(struct dentry *dentry, struct vfsmount *mnt,
return do_file_open_root(dentry, mnt, filename, &op);
}
EXPORT_SYMBOL(file_open_root);
//////////////////////////////////
//const char* default_sBPF_openat_prog(const char * filename){
// return filename;
......
......@@ -86,12 +86,10 @@ extern int sysctl_protected_regular;
/////////////////changing here
const char* default_sBPF_openat_prog(const char * filename){
return filename;
}
//const char* default_sBPF_openat_prog(const char * filename);
int flag_openat_sBPF=0;
const char* (*sBPF_hook_openat_prog)(const char * filename)=default_sBPF_openat_prog;
static int flag_openat_sBPF=0;
static const char* (*sBPF_hook_openat_prog)(const char * filename)=NULL;
/////////////////////////////////
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment