]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/selinux-access: use empty_to_na where appropriate
authorMike Yuan <me@yhndnzj.com>
Mon, 29 Apr 2024 13:21:07 +0000 (21:21 +0800)
committerMike Yuan <me@yhndnzj.com>
Thu, 2 May 2024 05:36:52 +0000 (13:36 +0800)
src/core/selinux-access.c

index 8ce2d4e5a54f0fc71708bd49cd892d612b65f7fb..a67a520a3be292e7440603cf5cb18c7ce93358c9 100644 (file)
@@ -267,7 +267,7 @@ int mac_selinux_access_check_internal(
 
         log_full_errno_zerook(LOG_DEBUG, r,
                               "SELinux access check scon=%s tcon=%s tclass=%s perm=%s state=%s function=%s path=%s cmdline=%s: %m",
-                              scon, acon, tclass, permission, enforce ? "enforcing" : "permissive", function, strna(unit_path), strna(empty_to_null(cl)));
+                              scon, acon, tclass, permission, enforce ? "enforcing" : "permissive", function, strna(unit_path), empty_to_na(cl));
         return enforce ? r : 0;
 }