lxc_log_define(lxc_confile, lxc);
-static int set_config_personality(const char *, const char *, struct lxc_conf *);
+static int set_config_personality(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_personality(const char *, char *, int, struct lxc_conf *);
static int clr_config_personality(const char *, struct lxc_conf *);
-static int set_config_pts(const char *, const char *, struct lxc_conf *);
+static int set_config_pts(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_pts(const char *, char *, int, struct lxc_conf *);
static int clr_config_pts(const char *, struct lxc_conf *);
-static int set_config_tty(const char *, const char *, struct lxc_conf *);
+static int set_config_tty(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_tty(const char *, char *, int, struct lxc_conf *);
static int clr_config_tty(const char *, struct lxc_conf *);
-static int set_config_ttydir(const char *, const char *, struct lxc_conf *);
+static int set_config_ttydir(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_ttydir(const char *, char *, int, struct lxc_conf *);
static int clr_config_ttydir(const char *, struct lxc_conf *);
-static int set_config_kmsg(const char *, const char *, struct lxc_conf *);
+static int set_config_kmsg(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_kmsg(const char *, char *, int, struct lxc_conf *);
static int clr_config_kmsg(const char *, struct lxc_conf *);
-static int set_config_lsm_aa_profile(const char *, const char *, struct lxc_conf *);
-static int get_config_lsm_aa_profile(const char *, char *, int, struct lxc_conf *);
+static int set_config_lsm_aa_profile(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_lsm_aa_profile(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_lsm_aa_profile(const char *, struct lxc_conf *);
-static int set_config_lsm_aa_incomplete(const char *, const char *, struct lxc_conf *);
-static int get_config_lsm_aa_incomplete(const char *, char *, int, struct lxc_conf *);
+static int set_config_lsm_aa_incomplete(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_lsm_aa_incomplete(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_lsm_aa_incomplete(const char *, struct lxc_conf *);
-static int set_config_lsm_se_context(const char *, const char *, struct lxc_conf *);
-static int get_config_lsm_se_context(const char *, char *, int, struct lxc_conf *);
+static int set_config_lsm_se_context(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_lsm_se_context(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_lsm_se_context(const char *, struct lxc_conf *);
-static int set_config_cgroup(const char *, const char *, struct lxc_conf *);
+static int set_config_cgroup(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_cgroup(const char *, char *, int, struct lxc_conf *);
static int clr_config_cgroup(const char *, struct lxc_conf *);
-static int set_config_idmaps(const char *, const char *, struct lxc_conf *);
+static int set_config_idmaps(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_idmaps(const char *, char *, int, struct lxc_conf *);
static int clr_config_idmaps(const char *, struct lxc_conf *);
-static int set_config_loglevel(const char *, const char *, struct lxc_conf *);
+static int set_config_loglevel(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_loglevel(const char *, char *, int, struct lxc_conf *);
static int clr_config_loglevel(const char *, struct lxc_conf *);
-static int set_config_logfile(const char *, const char *, struct lxc_conf *);
+static int set_config_logfile(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_logfile(const char *, char *, int, struct lxc_conf *);
static int clr_config_logfile(const char *, struct lxc_conf *);
-static int set_config_mount(const char *, const char *, struct lxc_conf *);
+static int set_config_mount(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_mount(const char *, char *, int, struct lxc_conf *);
static int clr_config_mount(const char *, struct lxc_conf *);
-static int set_config_mount_auto(const char *, const char *, struct lxc_conf *);
+static int set_config_mount_auto(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_mount_auto(const char *, char *, int, struct lxc_conf *);
static int clr_config_mount_auto(const char *, struct lxc_conf *);
-static int set_config_fstab(const char *, const char *, struct lxc_conf *);
+static int set_config_fstab(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_fstab(const char *, char *, int, struct lxc_conf *);
static int clr_config_fstab(const char *, struct lxc_conf *);
-static int set_config_rootfs_mount(const char *, const char *, struct lxc_conf *);
-static int get_config_rootfs_mount(const char *, char *, int, struct lxc_conf *);
+static int set_config_rootfs_mount(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_rootfs_mount(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_rootfs_mount(const char *, struct lxc_conf *);
-static int set_config_rootfs_options(const char *, const char *, struct lxc_conf *);
-static int get_config_rootfs_options(const char *, char *, int, struct lxc_conf *);
+static int set_config_rootfs_options(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_rootfs_options(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_rootfs_options(const char *, struct lxc_conf *);
-static int set_config_rootfs_backend(const char *, const char *, struct lxc_conf *);
-static int get_config_rootfs_backend(const char *, char *, int, struct lxc_conf *);
+static int set_config_rootfs_backend(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_rootfs_backend(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_rootfs_backend(const char *, struct lxc_conf *);
-static int set_config_rootfs(const char *, const char *, struct lxc_conf *);
+static int set_config_rootfs(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_rootfs(const char *, char *, int, struct lxc_conf *);
static int clr_config_rootfs(const char *, struct lxc_conf *);
-static int set_config_pivotdir(const char *, const char *, struct lxc_conf *);
+static int set_config_pivotdir(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_pivotdir(const char *, char *, int, struct lxc_conf *);
static int clr_config_pivotdir(const char *, struct lxc_conf *);
-static int set_config_utsname(const char *, const char *, struct lxc_conf *);
+static int set_config_utsname(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_utsname(const char *, char *, int, struct lxc_conf *);
static int clr_config_utsname(const char *, struct lxc_conf *);
-static int set_config_hooks(const char *, const char *, struct lxc_conf *lxc_conf);
+static int set_config_hooks(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_hooks(const char *, char *, int, struct lxc_conf *);
static int clr_config_hooks(const char *, struct lxc_conf *);
-static int set_config_network_type(const char *, const char *, struct lxc_conf *);
-static int set_config_network_flags(const char *, const char *, struct lxc_conf *);
-static int set_config_network_link(const char *, const char *, struct lxc_conf *);
-static int set_config_network_name(const char *, const char *, struct lxc_conf *);
-static int set_config_network_veth_pair(const char *, const char *, struct lxc_conf *);
-static int set_config_network_macvlan_mode(const char *, const char *, struct lxc_conf *);
-static int set_config_network_hwaddr(const char *, const char *, struct lxc_conf *);
-static int set_config_network_vlan_id(const char *, const char *, struct lxc_conf *);
-static int set_config_network_mtu(const char *, const char *, struct lxc_conf *);
-static int set_config_network_ipv4(const char *, const char *, struct lxc_conf *);
-static int set_config_network_ipv4_gateway(const char *, const char *, struct lxc_conf *);
-static int set_config_network_script_up(const char *, const char *, struct lxc_conf *);
-static int set_config_network_script_down(const char *, const char *, struct lxc_conf *);
-static int set_config_network_ipv6(const char *, const char *, struct lxc_conf *);
-static int set_config_network_ipv6_gateway(const char *, const char *, struct lxc_conf *);
-static int set_config_network_nic(const char *, const char *, struct lxc_conf *);
-static int get_config_network_item(const char *, char *, int, struct lxc_conf *);
+static int set_config_network_type(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_flags(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_link(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_name(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_veth_pair(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_macvlan_mode(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_hwaddr(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_vlan_id(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_mtu(const char *, const char *, struct lxc_conf *,
+ void *);
+static int set_config_network_ipv4(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_ipv4_gateway(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_script_up(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_script_down(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_ipv6(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_ipv6_gateway(const char *, const char *,
+ struct lxc_conf *, void *);
+static int set_config_network_nic(const char *, const char *, struct lxc_conf *,
+ void *);
+static int get_config_network_item(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_network_item(const char *, struct lxc_conf *);
-static int set_config_network(const char *, const char *, struct lxc_conf *);
+static int set_config_network(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_network(const char *, char *, int, struct lxc_conf *);
static int clr_config_network(const char *, struct lxc_conf *);
-static int set_config_cap_drop(const char *, const char *, struct lxc_conf *);
+static int set_config_cap_drop(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_cap_drop(const char *, char *, int, struct lxc_conf *);
static int clr_config_cap_drop(const char *, struct lxc_conf *);
-static int set_config_cap_keep(const char *, const char *, struct lxc_conf *);
+static int set_config_cap_keep(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_cap_keep(const char *, char *, int, struct lxc_conf *);
static int clr_config_cap_keep(const char *, struct lxc_conf *);
-static int set_config_console_logfile(const char *, const char *, struct lxc_conf *);
-static int get_config_console_logfile(const char *, char *, int, struct lxc_conf *);
+static int set_config_console_logfile(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_console_logfile(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_console_logfile(const char *, struct lxc_conf *);
-static int set_config_console(const char *, const char *, struct lxc_conf *);
+static int set_config_console(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_console(const char *, char *, int, struct lxc_conf *);
static int clr_config_console(const char *, struct lxc_conf *);
-static int set_config_seccomp(const char *, const char *, struct lxc_conf *);
+static int set_config_seccomp(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_seccomp(const char *, char *, int, struct lxc_conf *);
static int clr_config_seccomp(const char *, struct lxc_conf *);
-static int set_config_includefiles(const char *, const char *, struct lxc_conf *);
-static int get_config_includefiles(const char *, char *, int, struct lxc_conf *);
+static int set_config_includefiles(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_includefiles(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_includefiles(const char *, struct lxc_conf *);
-static int set_config_autodev(const char *, const char *, struct lxc_conf *);
+static int set_config_autodev(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_autodev(const char *, char *, int, struct lxc_conf *);
static int clr_config_autodev(const char *, struct lxc_conf *);
-static int set_config_haltsignal(const char *, const char *, struct lxc_conf *);
+static int set_config_haltsignal(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_haltsignal(const char *, char *, int, struct lxc_conf *);
static int clr_config_haltsignal(const char *, struct lxc_conf *);
-static int set_config_rebootsignal(const char *, const char *, struct lxc_conf *);
-static int get_config_rebootsignal(const char *, char *, int, struct lxc_conf *);
+static int set_config_rebootsignal(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_rebootsignal(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_rebootsignal(const char *, struct lxc_conf *);
-static int set_config_stopsignal(const char *, const char *, struct lxc_conf *);
+static int set_config_stopsignal(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_stopsignal(const char *, char *, int, struct lxc_conf *);
static int clr_config_stopsignal(const char *, struct lxc_conf *);
-static int set_config_start(const char *, const char *, struct lxc_conf *);
+static int set_config_start(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_start(const char *, char *, int, struct lxc_conf *);
static int clr_config_start(const char *, struct lxc_conf *);
-static int set_config_monitor(const char *, const char *, struct lxc_conf *);
+static int set_config_monitor(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_monitor(const char *, char *, int, struct lxc_conf *);
static int clr_config_monitor(const char *, struct lxc_conf *);
-static int set_config_group(const char *, const char *, struct lxc_conf *);
+static int set_config_group(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_group(const char *, char *, int, struct lxc_conf *);
static int clr_config_group(const char *, struct lxc_conf *);
-static int set_config_environment(const char *, const char *, struct lxc_conf *);
+static int set_config_environment(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_environment(const char *, char *, int, struct lxc_conf *);
static int clr_config_environment(const char *, struct lxc_conf *);
-static int set_config_init_cmd(const char *, const char *, struct lxc_conf *);
+static int set_config_init_cmd(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_init_cmd(const char *, char *, int, struct lxc_conf *);
static int clr_config_init_cmd(const char *, struct lxc_conf *);
-static int set_config_init_uid(const char *, const char *, struct lxc_conf *);
+static int set_config_init_uid(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_init_uid(const char *, char *, int, struct lxc_conf *);
static int clr_config_init_uid(const char *, struct lxc_conf *);
-static int set_config_init_gid(const char *, const char *, struct lxc_conf *);
+static int set_config_init_gid(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_init_gid(const char *, char *, int, struct lxc_conf *);
static int clr_config_init_gid(const char *, struct lxc_conf *);
-static int set_config_ephemeral(const char *, const char *, struct lxc_conf *);
+static int set_config_ephemeral(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_ephemeral(const char *, char *, int, struct lxc_conf *);
static int clr_config_ephemeral(const char *, struct lxc_conf *);
-static int set_config_syslog(const char *, const char *, struct lxc_conf *);
+static int set_config_syslog(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_syslog(const char *, char *, int, struct lxc_conf *);
static int clr_config_syslog(const char *, struct lxc_conf *);
-static int set_config_no_new_privs(const char *, const char *, struct lxc_conf *);
-static int get_config_no_new_privs(const char *, char *, int, struct lxc_conf *);
+static int set_config_no_new_privs(const char *, const char *,
+ struct lxc_conf *, void *);
+static int get_config_no_new_privs(const char *, char *, int,
+ struct lxc_conf *);
static int clr_config_no_new_privs(const char *, struct lxc_conf *);
-static int set_config_limit(const char *, const char *, struct lxc_conf *);
+static int set_config_limit(const char *, const char *, struct lxc_conf *,
+ void *);
static int get_config_limit(const char *, char *, int, struct lxc_conf *);
static int clr_config_limit(const char *, struct lxc_conf *);
* (by rewriting the key), and call it.
*/
static int set_config_network_nic(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
char *copy = strdup(key), *p;
int ret = -1;
ERROR("unknown key %s", key);
goto out;
}
- ret = config->set(key, value, lxc_conf);
+ ret = config->set(key, value, lxc_conf, data);
out:
free(copy);
}
static int set_config_network(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
if (!lxc_config_value_empty(value)) {
ERROR("lxc.network must not have a value");
static int macvlan_mode(int *valuep, const char *value);
static int set_config_network_type(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_list *network = &lxc_conf->network;
struct lxc_netdev *netdev;
}
static int set_config_network_flags(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
}
static int set_network_link(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
if (!strncmp(value, ifa->ifa_name, strlen(value) - 1)) {
ret = set_config_network_type(type_key, tmpvalue,
- lxc_conf);
+ lxc_conf, NULL);
if (!ret) {
ret = set_network_link(link_key, ifa->ifa_name,
- lxc_conf);
+ lxc_conf, NULL);
if (ret) {
ERROR("failed to create matched ifnames");
break;
}
static int set_config_network_link(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
struct lxc_list *it;
}
static int set_config_network_name(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_network_veth_pair(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_network_macvlan_mode(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf,
+ void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_network_hwaddr(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
char *new_value;
}
static int set_config_network_vlan_id(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_network_mtu(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_network_ipv4(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
struct lxc_inetdev *inetdev;
}
static int set_config_network_ipv4_gateway(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf,
+ void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_network_ipv6(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
struct lxc_inet6dev *inet6dev;
}
static int set_config_network_ipv6_gateway(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf,
+ void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_network_script_up(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_network_script_down(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_netdev *netdev;
}
static int set_config_seccomp(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_path_item(&lxc_conf->seccomp, value);
}
static int set_config_init_cmd(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_path_item(&lxc_conf->init_cmd, value);
}
static int set_config_init_uid(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
unsigned int init_uid;
}
static int set_config_init_gid(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
unsigned int init_gid;
}
static int set_config_hooks(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
char *copy;
}
static int set_config_personality(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
signed long personality = lxc_config_parse_arch(value);
}
static int set_config_pts(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
/* Set config value to default. */
if (lxc_config_value_empty(value)) {
* noticed when the callback was called.
*/
static int set_config_start(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
bool is_empty;
}
static int set_config_monitor(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
/* Set config value to default. */
if (lxc_config_value_empty(value)) {
}
static int set_config_group(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
char *groups, *groupptr, *sptr, *token;
struct lxc_list *grouplist;
}
static int set_config_environment(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_list *list_item = NULL;
}
static int set_config_tty(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
/* Set config value to default. */
if (lxc_config_value_empty(value)) {
}
static int set_config_ttydir(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_string_item_max(&lxc_conf->ttydir, value,
NAME_MAX + 1);
}
static int set_config_kmsg(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
/* Set config value to default. */
if (lxc_config_value_empty(value)) {
}
static int set_config_lsm_aa_profile(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_string_item(&lxc_conf->lsm_aa_profile, value);
}
static int set_config_lsm_aa_incomplete(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
/* Set config value to default. */
if (lxc_config_value_empty(value)) {
}
static int set_config_lsm_se_context(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_string_item(&lxc_conf->lsm_se_context, value);
}
static int set_config_logfile(const char *key, const char *value,
- struct lxc_conf *c)
+ struct lxc_conf *c, void *data)
{
int ret;
}
static int set_config_loglevel(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
int newlevel;
}
static int set_config_autodev(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
/* Set config value to default. */
if (lxc_config_value_empty(value)) {
}
static int set_config_haltsignal(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
int sig_n;
}
static int set_config_rebootsignal(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
int sig_n;
}
static int set_config_stopsignal(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
int sig_n;
}
static int set_config_cgroup(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
char *subkey;
char *token = "lxc.cgroup.";
}
static int set_config_limit(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct lxc_list *iter;
struct rlimit limit;
}
static int set_config_idmaps(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
unsigned long hostid, nsid, range;
char type;
}
static int set_config_fstab(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
if (lxc_config_value_empty(value)) {
clr_config_fstab(key, lxc_conf);
}
static int set_config_mount_auto(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
char *autos, *autoptr, *sptr, *token;
int i;
}
static int set_config_mount(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
char *mntelem;
struct lxc_list *mntlist;
}
static int set_config_cap_keep(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
char *keepcaps, *keepptr, *sptr, *token;
struct lxc_list *keeplist;
}
static int set_config_cap_drop(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
char *dropcaps, *dropptr, *sptr, *token;
struct lxc_list *droplist;
}
static int set_config_console(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_path_item(&lxc_conf->console.path, value);
}
static int set_config_console_logfile(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_path_item(&lxc_conf->console.log_path, value);
}
}
static int set_config_includefiles(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
/* Set config value to default. */
if (lxc_config_value_empty(value)) {
}
static int set_config_rootfs(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_path_item(&lxc_conf->rootfs.path, value);
}
static int set_config_rootfs_mount(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_path_item(&lxc_conf->rootfs.mount, value);
}
static int set_config_rootfs_options(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
return set_config_string_item(&lxc_conf->rootfs.options, value);
}
static int set_config_rootfs_backend(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
if (lxc_config_value_empty(value)) {
free(lxc_conf->rootfs.bdev_type);
}
static int set_config_pivotdir(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
WARN("lxc.pivotdir is ignored. It will soon become an error.");
return 0;
}
static int set_config_utsname(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
struct utsname *utsname;
goto out;
}
- ret = config->set(key, value, plc->conf);
+ ret = config->set(key, value, plc->conf, data);
out:
free(linep);
}
static int set_config_ephemeral(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
/* Set config value to default. */
if (lxc_config_value_empty(value)) {
}
static int set_config_syslog(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
int facility;
}
static int set_config_no_new_privs(const char *key, const char *value,
- struct lxc_conf *lxc_conf)
+ struct lxc_conf *lxc_conf, void *data)
{
unsigned int v;