-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Add whitelist regex support #612
Commits on Jul 7, 2019
-
Add support for regex filters for whitelisting.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for fdff462 - Browse repository at this point
Copy the full SHA fdff462View commit details -
New table is called regex_whitelist (at least for now).
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for d79891d - Browse repository at this point
Copy the full SHA d79891dView commit details -
Temporarily disable regex debugging as it generated hundreds of thous…
…ands of messages during gravity import. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for b0838aa - Browse repository at this point
Copy the full SHA b0838aaView commit details
Commits on Jul 8, 2019
-
Rename table regex to regex_blacklist.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for c0eedd5 - Browse repository at this point
Copy the full SHA c0eedd5View commit details -
Be more specific about how many of which kind of regex filters we com…
…piled. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for fb46dcf - Browse repository at this point
Copy the full SHA fb46dcfView commit details
Commits on Jul 9, 2019
-
Added 8 new tests ensuring both whitelist exact and regex unblock reg…
…ex as well as gravity domains as expected. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for ea6cddb - Browse repository at this point
Copy the full SHA ea6cddbView commit details -
Adjust expected statistics as we query additional domains now.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 43a2c9f - Browse repository at this point
Copy the full SHA 43a2c9fView commit details -
Add test "Regex blacklist match + whitelist regex match is not blocked".
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 95be30d - Browse repository at this point
Copy the full SHA 95be30dView commit details -
Rename in_whitelist() to whitelisted() as this routine does not only …
…compare against the whitelist table but also evaluates possible whitelist regex filters. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for f996753 - Browse repository at this point
Copy the full SHA f996753View commit details -
Rename init_regex() to compile_regex() as this describes better what …
…this routine is doing. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 8294f75 - Browse repository at this point
Copy the full SHA 8294f75View commit details -
Declare free_regex() and log_regex() static as we do not need to make…
… them globally available. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for cb29305 - Browse repository at this point
Copy the full SHA cb29305View commit details -
Declare free_regex() static as we do not need to make it globally ava…
…ilable. Remove log_regex() as it can easily be inlined. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for e14322b - Browse repository at this point
Copy the full SHA e14322bView commit details
Commits on Jul 14, 2019
-
Merge branch 'development' into new/whitelist-regex-support
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for d362a5e - Browse repository at this point
Copy the full SHA d362a5eView commit details
Commits on Jul 16, 2019
-
Rename regex blacklist trigger to tr_regex_blacklist_update.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for be1b573 - Browse repository at this point
Copy the full SHA be1b573View commit details -
Improve difference between between REGEX and TABLE constants by renam…
…ing the latter to always end in _TABLE. Also remove code duplication by using a lookup array for the table names instead of using multiple select labels. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for caf18e1 - Browse repository at this point
Copy the full SHA caf18e1View commit details -
Do not check regex whitelist filters when querying the domain_audit t…
…able. Added documentation to in_whitelist() that explains the idea of the chosen implementation method. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for a3f25f9 - Browse repository at this point
Copy the full SHA a3f25f9View commit details -
Print failed regex line instead of its ID when reporting an error.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for eaf3d23 - Browse repository at this point
Copy the full SHA eaf3d23View commit details -
Add debugging output for gravity table if requested via DEBUG_DATABAS…
…E option. We might want to separate this into DEBUG_GRAVITY_DATABASE in the future. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for dd8af36 - Browse repository at this point
Copy the full SHA dd8af36View commit details -
Clarify that the shown number is the error code.
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for e3fc3a7 - Browse repository at this point
Copy the full SHA e3fc3a7View commit details -
regexec() can only return zero or NOMATCH according to its man page. …
…This allows us to remove the error handler as it could never be executed. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for fe23292 - Browse repository at this point
Copy the full SHA fe23292View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c6736a - Browse repository at this point
Copy the full SHA 8c6736aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 369a056 - Browse repository at this point
Copy the full SHA 369a056View commit details
Commits on Aug 7, 2019
-
Remove call to sqlite3_finalize(stmt) on error in gravityDB_getDomain…
…(). We always finalize the statement afterwards - whether or not we encountered an error before. Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for 2a731f0 - Browse repository at this point
Copy the full SHA 2a731f0View commit details
Commits on Aug 17, 2019
-
Merge branch 'development' into new/whitelist-regex-support
Signed-off-by: DL6ER <dl6er@dl6er.de>
Configuration menu - View commit details
-
Copy full SHA for f3e8d23 - Browse repository at this point
Copy the full SHA f3e8d23View commit details