This pull request to the deadman file includes changes to improve the readability of regular expressions, add a new configuration validation function, and ensure the configuration is validated before running the main program logic.
Code readability improvements:
deadman: Updated regular expressions to use raw string notation for better readability. ([deadmanL735-R738](diffhunk://#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413L735-R738))
New functionality:
deadman: Integrated the new parse_and_validate_config function to validate the configuration file before running the main program logic. ([deadmanR868-R870](diffhunk://#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413R868-R870))
deadman: Added a new parse_and_validate_config function to check for hping3 and root privileges based on the configuration file content. ([deadmanR804-R824](diffhunk://#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413R804-R824))
This pull request to the
deadman
file includes changes to improve the readability of regular expressions, add a new configuration validation function, and ensure the configuration is validated before running the main program logic.Code readability improvements:
deadman
: Updated regular expressions to use raw string notation for better readability. ([deadmanL735-R738](diffhunk://#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413L735-R738)
)New functionality:
deadman
: Integrated the newparse_and_validate_config
function to validate the configuration file before running the main program logic. ([deadmanR868-R870](diffhunk://#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413R868-R870)
)deadman
: Added a newparse_and_validate_config
function to check for hping3 and root privileges based on the configuration file content. ([deadmanR804-R824](diffhunk://#diff-4a173307c12a52d82e6ad896a4dedcfb3b98c2724f557579c73a309d49d04413R804-R824)
)