Files
nginx-unit/auto
Andrew Clayton 0277d8f103 Isolation: Fix the enablement of PR_SET_NO_NEW_PRIVS.
This prctl(2) option is checked for in auto/isolation, unfortunately due
to a typo this feature has never been enabled.

In the auto/isolation script the feature name was down as
NXT_HAVE_PR_SET_NO_NEW_PRIVS0, which means we end up with the following
in build/nxt_auto_config.h

  #ifndef NXT_HAVE_PR_SET_NO_NEW_PRIVS0
  #define NXT_HAVE_PR_SET_NO_NEW_PRIVS0  1
  #endif

Whereas everywhere else is checking for NXT_HAVE_PR_SET_NO_NEW_PRIVS.

This also guards the inclusion of sys/prctl.h in src/nxt_process.c which
is required by a subsequent commit.

Fixes: e2b53e1 ("Added "rootfs" feature.")
Reviewed-by: Alejandro Colomar <alx@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
2022-11-25 10:32:20 +00:00
..
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00
2022-12-02 17:20:37 +00:00
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00
2017-01-17 20:00:00 +03:00
2022-11-20 23:16:51 +08:00
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00
2022-11-20 23:16:51 +08:00
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00
2017-01-17 20:00:00 +03:00
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00
2022-10-28 03:17:31 +01:00