[lxc-devel] [PATCH] $(localstatedir) != $(prefix)/var

Guido Trotter ultrotter at google.com
Sat Mar 28 10:13:34 UTC 2009


On Fri, Mar 27, 2009 at 8:47 PM, Guido Trotter <ultrotter at google.com> wrote:
>
> BTW just a question: why are we even doing this? When is this dir
> used, and for what?
> (I actually need to move it away from there, I hadn't realized it yet,
> so if it's used I need to find a better place for it, or at least make
> it configurably better) :)

Ok, I found it...
So, I believe the correct path, under debian, would be /var/run/lxc
Can I make it configurable? (something like --with-lxc-run-dir=...) or
is /var/run ok for everybody else?
The only issue is that /var/run may go away at each boot, which should
be fine for the actual contents, but not for the dir itself... So
maybe I can move its creation to an init file? :)

Also, permission need not be 2777 unless we allow non-root users to
run lxc, so I'd say to move the permission change to lxc-setcap :)
What do you think about this? (of course in the init file case we
would detect capabilities and do set the permissions accordingly)

Thanks,

Guido




More information about the lxc-devel mailing list