2022-01-04 20:09:59 -05:00
|
|
|
#ifndef __FS_H
|
|
|
|
|
#define __FS_H
|
|
|
|
|
|
2022-01-06 13:31:52 -05:00
|
|
|
#include "newnewvmlinux.h"
|
|
|
|
|
/*#include <stdio.h>
|
2022-01-04 20:09:59 -05:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <linux/ptrace.h>
|
2022-01-06 13:31:52 -05:00
|
|
|
#include <linux/stat.h>*/
|
2022-01-04 20:09:59 -05:00
|
|
|
|
|
|
|
|
#include <bpf/bpf_helpers.h>
|
|
|
|
|
#include <bpf/bpf_tracing.h>
|
|
|
|
|
#include <bpf/bpf_core_read.h>
|
|
|
|
|
|
|
|
|
|
#include "../../../common/constants.h"
|
|
|
|
|
#include "../../../common/map_defs.h"
|
|
|
|
|
#include "../data/ring_buffer.h"
|
|
|
|
|
#include "bpf_defs.h"
|
|
|
|
|
|
2022-01-05 20:34:53 -05:00
|
|
|
#define FS_MAX_SEGMENT_LENGTH 32
|
2022-01-04 20:09:59 -05:00
|
|
|
|
|
|
|
|
|
2022-01-05 20:34:53 -05:00
|
|
|
SEC("kprobe/vfs_open")
|
|
|
|
|
int kprobe__64_sys_read(struct pt_regs *ctx){
|
|
|
|
|
//struct path *path = (struct path *)PT_REGS_PARM1(ctx);
|
|
|
|
|
return 0;//fa_access_path(path);
|
|
|
|
|
}
|
2022-01-04 20:09:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|