Fix to work lxc-destroy with unprivileged containers on recent kernel
Fix to work lxc-destroy with unprivileged containers on recent kernel

Change idmap_add_id() to add both ID_TYPE_UID and ID_TYPE_GID entries
to an existing lxc_conf, not just an ID_TYPE_UID entry, so as to work
lxc-destroy with unprivileged containers on recent kernel.

Signed-off-by: TAMUKI Shoichi <3c93446879a34d22ef90842b53f301505d448898@linet.gr.jp>
Acked-by: KATOH Yasufumi <512423cb3a4857a38f472862b51e4ab1a1730f06@jazz.email.ne.jp>
Acked-by: Serge E. Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>

hallyn/lxc,hkjolhede/lxc,ysbnim/lxc,hallyn/lxc,JohnPeacockMessageSystems/lxc,lazy404/lxc,terceiro/lxc,fwilson42/lxc,DarknessBeforeDawn/lxc,rowhit/lxc,LynxChaus/lxc,fwilson42/lxc,tych0/lxc,ss1h2a3tw/lxc,rldleblanc/lxc,lisongmin/lxc,raspberrypython/lxc,efiop/lxc,bostjan/lxc,DarknessBeforeDawn/lxc,GreatFruitOmsk/lxc,virajs/lxc,bostjan/lxc,rldleblanc/lxc,JohnPeacockMessageSystems/lxc,jirislaby/lxc,lazy404/lxc,LynxChaus/lxc,ss1h2a3tw/lxc,Distrotech/lxc,lisongmin/lxc,Pelagicore/lxc,virajs/lxc,thmo/lxc,tych0/lxc,cjwatson/lxc,christiaan/lxc,regit/lxc,ksperis/lxc,armcc/lxc,efiop/lxc,bostjan/lxc,cjwatson/lxc,lisongmin/lxc,ysbnim/lxc,virajs/lxc,sapun/lxc,major/lxc,JohnPeacockMessageSystems/lxc,bmoar/lxc,jirislaby/lxc,DarknessBeforeDawn/lxc,christiaan/lxc,federicobriata/lxc,yubo/lxc,terceiro/lxc,rowhit/lxc,aeris/lxc,GreatFruitOmsk/lxc,weizhenwei/lxc,efiop/lxc,ioops/lxc,hkjolhede/lxc,tych0/lxc,ecarrara/lxc,federicobriata/lxc,LynxChaus/lxc,akshaykarle/lxc,ecarrara/lxc,fwilson42/lxc,Ponce/lxc,QingweiPeterLan/cs188-lxc,codebauss/lxc,rldleblanc/lxc,akshaykarle/lxc,szaszg/lxc,ioops/lxc,caglar10ur/lxc,yubo/lxc,QingweiPeterLan/cs188-lxc,armcc/lxc,hkjolhede/lxc,Pelagicore/lxc,federicobriata/lxc,bmoar/lxc,yubo/lxc,hallyn/lxc,bmoar/lxc,thmo/lxc,codebauss/lxc,terceiro/lxc,caglar10ur/lxc,rowhit/lxc,aeris/lxc,jirislaby/lxc,GreatFruitOmsk/lxc,weizhenwei/lxc,Ponce/lxc,Distrotech/lxc,szaszg/lxc,regit/lxc,hfuCN/lxc,sapun/lxc,Distrotech/lxc,ysbnim/lxc,major/lxc,akshaykarle/lxc,szaszg/lxc,armcc/lxc,christiaan/lxc,hfuCN/lxc,regit/lxc,ksperis/lxc,hfuCN/lxc,Ponce/lxc,raspberrypython/lxc,ecarrara/lxc,caglar10ur/lxc,ksperis/lxc,ss1h2a3tw/lxc,weizhenwei/lxc,codebauss/lxc,Pelagicore/lxc,aeris/lxc,sapun/lxc,QingweiPeterLan/cs188-lxc,ioops/lxc,cjwatson/lxc,thmo/lxc,lazy404/lxc,major/lxc,raspberrypython/lxc