- 13 May, 2019 7 commits
-
-
Christian Brauner authored
Use %m instead of strerror() when available
-
Rachid Koucha authored
Suppressed error prone semicolon in SYSTRACE() macro. Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
Rachid Koucha authored
Use %m under HAVE_M_FORMAT instead of strerror() Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
Christian Brauner authored
initutils: Fix memleak on realloc failure
-
Christian Brauner authored
Fix returning -1 in functions with return type bool
-
Christian Brauner authored
Config: check for %m availability
-
Rachid Koucha authored
GLIBC supports %m to avoid calling strerror(). Using it saves some code space. ==> This check will define HAVE_M_FORMAT to be use wherever possible (e.g. log.h) Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
- 12 May, 2019 1 commit
-
-
Rikard Falkeborn authored
Signed-off-by:Rikard Falkeborn <rikard.falkeborn@gmail.com>
-
- 11 May, 2019 3 commits
-
-
Rikard Falkeborn authored
Returning -1 in a function with return type bool is the same as returning true. Change to return false to indicate error properly. Detected with cppcheck. Signed-off-by:Rikard Falkeborn <rikard.falkeborn@gmail.com>
-
Rikard Falkeborn authored
Returning -1 in a function with return type bool is the same as returning true. Change to return false to indicate error properly. Detected with cppcheck. Signed-off-by:Rikard Falkeborn <rikard.falkeborn@gmail.com>
-
Rikard Falkeborn authored
Since _exit() will terminate, the return statement is dead code. Also, returning -1 from a function with bool as return type is confusing. Detected with cppcheck. Signed-off-by:Rikard Falkeborn <rikard.falkeborn@gmail.com>
-
- 10 May, 2019 12 commits
-
-
Christian Brauner authored
criu: Use -v4 instead of -vvvvvv
-
Radostin Stoyanov authored
CRIU has only 4 levels of verbosity (errors, warnings, info, debug). Thus, using `-v4` is more appropriate. https://criu.org/LoggingSigned-off-by:
Radostin Stoyanov <rstoyanov1@gmail.com>
-
Christian Brauner authored
New --bbpath option and unecessary --rootfs checks
-
Rachid Koucha authored
As suggested during the review. Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
Christian Brauner authored
lxccontainer: do not display if missing privileges
-
Rachid Koucha authored
lxc-ls without root privileges on privileged containers should not display information. In lxc_container_new(), ongoing_create()'s result is not checked for all possible returned values. Hence, an unprivileged user can send command messages to the container's monitor. For example: $ lxc-ls -P /.../tests -f NAME STATE AUTOSTART GROUPS IPV4 IPV6 UNPRIVILEGED ctr - 0 - - - false $ sudo lxc-ls -P /.../tests -f NAME STATE AUTOSTART GROUPS IPV4 IPV6 UNPRIVILEGED ctr RUNNING 0 - 10.0.3.51 - false After this change: $ lxc-ls -P /.../tests -f <-------- No more display without root privileges $ sudo lxc-ls -P /.../tests -f NAME STATE AUTOSTART GROUPS IPV4 IPV6 UNPRIVILEGED ctr RUNNING 0 - 10.0.3.37 - false $ Signed-off-by:
Rachid Koucha <rachid.koucha@gmail.com> Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
Rachid Koucha authored
. Add the "--bbpath" option to pass an alternate busybox pathname instead of the one found from ${PATH}. . Take this opportunity to add some formatting in the usage display . As a try is done to pick rootfs from the config file and set it to ${path}/rootfs, it is unnecessary to make it mandatory Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
Stéphane Graber authored
coding style: update
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
network: Adds mtu support for phys and macvlan types
-
Christian Brauner authored
Redirect error messages to stderr
-
Rachid Koucha authored
Some error messages were not redirected to stderr. Moreover, do "exit 0" instead of "exit 1" when "help" option is passed. Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
- 09 May, 2019 13 commits
-
-
Stéphane Graber authored
start: use CLONE_PIDFD
-
Christian Brauner authored
Use CLONE_PIDFD when possible. Note the clone() syscall ignores unknown flags which is usually a design mistake. However, for us this bug is a feature since we can just pass the flag along and see whether the kernel has given us a pidfd. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Thomas Parrott authored
This will allow LXD to check for custom MTU support for phys and macvlan devices. Signed-off-by:Thomas Parrott <thomas.parrott@canonical.com>
-
Thomas Parrott authored
The phys devices will now have their original MTUs recorded at start and restored at shutdown. This is to protect the original phys device from having any container level MTU customisation being applied to the device once it is restored to the host. Signed-off-by:Thomas Parrott <thomas.parrott@canonical.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Thomas Parrott authored
Signed-off-by:Thomas Parrott <thomas.parrott@canonical.com>
-
Stéphane Graber authored
clone: add infrastructure for CLONE_PIDFD
-
Christian Brauner authored
Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com> Co-developed-by:
David Howells <dhowells@redhat.com> Signed-off-by:
David Howells <dhowells@redhat.com>
-
Stéphane Graber authored
utils: improve switch_to_ns()
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Update Japanese lxc.container.conf(5)
-
KATOH Yasufumi authored
Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp> Reviewed-by:
Hiroaki Nakamura <hnakamur@gmail.com>
-
- 08 May, 2019 1 commit
-
-
KATOH Yasufumi authored
This is the translation for the following description: - lxc.seccomp.notify.proxy (commit 8a643759) - host side veth device static routes (commit d4a7da46) - IPVLAN (commit c9f52382) - Layer 2 proxy mode (commit 6509154d) - gateway device route mode (commit a2f9a670) and fix typo in English man page. Signed-off-by:
KATOH Yasufumi <karma@jazz.email.ne.jp>
-
- 07 May, 2019 3 commits
-
-
Christian Brauner authored
Devices created in rootfs instead of rootfs/dev
-
Rachid Koucha authored
Added /dev in the mknod commands. Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
Christian Brauner authored
network: Re-works veth gateway logic
-