Skip to content

User-specified file monitoring with continuous file addition and tracepoints added. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Immortus1
Copy link

@Immortus1 Immortus1 commented Mar 29, 2025

Users can continuously add files to be monitored by updating allowed_files.json. Only the files listed in this JSON file will be actively monitored.

Tracepoints Implemented:
Five syscall tracepoints have been attached for monitoring:

  • sys_enter_write
  • sys_enter_renameat2
  • sys_enter_fchmodat
  • sys_enter_fchownat
  • sys_exit_close

File Monitoring Features:
The input format for allowed files has been changed to JSON for better structure and readability.

  • A function has been added to resolve full file paths based on the process PID.

Additional helper functions have been created to:

  1. Append new files to the allowed list.
    32 Remove files from the list when they are deleted or renamed.

These enhancements improve dynamic file tracking and ensure accurate monitoring of specified files.

@Immortus1 Immortus1 changed the title User-specified file monitoring with continuous file addition User-specified file monitoring with continuous file addition and tracepoints added. Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant