]> git.ipfire.org Git - thirdparty/lxc.git/commit
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)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 8 Nov 2017 23:58:13 +0000 (00:58 +0100)
commitf4d6e68ac7bd79e6bdcb642b14e059d272767be0
tree58a46db236dde4082e5cfa86a957a903aac38749
parent67f41c20c4af559a87fd9d67732c28f2ddffaa5b
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