[lxc-devel] [lxc/lxc] bbd23a: warn about insufficient permissions

GitHub noreply at github.com
Tue Feb 11 02:20:18 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: bbd23aa0bbfebcced16654b3920d73173f0c622c
      https://github.com/lxc/lxc/commit/bbd23aa0bbfebcced16654b3920d73173f0c622c
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-02-10 (Mon, 10 Feb 2014)

  Changed paths:
    M src/lxc/conf.c

  Log Message:
  -----------
  warn about insufficient permissions

With this patch, if an unprivileged user has $HOME 700 or
750 and does

lxc-start -n c1

he'll see an error like:

lxc_container: Permission denied - could not access /home/serge.  Please grant it 'x' access, or add an ACL for t he container root.

(This addresses bug pad.lv/1277466)

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


  Commit: 8c39f7a4791cd24625b0f12d3ca279400b36bf84
      https://github.com/lxc/lxc/commit/8c39f7a4791cd24625b0f12d3ca279400b36bf84
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2014-02-10 (Mon, 10 Feb 2014)

  Changed paths:
    M src/lxc/bdev.c
    M src/lxc/bdev.h
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  lxcapi-snapshot: don't snapshot directory-backed containers

Instead force a copy clone.  Else if the user makes a change
to the original container, the snapshot will be affected.
The user should first create a snapshot clone, then use
and snapshot that clone while leaving the original container
untouched.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/ffeb76b4607b...8c39f7a4791c


More information about the lxc-devel mailing list