[lxc-devel] Regression in capability setting for lxc-init

Guido Trotter ultrotter at google.com
Sun Mar 22 13:14:31 UTC 2009


On Sun, Mar 22, 2009 at 3:51 AM, Ryousei Takano <ryousei at gmail.com> wrote:
> Hi Daniel,
>
> commit dfdcea5c4f98285f25000a899992b4698c97388b (Fix capability setting
> for lxc-init) introduced a regression that causes 'make install' failure:
>
> $ sudo make install
>
> [snip]
>
>  /usr/bin/install -c 'lxc-checkconfig' '/usr/local/bin/lxc-checkconfig'
> setcap cap_sys_admin=ep /usr/local/libexec/lxc-init
> Failed to set capabilities on file `/usr/local/libexec/lxc-init' (No
> such file or directory)
> usage: setcap [-q] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]
>
>  Note <filename> must be a regular (non-symlink) file.
> make[3]: *** [install-libexecPROGRAMS] Error 1
>
> 'install-libexecPROGRAMS' is generated by automake, so we cannot redefine it
> at Makefile.am.  But I am not sure about it...
>

Oh yeah, true, now it doesn't get installed anymore (and sorry for
missing the capability bit...)
Perhaps we could leave the permission change where it was before, just
changing the path?

Thanks,

Guido




More information about the lxc-devel mailing list