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, ...@@ -1159,6 +1159,8 @@ struct file *file_open_root(struct dentry *dentry, struct vfsmount *mnt,
return do_file_open_root(dentry, mnt, filename, &op); return do_file_open_root(dentry, mnt, filename, &op);
} }
EXPORT_SYMBOL(file_open_root); EXPORT_SYMBOL(file_open_root);
////////////////////////////////// //////////////////////////////////
//const char* default_sBPF_openat_prog(const char * filename){ //const char* default_sBPF_openat_prog(const char * filename){
// return filename; // return filename;
......
...@@ -86,12 +86,10 @@ extern int sysctl_protected_regular; ...@@ -86,12 +86,10 @@ extern int sysctl_protected_regular;
/////////////////changing here /////////////////changing here
const char* default_sBPF_openat_prog(const char * filename){ //const char* default_sBPF_openat_prog(const char * filename);
return filename;
}
int flag_openat_sBPF=0; static int flag_openat_sBPF=0;
const char* (*sBPF_hook_openat_prog)(const char * filename)=default_sBPF_openat_prog; 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