We unconditionally define ENFORCE_MEMFD_REXEC in meson.build
to a corresponding boolean value, so we need to use #if
instead of #ifdef in the code.
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
#include "caps.h"
#include "confile.h"
#include "log.h"
-#ifdef ENFORCE_MEMFD_REXEC
+#if ENFORCE_MEMFD_REXEC
#include "rexec.h"
#endif
#include "utils.h"
* container are in the same user namespace or have set up an identity id
* mapping: CVE-2019-5736.
*/
-#ifdef ENFORCE_MEMFD_REXEC
+#if ENFORCE_MEMFD_REXEC
__attribute__((constructor)) static void lxc_attach_rexec(void)
{
if (!getenv("LXC_MEMFD_REXEC") && lxc_rexec("lxc-attach")) {