doc: Add Japanese lxc.container.conf(5), lxc.system.conf(5) and update lxc.conf(5)

* update for commit 55fc19a1042bca36ae431cb4a51c2abc0ca4d801
* fix typo in English lxc.system.conf(5)

Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
Acked-by: Stéphane Graber <stgraber@ubuntu.coM>
cgroupfs: get rid of the redundant error info

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
cgroupfs: need the full path to setup cpuset

Function file_exists() needs a absolute full path, but we are using
current_entire_path which is not. It will get the wrong result from
file_exists() and case Segmentation fault when we fopen a non-exist
file and try to fscanf from it.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
doc: Add manpage for lxc-config

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Revert "cgroupfs: need the full path to setup cpuset"

This reverts commit 47f5ede0ec09b393779a7755aa36dc665e2e8fa5.
Revert "cgroupfs: get rid of the redundant error info"

This reverts commit a8117b3361c9caf1397f4dc9bbb5e6de3af3cdff.
Revert "cgroup.c: clean up for handle_cgroup_settings"

This reverts commit 032e28b7675fd03dc19c7af0182ddb93807c2f96.
Revert "bionic: Replace rindex by strrchr"

This reverts commit 86f0eb65a0abc651c656ff602b823ba693f675c5.
Revert "cgroupfs: support older kernels without cgroup.clone_children"

This reverts commit 0a4d93787d4be78dc5e2873cf7c605c01d383792.
Drop runapitests.sh

This script is outdated and unused.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
cgm_get: support NULL value

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
lxc-clone: support unprivileged use

This also fixes unprivileged use of lxc-snapshot and lxc-rename.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
get_mapped_rootid: avoid using (uid_t) -1

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
get_mapped_rootid: fix description

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
tests: Update lxc-test-unpriv

Update lxc-test-unpriv to be a bit simpler and more reliable.

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
tests: Fix cleanup in lxc-test-unpriv

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
tests: Rework lxc-test-usernic

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
tests: Tweak lxc-test-ubuntu to be faster

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
tests: Speed up lxc-test-usernic

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
tests: Fix shutdown test

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