util/log: use MAP_ANON if memfds are unavailable
util/log: use MAP_ANON if memfds are unavailable

If memfd_create() is not available (e.g., embedded kernels without
shmem), the call will fail with EINVAL. In those cases, we still want
to support the basic logging infrastructure. Use MAP_ANONYMOUS instead
and simply disable the FD-passing feature.

The initial patch was created by Chris. I (David) reworked it to no
longer special case the STDERR path.

Reported-by: Chris Paulson-Ellis
Signed-off-by: David Rheinsberg <1e7ff67ac6e6692b085f67edeb10803d9022c525@gmail.com>

bus1/dbus-broker