Unverified Commit a4922b61 by Maximilian Blenk Committed by Christian Brauner

container.conf: Document that order is important in config_jump_table

Add a comment that documents that more specific options of a namespace have to be added above more generic options in config_jump_table. Signed-off-by: 's avatarMaximilian Blenk <Maximilian.Blenk@bmw.de>
parent f50520d5
......@@ -130,6 +130,17 @@ lxc_config_define(uts_name);
lxc_config_define(sysctl);
lxc_config_define(proc);
/*
* Important Note:
* If a new config option is added to this table, be aware that
* the order in which the options are places into the table matters.
* That means that more specific options of a namespace have to be
* placed above more generic ones.
*
* For instance: If lxc.ab is placed before lxc.ab.c, the config option
* lxc.ab.c will always be matched to lxc.ab. That is, the lxc.ab.c option
* has to be placed above lxc.ab.
*/
static struct lxc_config_t config_jump_table[] = {
{ "lxc.arch", set_config_personality, get_config_personality, clr_config_personality, },
{ "lxc.apparmor.profile", set_config_apparmor_profile, get_config_apparmor_profile, clr_config_apparmor_profile, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment