]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
selinux-util: do not use log_internal_realm() without setting log realm
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 17 Jan 2021 04:02:54 +0000 (13:02 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jan 2021 11:32:18 +0000 (20:32 +0900)
src/basic/selinux-util.c

index 4989f4f37c6b68ef698d08a6c1b193c50a1dfb31..bd22500b7ed858e9363d8e921a7b2dd4793c9b6f 100644 (file)
@@ -50,7 +50,7 @@ static struct selabel_handle *label_hnd = NULL;
                 int _e = (error);                                       \
                                                                         \
                 int _r = (log_get_max_level() >= LOG_PRI(_level))       \
-                        ? log_internal_realm(_level, _e, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
+                        ? log_internal(_level, _e, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
                         : -ERRNO_VALUE(_e);                             \
                 _enforcing ? _r : 0;                                    \
         })