Skip to content

Commit

Permalink
fix: path rename signature
Browse files Browse the repository at this point in the history
  • Loading branch information
banditopazzo committed Oct 29, 2024
1 parent e0645e6 commit 583d2f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/modules/file-system-monitor/probes.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,12 @@ static __always_inline void on_path_rmdir(void *ctx, struct path *dir,

PULSAR_LSM_HOOK(path_rename, struct path *, old_dir, struct dentry *,
old_dentry, struct path *, new_dir, struct dentry *,
new_dentry);
new_dentry, unsigned int, flags);
static __always_inline void on_path_rename(void *ctx, struct path *old_dir,
struct dentry *old_dentry,
struct path *new_dir,
struct dentry *new_dentry) {
struct dentry *new_dentry,
unsigned int flags) {
pid_t tgid = tracker_interesting_tgid(&GLOBAL_INTEREST_MAP);
if (tgid < 0)
return;
Expand Down

0 comments on commit 583d2f4

Please sign in to comment.