mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 12:18:51 +00:00
confile: config_monitor()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
ebb80f95b8
commit
4ad9cd26bd
@ -1311,14 +1311,16 @@ static int config_start(const char *key, const char *value,
|
|||||||
static int config_monitor(const char *key, const char *value,
|
static int config_monitor(const char *key, const char *value,
|
||||||
struct lxc_conf *lxc_conf)
|
struct lxc_conf *lxc_conf)
|
||||||
{
|
{
|
||||||
if (config_value_empty(value))
|
/* Set config value to default. */
|
||||||
return 0;
|
if (config_value_empty(value)) {
|
||||||
|
lxc_conf->monitor_unshare = 0;
|
||||||
if(strcmp(key, "lxc.monitor.unshare") == 0) {
|
|
||||||
if (lxc_safe_uint(value, &lxc_conf->monitor_unshare) < 0)
|
|
||||||
return -1;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Parse new config value. */
|
||||||
|
if (strcmp(key, "lxc.monitor.unshare") == 0)
|
||||||
|
return lxc_safe_uint(value, &lxc_conf->monitor_unshare);
|
||||||
|
|
||||||
SYSERROR("Unknown key: %s", key);
|
SYSERROR("Unknown key: %s", key);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user