lxc: fix legacy PR_{G, S}ET_NO_NEW_PRIVS handling
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 6 Nov 2017 08:46:16 +0000 (09:46 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 6 Nov 2017 12:10:58 +0000 (13:10 +0100)
commit35bf58d3101a04d518d90d237ea9bc11baa1398a
tree860b4f4a51c4804a9cbe50c20201c5b865970595
parent4f73b91c5be8676637c1349175a797b300f70353
lxc: fix legacy PR_{G, S}ET_NO_NEW_PRIVS handling

Fixes:
http://autobuild.buildroot.net/results/841/841e9601a6afc023d2a303ffb4b7ea63edd816af/

The configure checks for these use AC_CHECK_DECLS, which define the symbol
to 0 if not available - So adjust the code to match. From the autoconf
manual:

https://www.gnu.org/software/autoconf/manual/autoconf-2.65/html_node/Generic-Declarations.html)

For each of the symbols (comma-separated list), define HAVE_DECL_symbol (in
all capitals) to ‘1’ if symbol is declared, otherwise to ‘0’.

Patch submitted upstream: https://github.com/lxc/lxc/pull/1901

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/lxc/0002-lxc-start.c-Fix-legacy-PR_-G-S-ET_NO_NEW_PRIVS-handl.patch [new file with mode: 0644]