[lxc-devel] [PATCH] lxc-setcap.in: Set path to lxc-init

Stéphane Graber stgraber at ubuntu.com
Tue Jan 22 22:54:29 UTC 2013


On 01/22/2013 03:57 PM, Serge Hallyn wrote:
> Quoting Matthias Brugger (matthias.bgg at gmail.com):
>> In lxc-setcap the path to lxc-init wasn't set right, so that
>> a call to the script failed with an error. This patch sets
>> the path to the right directory.
>>
>> Signed-off-by: Matthias Brugger <matthias.bgg at gmail.com>
> 
> Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

And pushed to staging. Thanks.

>> ---
>>  src/lxc/lxc-setcap.in | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/lxc/lxc-setcap.in b/src/lxc/lxc-setcap.in
>> index fcbe2be..3e95b16 100644
>> --- a/src/lxc/lxc-setcap.in
>> +++ b/src/lxc/lxc-setcap.in
>> @@ -60,7 +60,7 @@ lxc_setcaps()
>>      setcap $LXC_UNSHARE_CAPS=ep @BINDIR@/lxc-unshare
>>      setcap $LXC_NETSTAT_CAPS=ep @BINDIR@/lxc-netstat
>>      setcap $LXC_CHECKPOINT_CAPS=ep @BINDIR@/lxc-checkpoint
>> -    setcap $LXC_INIT_CAPS=ep @LXCINITDIR@/lxc-init
>> +    setcap $LXC_INIT_CAPS=ep @LXCINITDIR@/lxc/lxc-init
>>  
>>      test -e @LXCPATH@ || mkdir -p @LXCPATH@
>>      chmod 0777 @LXCPATH@
>> @@ -76,7 +76,7 @@ lxc_dropcaps()
>>      setcap -r @BINDIR@/lxc-unshare
>>      setcap -r @BINDIR@/lxc-netstat
>>      setcap -r @BINDIR@/lxc-checkpoint
>> -    setcap -r @LXCINITDIR@/lxc-init
>> +    setcap -r @LXCINITDIR@/lxc/lxc-init
>>  
>>      chmod 0755 @LXCPATH@
>>  }
>> -- 
>> 1.7.11.7
>>
>>
>> ------------------------------------------------------------------------------
>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
>> MVPs and experts. ON SALE this month only -- learn more at:
>> http://p.sf.net/sfu/learnnow-d2d
>> _______________________________________________
>> Lxc-devel mailing list
>> Lxc-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/lxc-devel
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Lxc-devel mailing list
> Lxc-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lxc-devel
> 


-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20130122/b800e1c1/attachment.pgp>


More information about the lxc-devel mailing list