-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(events): add chmod_common event
- Loading branch information
1 parent
7ed9e12
commit 280d9e9
Showing
8 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# chmod_common | ||
|
||
## Intro | ||
|
||
chmod_common - An event capturing changes to access permissions of files and directories. | ||
|
||
## Description | ||
|
||
This event captures any changes to the current working directory (typically by using the `chmod` and similar syscalls). | ||
|
||
## Arguments | ||
|
||
* `pathname`:`const char*`[K] - path of the file or directory | ||
* `mode`:`mode_t`[K] - the mode to apply to the file or directory | ||
|
||
## Hooks | ||
|
||
### chmod_common | ||
|
||
#### Type | ||
|
||
kprobe | ||
|
||
#### Purpose | ||
|
||
Catch access permissions changes of files and directories. | ||
|
||
## Example Use Case | ||
|
||
## Issues | ||
|
||
## Related Events | ||
|
||
`chmod`, `fchmod`, `fchmodat` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,6 +161,7 @@ const ( | |
Dup2Ret | ||
Dup3 | ||
Dup3Ret | ||
ChmodCommon | ||
) | ||
|
||
// Test probe handles | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters