diff --git a/aide-verbose.patch b/aide-verbose.patch new file mode 100644 index 0000000000000000000000000000000000000000..53e5ca4085395861deb6a21dcca1a9b82a4eaf7c --- /dev/null +++ b/aide-verbose.patch @@ -0,0 +1,28 @@ +diff -up ./src/conf_eval.c.fix ./src/conf_eval.c +--- ./src/conf_eval.c.fix 2023-12-22 12:12:22.961141634 +0100 ++++ ./src/conf_eval.c 2023-12-22 14:09:21.217786675 +0100 +@@ -298,8 +299,20 @@ static void eval_config_statement(config + LOG_CONFIG_FORMAT_LINE(LOG_LEVEL_CONFIG, "set 'config_version' option to '%s'", str) + break; + case VERBOSE_OPTION: +- log_msg(LOG_LEVEL_ERROR, "%s:%d: 'verbose' option is no longer supported, use 'log_level' and 'report_level' options instead (see man aide.conf for details) (line: '%s')", conf_filename, conf_linenumber, conf_linebuf); +- exit(INVALID_CONFIGURELINE_ERROR); ++ log_msg(LOG_LEVEL_CONFIG, "%s:%d: 'verbose' option is deprecated, use 'log_level' and 'report_level' options instead (see man aide.conf for details) (line: '%s')", conf_filename, conf_linenumber, conf_linebuf); ++ char *str; ++ long num; ++ str = eval_string_expression(statement.e, linenumber, filename, linebuf); ++ num = strtol(str, NULL, 10); ++ ++ if (num < 0 || num > 255) { ++ LOG_CONFIG_FORMAT_LINE(LOG_LEVEL_ERROR, "invalid verbose level: '%s'", str); ++ exit(INVALID_CONFIGURELINE_ERROR); ++ } ++ ++ if (num >= 10) { ++ set_log_level(LOG_LEVEL_DEBUG); ++ } ++ ++ free(str); + break; + case LIMIT_CMDLINE_OPTION: + /* command-line options are ignored here */ diff --git a/aide.spec b/aide.spec index aff774d7d1a6105b5bca13656f5d038f47b4d74c..318be0b2016e74663424ec6469195865d0a31056 100644 --- a/aide.spec +++ b/aide.spec @@ -2,7 +2,7 @@ Name: aide Version: 0.18.8 -Release: 1 +Release: 2 Summary: Advanced Intrusion Detection Environment License: GPLv2+ URL: https://sourceforge.net/projects/aide @@ -22,6 +22,7 @@ Requires: libgcrypt-sm3 Patch0: Add-sm3-algorithm-for-aide.patch Patch1: backport-Fix-parsing-of-lowercase-group-names.patch +Patch2: aide-verbose.patch %description AIDE (Advanced Intrusion Detection Environment, [eyd]) is a file and directory integrity checker. @@ -74,6 +75,12 @@ make check %{_mandir}/*/* %changelog +* Wed Dec 25 2024 pengjian - 0.18.8-2 +- Type: enhancement +- ID: NA +- SUG: NA +- DESC: add aide-verbose.patch + * Tue Oct 15 2024 yixiangzhike - 0.18.8-1 - Type: enhancement - ID: NA