From: Christian Brauner Date: Tue, 30 May 2017 03:02:55 +0000 (+0200) Subject: confile: config_no_new_privs() X-Git-Tag: lxc-2.1.0~110^2~111 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf3f8bf6058af54c6d4ab41189ed929526231c75;p=thirdparty%2Flxc.git confile: config_no_new_privs() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index fe21ba385..cb06d68fd 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -3518,13 +3518,17 @@ static int config_syslog(const char *key, const char *value, } static int config_no_new_privs(const char *key, const char *value, - struct lxc_conf *lxc_conf) + struct lxc_conf *lxc_conf) { unsigned int v; - if (config_value_empty(value)) + /* Set config value to default. */ + if (config_value_empty(value)) { + lxc_conf->no_new_privs = false; return 0; + } + /* Parse new config value. */ if (lxc_safe_uint(value, &v) < 0) return -1;