Skip to content

ROX-30256: track files and directories being renamed#308

Open
Molter73 wants to merge 1 commit intomainfrom
mauro/ROX-30256/track-rename
Open

ROX-30256: track files and directories being renamed#308
Molter73 wants to merge 1 commit intomainfrom
mauro/ROX-30256/track-rename

Conversation

@Molter73
Copy link
Contributor

@Molter73 Molter73 commented Feb 18, 2026

Description

Implement the path_rename LSM hook in order to capture and generate rename events. The implementation is fairly basic and does nothing with regards to inode tracking other than checking if either of the inodes involved are tracked.

With this change we get better visibility into commands that use renaming as a means for editing a file, like vi and sed.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

Tested manually and added tests.

@Molter73 Molter73 force-pushed the mauro/ROX-30256/track-rename branch 2 times, most recently from 5dad0ba to 849bcf1 Compare February 19, 2026 10:44
Implement the path_rename LSM hook in order to capture and generate
rename events. The implementation is fairly basic and does nothing with
regards to inode tracking other than checking if either of the inodes
involved are tracked.

With this change we get better visibility into commands that use
renaming as a means for editing a file, like vi and sed.
@Molter73 Molter73 force-pushed the mauro/ROX-30256/track-rename branch from 849bcf1 to f2476ee Compare February 19, 2026 16:13
@Molter73 Molter73 marked this pull request as ready for review February 19, 2026 16:35
@Molter73 Molter73 requested a review from a team as a code owner February 19, 2026 16:35
@Molter73 Molter73 enabled auto-merge (squash) February 19, 2026 17:09
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

Comments