lxc-create: support unpriv users
lxc-create: support unpriv users

Just make sure we are root if we are asked to deal with something other
than a directory, and make sure we have permission to create the
container in the given lxcpath.

The templates will need much more work.

Signed-off-by: Serge Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>
Acked-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

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