1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

selinux-util: do not use log_internal_realm() without setting log realm

This commit is contained in:
Yu Watanabe 2021-01-17 13:02:54 +09:00
parent 5df4f46f28
commit 10d296c189

View 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; \
})