]> git.ipfire.org Git - thirdparty/lxc.git/commit
Improve behaviour for unprivileged users
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 2 Oct 2013 22:25:37 +0000 (18:25 -0400)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 3 Oct 2013 14:34:55 +0000 (09:34 -0500)
commitf5abd74d1a6f5f6c04d982b31a6b1edbaf0f2582
treeb9b028055353dddc50c4d93115edd9007f4f53b4
parent17232fefae9937b3718ac05c5c4da591b5684f5a
Improve behaviour for unprivileged users

This mostly changes two things:
 - Only log to the container's logfile on start/stop/restart/execute
 - Call may_control() every time we use the API and return
   "Insufficient privileges" on failure.

NOTE: I didn't test every single one of those but I'm fairly confident
      in my copy/paste abilities and I confirmed they all build fine at least.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
15 files changed:
src/lxc/lxc_attach.c
src/lxc/lxc_cgroup.c
src/lxc/lxc_checkpoint.c
src/lxc/lxc_clone.c
src/lxc/lxc_console.c
src/lxc/lxc_create.c
src/lxc/lxc_destroy.c
src/lxc/lxc_freeze.c
src/lxc/lxc_info.c
src/lxc/lxc_kill.c
src/lxc/lxc_monitor.c
src/lxc/lxc_snapshot.c
src/lxc/lxc_stop.c
src/lxc/lxc_unfreeze.c
src/lxc/lxc_wait.c