forked frommicrosoft/ModSecurity
- Notifications
You must be signed in to change notification settings - Fork0
Commit96a1f55
Read fuzzy hash databases on init
Instead of reading the fuzzy db on every invocation, read and storethe db contents during initialization and store the contents in memory.The only significant behavior change here is that a change in db contentsnow (obviously) requires a daemon restart, as no API is provided toflush the list of ssdeep chunks.1 parentfd49ca7 commit96a1f55
2 files changed
+40
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
409 | 409 | | |
410 | 410 | | |
411 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
412 | 417 | | |
413 | 418 | | |
| 419 | + | |
414 | 420 | | |
415 | 421 | | |
416 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1279 | 1279 | | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | | - | |
| 1282 | + | |
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
| |||
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
1319 | | - | |
| 1319 | + | |
1320 | 1320 | | |
1321 | 1321 | | |
1322 | 1322 | | |
| |||
3828 | 3828 | | |
3829 | 3829 | | |
3830 | 3830 | | |
| 3831 | + | |
3831 | 3832 | | |
3832 | 3833 | | |
3833 | 3834 | | |
| 3835 | + | |
3834 | 3836 | | |
3835 | 3837 | | |
3836 | 3838 | | |
3837 | 3839 | | |
3838 | 3840 | | |
3839 | 3841 | | |
3840 | 3842 | | |
| 3843 | + | |
| 3844 | + | |
3841 | 3845 | | |
3842 | 3846 | | |
3843 | 3847 | | |
| |||
3885 | 3889 | | |
3886 | 3890 | | |
3887 | 3891 | | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
| 3898 | + | |
| 3899 | + | |
| 3900 | + | |
| 3901 | + | |
| 3902 | + | |
| 3903 | + | |
| 3904 | + | |
| 3905 | + | |
| 3906 | + | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
3888 | 3914 | | |
3889 | 3915 | | |
3890 | 3916 | | |
| |||
3911 | 3937 | | |
3912 | 3938 | | |
3913 | 3939 | | |
3914 | | - | |
3915 | | - | |
| 3940 | + | |
3916 | 3941 | | |
3917 | 3942 | | |
3918 | 3943 | | |
| |||
3931 | 3956 | | |
3932 | 3957 | | |
3933 | 3958 | | |
3934 | | - | |
3935 | | - | |
3936 | | - | |
3937 | | - | |
3938 | | - | |
3939 | | - | |
3940 | | - | |
3941 | | - | |
3942 | | - | |
3943 | | - | |
| 3959 | + | |
3944 | 3960 | | |
3945 | | - | |
| 3961 | + | |
| 3962 | + | |
3946 | 3963 | | |
3947 | 3964 | | |
3948 | 3965 | | |
3949 | | - | |
| 3966 | + | |
3950 | 3967 | | |
3951 | | - | |
3952 | 3968 | | |
3953 | 3969 | | |
| 3970 | + | |
3954 | 3971 | | |
3955 | | - | |
3956 | | - | |
3957 | 3972 | | |
3958 | 3973 | | |
3959 | 3974 | | |
| |||
0 commit comments
Comments
(0)