File tree 2 files changed +6
-6
lines changed
crates/modules/file-system-monitor
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -17,23 +17,23 @@ in its first bytes.
17
17
18
18
| Config| Type| Description|
19
19
| ------| ----| -----------|
20
- | ` elf_check_enabled ` | boolean| Enable ELF check|
20
+ | ` elf_check ` | boolean| Enable ELF check|
21
21
| ` elf_check_whitelist ` | path list| Paths ignored by ELF check|
22
22
23
23
Default configuration:
24
24
25
25
``` ini
26
26
[file-system-monitor]
27
27
enabled =true
28
- elf_check_enabled =true
28
+ elf_check =true
29
29
elf_check_whitelist =/proc,/sys,/dev
30
30
```
31
31
32
32
You disable this module or the ELF check with:
33
33
34
34
``` sh
35
35
pulsar config --set file-system-monitor.enabled=false
36
- pulsar config --set file-system-monitor.elf_check_enabled =false
36
+ pulsar config --set file-system-monitor.elf_check =false
37
37
```
38
38
39
39
## Testing
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ pub mod pulsar {
114
114
_state : & mut Self :: State ,
115
115
ctx : & ModuleContext ,
116
116
) -> Result < ( ) , ModuleError > {
117
- if config. elf_check_enabled {
117
+ if config. elf_check {
118
118
check_elf ( ctx, & config. elf_check_whitelist , event) . await ;
119
119
}
120
120
Ok ( ( ) )
@@ -171,7 +171,7 @@ pub mod pulsar {
171
171
172
172
#[ derive( Clone , Debug , Default ) ]
173
173
pub struct Config {
174
- elf_check_enabled : bool ,
174
+ elf_check : bool ,
175
175
elf_check_whitelist : Vec < String > ,
176
176
}
177
177
@@ -180,7 +180,7 @@ pub mod pulsar {
180
180
181
181
fn try_from ( config : & ModuleConfig ) -> Result < Self , Self :: Error > {
182
182
Ok ( Config {
183
- elf_check_enabled : config. with_default ( "elf_check_enabled " , true ) ?,
183
+ elf_check : config. with_default ( "elf_check " , true ) ?,
184
184
elf_check_whitelist : config. get_list_with_default (
185
185
"elf_check_whitelist" ,
186
186
vec ! [
You can’t perform that action at this time.
0 commit comments