Skip to content

Commit fd9465a

Browse files
committed
audit: Make use of str_enabled_disabled() helper
JIRA: https://issues.redhat.com/browse/RHEL-78967 This patch is a backport of the following upstream commit: commit 8c1867a Author: Hongbo Li <lihongbo22@huawei.com> Date: Sat Aug 31 17:52:51 2024 +0800 audit: Make use of str_enabled_disabled() helper Use str_enabled_disabled() helper instead of open coding the same. Signed-off-by: Hongbo Li <lihongbo22@huawei.com> Signed-off-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
1 parent 7e4081c commit fd9465a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/audit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,7 @@ static int __init audit_init(void)
17061706
audit_cmd_mutex.owner = NULL;
17071707

17081708
pr_info("initializing netlink subsys (%s)\n",
1709-
audit_default ? "enabled" : "disabled");
1709+
str_enabled_disabled(audit_default));
17101710
register_pernet_subsys(&audit_net_ops);
17111711

17121712
audit_initialized = AUDIT_INITIALIZED;

0 commit comments

Comments
 (0)