diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-04-16 12:09:48 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-17 16:05:56 +0200 |
commit | 0648f9beb9467b15e124fd35ef7ace7b8d6c96a1 (patch) | |
tree | cb40aeddc753e3ffabd18a1ff08da5f719cead4c /src/journal/journald-audit.c | |
parent | 511e03a3eedb7613beb0ba59f98fdc1dd753aced (diff) | |
download | systemd-0648f9beb9467b15e124fd35ef7ace7b8d6c96a1.tar.gz |
errno-util: let's beef up ERRNO_IS_NOT_SUPPORTED() with socket not supported errors
Diffstat (limited to 'src/journal/journald-audit.c')
-rw-r--r-- | src/journal/journald-audit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journald-audit.c b/src/journal/journald-audit.c index 5c31c43705..a5a78b7746 100644 --- a/src/journal/journald-audit.c +++ b/src/journal/journald-audit.c @@ -2,6 +2,7 @@ #include "alloc-util.h" #include "audit-type.h" +#include "errno-util.h" #include "fd-util.h" #include "hexdecoct.h" #include "io-util.h" @@ -512,7 +513,7 @@ int server_open_audit(Server *s) { s->audit_fd = socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC|SOCK_NONBLOCK, NETLINK_AUDIT); if (s->audit_fd < 0) { - if (IN_SET(errno, EAFNOSUPPORT, EPROTONOSUPPORT)) + if (ERRNO_IS_NOT_SUPPORTED(errno)) log_debug("Audit not supported in the kernel."); else log_warning_errno(errno, "Failed to create audit socket, ignoring: %m"); |