Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2215809/?format=api
{ "id": 2215809, "url": "http://patchwork.ozlabs.org/api/patches/2215809/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260325110900.2065942-2-eashurov@redhat.com/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260325110900.2065942-2-eashurov@redhat.com>", "list_archive_url": null, "date": "2026-03-25T11:09:00", "name": "[v3,2/2] qga: add --audit option for command logging control", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "56ffb48cafa7cf9c0606c3f486868b9ae95e9be2", "submitter": { "id": 91084, "url": "http://patchwork.ozlabs.org/api/people/91084/?format=api", "name": "Elizabeth Ashurov", "email": "eashurov@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260325110900.2065942-2-eashurov@redhat.com/mbox/", "series": [ { "id": 497421, "url": "http://patchwork.ozlabs.org/api/series/497421/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=497421", "date": "2026-03-25T11:08:59", "name": "[v3,1/2] qga: replace slog() with standard GLib logging", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/497421/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2215809/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2215809/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=XdM45ymD;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgkhY0L1yz1xy3\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 22:10:05 +1100 (AEDT)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w5M7N-00019r-Gs; Wed, 25 Mar 2026 07:09:45 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <eashurov@redhat.com>)\n id 1w5M7L-00019Q-QB\n for qemu-devel@nongnu.org; Wed, 25 Mar 2026 07:09:43 -0400", "from us-smtp-delivery-124.mimecast.com ([170.10.133.124])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <eashurov@redhat.com>)\n id 1w5M7J-0002jZ-Ox\n for qemu-devel@nongnu.org; Wed, 25 Mar 2026 07:09:43 -0400", "from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-496-1dQDSCGTPmSeQIks_k6AJQ-1; Wed,\n 25 Mar 2026 07:09:37 -0400", "from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id B273519560AA\n for <qemu-devel@nongnu.org>; Wed, 25 Mar 2026 11:09:36 +0000 (UTC)", "from eashurov-thinkpadx1carbongen12.raanaii.csb (unknown\n [10.47.238.180])\n by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id E3CE719560B1; Wed, 25 Mar 2026 11:09:34 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1774436981;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=LeQ0+ZzVAvwN2bLlHeeLUOO+d+FsdP4uIA1wF0prHw0=;\n b=XdM45ymDZ6Vrfr+sN0ozTSidbgz6LfdQ9Wt/mdr9w4Dutkc3PBOSzdBbO0gQq49/B3d7bR\n zGgoeZ8lRQbwMzoGacd8uxIaz41JbrYA/Bhq0Ykeho+w2xQuk7bwPhsWde0e867L92rhM8\n 5+qwgd8uh1IR1lfpQGXrbCm4Dn7Y9b8=", "X-MC-Unique": "1dQDSCGTPmSeQIks_k6AJQ-1", "X-Mimecast-MFC-AGG-ID": "1dQDSCGTPmSeQIks_k6AJQ_1774436976", "From": "Elizabeth Ashurov <eashurov@redhat.com>", "To": "qemu-devel@nongnu.org", "Cc": "berrange@redhat.com, kkostiuk@redhat.com, yvugenfi@redhat.com,\n Elizabeth Ashurov <eashurov@redhat.com>", "Subject": "[PATCH v3 2/2] qga: add --audit option for command logging control", "Date": "Wed, 25 Mar 2026 13:09:00 +0200", "Message-ID": "<20260325110900.2065942-2-eashurov@redhat.com>", "In-Reply-To": "<20260325110900.2065942-1-eashurov@redhat.com>", "References": "<20260325110900.2065942-1-eashurov@redhat.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.12", "Received-SPF": "pass client-ip=170.10.133.124;\n envelope-from=eashurov@redhat.com;\n helo=us-smtp-delivery-124.mimecast.com", "X-Spam_score_int": "12", "X-Spam_score": "1.2", "X-Spam_bar": "+", "X-Spam_report": "(1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001,\n DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,\n RCVD_IN_SBL_CSS=3.335, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,\n RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001,\n SPF_PASS=-0.001 autolearn=no autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "Add -A/--audit=LIST option to control which guest agent commands\nare logged at info level (visible with --verbose) and which at\ndebug level (visible only with --debug).\n\nPatterns are comma-separated and checked in order; the first match\nwins. Patterns starting with '!' log the command at debug level\ninstead of info.\nFor example: --audit=!guest-ping,* logs all commands\nat info level except guest-ping.\n\nMove command logging from individual handlers into process_event()\nso all commands are logged in one place. Keep g_debug() calls in\nhandlers for useful details like file paths, handles, and PIDs.\n\nThe default pattern is '*', so all commands are logged at info\nlevel unless configured otherwise.\n\nSigned-off-by: Elizabeth Ashurov <eashurov@redhat.com>\n---\n qga/commands-linux.c | 2 --\n qga/commands-posix.c | 11 +++---\n qga/commands-win32.c | 14 +++-----\n qga/commands.c | 5 ++-\n qga/main.c | 82 ++++++++++++++++++++++++++++++++++++++++++--\n 5 files changed, 90 insertions(+), 24 deletions(-)", "diff": "diff --git a/qga/commands-linux.c b/qga/commands-linux.c\nindex a722de2e6a..8df83963fa 100644\n--- a/qga/commands-linux.c\n+++ b/qga/commands-linux.c\n@@ -1158,8 +1158,6 @@ qmp_guest_fstrim(bool has_minimum, int64_t minimum, Error **errp)\n int fd;\n struct fstrim_range r;\n \n- g_info(\"guest-fstrim called\");\n-\n QTAILQ_INIT(&mounts);\n if (!build_fs_mount_list(&mounts, errp)) {\n return NULL;\ndiff --git a/qga/commands-posix.c b/qga/commands-posix.c\nindex 96939a6f36..6a3e6c78e3 100644\n--- a/qga/commands-posix.c\n+++ b/qga/commands-posix.c\n@@ -240,7 +240,7 @@ void qmp_guest_shutdown(const char *mode, Error **errp)\n const char *reboot_flag = \"-r\";\n #endif\n \n- g_info(\"guest-shutdown called, mode: %s\", mode);\n+ g_debug(\"guest-shutdown mode: %s\", mode);\n if (!mode || strcmp(mode, \"powerdown\") == 0) {\n if (access(POWEROFF_CMD_PATH, X_OK) == 0) {\n shutdown_cmd = POWEROFF_CMD_PATH;\n@@ -519,7 +519,7 @@ int64_t qmp_guest_file_open(const char *path, const char *mode,\n if (!mode) {\n mode = \"r\";\n }\n- g_info(\"guest-file-open called, filepath: %s, mode: %s\", path, mode);\n+ g_debug(\"guest-file-open filepath: %s, mode: %s\", path, mode);\n fh = safe_open_or_create(path, mode, &local_err);\n if (local_err != NULL) {\n error_propagate(errp, local_err);\n@@ -540,7 +540,7 @@ int64_t qmp_guest_file_open(const char *path, const char *mode,\n return -1;\n }\n \n- g_info(\"guest-file-open, handle: %\" PRId64, handle);\n+ g_debug(\"guest-file-open handle: %\" PRId64, handle);\n return handle;\n }\n \n@@ -549,7 +549,7 @@ void qmp_guest_file_close(int64_t handle, Error **errp)\n GuestFileHandle *gfh = guest_file_handle_find(handle, errp);\n int ret;\n \n- g_info(\"guest-file-close called, handle: %\" PRId64, handle);\n+ g_debug(\"guest-file-close handle: %\" PRId64, handle);\n if (!gfh) {\n return;\n }\n@@ -793,8 +793,6 @@ int64_t qmp_guest_fsfreeze_freeze_list(bool has_mountpoints,\n FsMountList mounts;\n Error *local_err = NULL;\n \n- g_info(\"guest-fsfreeze called\");\n-\n execute_fsfreeze_hook(FSFREEZE_HOOK_FREEZE, &local_err);\n if (local_err) {\n error_propagate(errp, local_err);\n@@ -833,7 +831,6 @@ int64_t qmp_guest_fsfreeze_thaw(Error **errp)\n \n if (ret >= 0) {\n ga_unset_frozen(ga_state);\n- g_info(\"guest-fsthaw called\");\n execute_fsfreeze_hook(FSFREEZE_HOOK_THAW, errp);\n } else {\n ret = 0;\ndiff --git a/qga/commands-win32.c b/qga/commands-win32.c\nindex d26b0041ce..e916d081f5 100644\n--- a/qga/commands-win32.c\n+++ b/qga/commands-win32.c\n@@ -231,7 +231,7 @@ int64_t qmp_guest_file_open(const char *path, const char *mode, Error **errp)\n if (!mode) {\n mode = \"r\";\n }\n- g_info(\"guest-file-open called, filepath: %s, mode: %s\", path, mode);\n+ g_debug(\"guest-file-open filepath: %s, mode: %s\", path, mode);\n guest_flags = find_open_flag(mode);\n if (guest_flags == NULL) {\n error_setg(errp, \"invalid file open mode\");\n@@ -267,8 +267,7 @@ int64_t qmp_guest_file_open(const char *path, const char *mode, Error **errp)\n goto done;\n }\n \n- g_info(\"guest-file-open, handle: % \" PRId64, fd);\n-\n+ g_debug(\"guest-file-open handle: %\" PRId64, fd);\n done:\n g_free(w_path);\n return fd;\n@@ -278,7 +277,7 @@ void qmp_guest_file_close(int64_t handle, Error **errp)\n {\n bool ret;\n GuestFileHandle *gfh = guest_file_handle_find(handle, errp);\n- g_info(\"guest-file-close called, handle: %\" PRId64, handle);\n+ g_debug(\"guest-file-close handle: %\" PRId64, handle);\n if (gfh == NULL) {\n return;\n }\n@@ -337,8 +336,7 @@ void qmp_guest_shutdown(const char *mode, Error **errp)\n Error *local_err = NULL;\n UINT shutdown_flag = EWX_FORCE;\n \n- g_info(\"guest-shutdown called, mode: %s\", mode);\n-\n+ g_debug(\"guest-shutdown mode: %s\", mode);\n if (!mode || strcmp(mode, \"powerdown\") == 0) {\n shutdown_flag |= EWX_POWEROFF;\n } else if (strcmp(mode, \"halt\") == 0) {\n@@ -1255,8 +1253,6 @@ int64_t qmp_guest_fsfreeze_freeze_list(bool has_mountpoints,\n return 0;\n }\n \n- g_info(\"guest-fsfreeze called\");\n-\n /* cannot risk guest agent blocking itself on a write in this state */\n ga_set_frozen(ga_state);\n \n@@ -1294,8 +1290,6 @@ int64_t qmp_guest_fsfreeze_thaw(Error **errp)\n \n ga_unset_frozen(ga_state);\n \n- g_info(\"guest-fsthaw called\");\n-\n return i;\n }\n \ndiff --git a/qga/commands.c b/qga/commands.c\nindex 55edd9fd4c..36b99819af 100644\n--- a/qga/commands.c\n+++ b/qga/commands.c\n@@ -43,7 +43,6 @@ int64_t qmp_guest_sync(int64_t id, Error **errp)\n \n void qmp_guest_ping(Error **errp)\n {\n- g_info(\"guest-ping called\");\n }\n \n static void qmp_command_info(const QmpCommand *cmd, void *opaque)\n@@ -136,7 +135,7 @@ GuestExecStatus *qmp_guest_exec_status(int64_t pid, Error **errp)\n GuestExecInfo *gei;\n GuestExecStatus *ges;\n \n- g_info(\"guest-exec-status called, pid: %u\", (uint32_t)pid);\n+ g_debug(\"guest-exec-status pid: %u\", (uint32_t)pid);\n \n gei = guest_exec_info_find(pid);\n if (gei == NULL) {\n@@ -238,7 +237,7 @@ static char **guest_exec_get_args(const strList *entry, bool log)\n args[i] = NULL;\n \n if (log) {\n- g_info(\"guest-exec called: \\\"%s\\\"\", str);\n+ g_debug(\"guest-exec called: \\\"%s\\\"\", str);\n }\n g_free(str);\n \ndiff --git a/qga/main.c b/qga/main.c\nindex 40b92ec686..8392d74451 100644\n--- a/qga/main.c\n+++ b/qga/main.c\n@@ -87,8 +87,10 @@ struct GAConfig {\n #endif\n gchar *bliststr; /* blockedrpcs may point to this string */\n gchar *aliststr; /* allowedrpcs may point to this string */\n+ gchar *auditstr;\n GList *blockedrpcs;\n GList *allowedrpcs;\n+ GList *audit_patterns;\n int daemonize;\n GLogLevelFlags log_level;\n int dumpconf;\n@@ -116,6 +118,7 @@ struct GAState {\n bool frozen;\n GList *blockedrpcs;\n GList *allowedrpcs;\n+ GList *audit_patterns;\n char *state_filepath_isfrozen;\n struct {\n const char *log_filepath;\n@@ -288,6 +291,11 @@ QEMU_COPYRIGHT \"\\n\"\n \" only, default is %s)\\n\"\n \" -v, --verbose enable verbose logging (info and above)\\n\"\n \" --debug enable debug logging (all messages)\\n\"\n+\" -A, --audit=LIST comma-separated list of command patterns to log at\\n\"\n+\" info level (default: *, no spaces).\\n\"\n+\" Patterns prefixed with '!' are logged at debug level.\\n\"\n+\" Patterns are evaluated in order; the first match wins.\\n\"\n+\" Example: --audit=!guest-ping,*\\n\"\n \" -V, --version print version information and exit\\n\"\n \" -d, --daemonize become a daemon\\n\"\n #ifdef _WIN32\n@@ -413,6 +421,33 @@ static void ga_log(const gchar *domain, GLogLevelFlags level,\n }\n }\n \n+static void ga_audit_log(GAState *s, const char *command)\n+{\n+ GList *l;\n+\n+ if (!command) {\n+ return;\n+ }\n+\n+ for (l = s->audit_patterns; l; l = l->next) {\n+ const char *pattern = l->data;\n+\n+ if (pattern[0] == '!') {\n+ if (g_pattern_match_simple(pattern + 1, command)) {\n+ g_debug(\"%s called\", command);\n+ return;\n+ }\n+ } else {\n+ if (g_pattern_match_simple(pattern, command)) {\n+ g_info(\"%s called\", command);\n+ return;\n+ }\n+ }\n+ }\n+\n+ g_debug(\"%s called\", command);\n+}\n+\n void ga_set_response_delimited(GAState *s)\n {\n s->delimit_response = true;\n@@ -706,7 +741,27 @@ static void process_event(void *opaque, QObject *obj, Error *err)\n }\n \n g_debug(\"processing command\");\n- rsp = qmp_dispatch(&ga_commands, obj, false, NULL);\n+ {\n+ QDict *dict = qobject_to(QDict, obj);\n+ const char *command = dict ? qdict_get_try_str(dict, \"execute\") : NULL;\n+ /*\n+ * Remember if logging was enabled.\n+ * fs-freeze disables logs, so when fs-thaw re-enables\n+ * them we re-audit to make sure the thaw is logged.\n+ */\n+ bool logging_before = ga_logging_enabled(s);\n+ bool audit = command && qmp_find_command(&ga_commands, command);\n+\n+ if (audit) {\n+ ga_audit_log(s, command);\n+ }\n+\n+ rsp = qmp_dispatch(&ga_commands, obj, false, NULL);\n+\n+ if (!logging_before && audit) {\n+ ga_audit_log(s, command);\n+ }\n+ }\n \n end:\n ret = send_response(s, rsp);\n@@ -1157,6 +1212,14 @@ static void config_load(GAConfig *config, const char *confpath, bool required)\n config->retry_path =\n g_key_file_get_boolean(keyfile, \"general\", \"retry-path\", &gerr);\n }\n+ if (g_key_file_has_key(keyfile, \"general\", \"audit\", NULL)) {\n+ config->auditstr =\n+ g_key_file_get_string(keyfile, \"general\", \"audit\", &gerr);\n+ config->audit_patterns = g_list_concat(config->audit_patterns,\n+ g_list_reverse(\n+ split_list(config->auditstr,\n+ \",\")));\n+ }\n \n if (g_key_file_has_key(keyfile, \"general\", \"block-rpcs\", NULL)) {\n config->bliststr =\n@@ -1229,6 +1292,9 @@ static void config_dump(GAConfig *config)\n config->log_level & G_LOG_LEVEL_DEBUG);\n g_key_file_set_boolean(keyfile, \"general\", \"retry-path\",\n config->retry_path);\n+ tmp = list_join(config->audit_patterns, ',');\n+ g_key_file_set_string(keyfile, \"general\", \"audit\", tmp);\n+ g_free(tmp);\n tmp = list_join(config->blockedrpcs, ',');\n g_key_file_set_string(keyfile, \"general\", \"block-rpcs\", tmp);\n g_free(tmp);\n@@ -1251,7 +1317,7 @@ static void config_dump(GAConfig *config)\n static void config_parse(GAConfig *config, int argc, char **argv)\n {\n enum { OPT_DEBUG = 256 };\n- const char *sopt = \"hVvdc:m:p:l:f:F::b:a:s:t:Dr\";\n+ const char *sopt = \"hVvdc:m:p:l:f:F::b:a:A:s:t:Dr\";\n int opt_ind = 0, ch;\n const struct option lopt[] = {\n { \"help\", 0, NULL, 'h' },\n@@ -1270,6 +1336,7 @@ static void config_parse(GAConfig *config, int argc, char **argv)\n { \"daemonize\", 0, NULL, 'd' },\n { \"block-rpcs\", 1, NULL, 'b' },\n { \"allow-rpcs\", 1, NULL, 'a' },\n+ { \"audit\", 1, NULL, 'A' },\n #ifdef _WIN32\n { \"service\", 1, NULL, 's' },\n #endif\n@@ -1362,6 +1429,10 @@ static void config_parse(GAConfig *config, int argc, char **argv)\n split_list(optarg, \",\"));\n break;\n }\n+ case 'A':\n+ g_list_free_full(config->audit_patterns, g_free);\n+ config->audit_patterns = g_list_reverse(split_list(optarg, \",\"));\n+ break;\n #ifdef _WIN32\n case 's':\n config->service = optarg;\n@@ -1416,6 +1487,8 @@ static void config_free(GAConfig *config)\n #endif\n g_list_free_full(config->blockedrpcs, g_free);\n g_list_free_full(config->allowedrpcs, g_free);\n+ g_list_free_full(config->audit_patterns, g_free);\n+ g_free(config->auditstr);\n g_free(config);\n }\n \n@@ -1459,6 +1532,7 @@ static GAState *initialize_agent(GAConfig *config, int socket_activation)\n g_assert(ga_state == NULL);\n \n s->log_level = config->log_level;\n+ s->audit_patterns = config->audit_patterns;\n s->log_file = stderr;\n #ifdef CONFIG_FSFREEZE\n s->fsfreeze_hook = config->fsfreeze_hook;\n@@ -1698,6 +1772,10 @@ int main(int argc, char **argv)\n init_dfl_pathnames();\n config_parse(config, argc, argv);\n \n+ if (config->audit_patterns == NULL) {\n+ config->audit_patterns = g_list_append(NULL, g_strdup(\"*\"));\n+ }\n+\n if (config->pid_filepath == NULL) {\n config->pid_filepath = g_strdup(dfl_pathnames.pidfile);\n }\n", "prefixes": [ "v3", "2/2" ] }