]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/start.c
lxc/start.c: Fix legacy PR_{G,S}ET_NO_NEW_PRIVS handling
authorPeter Korsgaard <peter@korsgaard.com>
Mon, 6 Nov 2017 08:35:48 +0000 (09:35 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 6 Nov 2017 08:35:48 +0000 (09:35 +0100)
commit995accccbb07d59381aa60939cd44b41dc092dda
treec51477ee5b6f82d8cb944c857a20ab8bde3a5528
parent2ed797da7e36d25ea3377494d8a7ec024140445f
lxc/start.c: Fix legacy PR_{G,S}ET_NO_NEW_PRIVS handling

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’.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
src/lxc/start.c