lxcCapsInit: Allocate primary security driver unconditionally
Currently, if the primary security driver is 'none', we skip initializing caps->host.secModels. This means, later, when LXC domain XML is parsed and <seclabel type='none'/> is found (see virSecurityLabelDefsParseXML), the model name is not copied to the seclabel. This leads to subsequent crash in virSecurityManagerGenLabel where we call STREQ() over the model (note, that we are expecting model to be !NULL). (cherry picked from commit 37d96498) Conflicts: src/lxc/lxc_conf.c
Showing
想要评论请 注册 或 登录