[lxc-devel] [lxc/lxc] 5d4dfd: utils: move memfd_create() definition
GitHub
noreply at github.com
Thu Nov 9 00:28:24 UTC 2017
Branch: refs/heads/stable-2.0
Home: https://github.com/lxc/lxc
Commit: 5d4dfde904c31691a006ec46bef61f7a7e733530
https://github.com/lxc/lxc/commit/5d4dfde904c31691a006ec46bef61f7a7e733530
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/conf.c
M src/lxc/utils.h
Log Message:
-----------
utils: move memfd_create() definition
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 785c692d7b780eca67eb458ab7094c0a1bcca0ee
https://github.com/lxc/lxc/commit/785c692d7b780eca67eb458ab7094c0a1bcca0ee
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/utils.h
Log Message:
-----------
utils: add lxc_cloexec()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 9360c59db00c1ce83ff8f200a0987f46683ddd0f
https://github.com/lxc/lxc/commit/9360c59db00c1ce83ff8f200a0987f46683ddd0f
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/utils.c
M src/lxc/utils.h
Log Message:
-----------
utils: add lxc_make_tmpfile()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: df0f17ad197938c0f91c2332de9f659ba8f7beea
https://github.com/lxc/lxc/commit/df0f17ad197938c0f91c2332de9f659ba8f7beea
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/utils.c
M src/lxc/utils.h
Log Message:
-----------
utils: add lxc_getpagesize()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 76f40d1f95996b83d3e0dd9721bef017a7510d82
https://github.com/lxc/lxc/commit/76f40d1f95996b83d3e0dd9721bef017a7510d82
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/utils.c
M src/lxc/utils.h
Log Message:
-----------
utils: add lxc_safe_long_long()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 02139ac217417ea07dd8b0429ff2a6c6b73ac9fc
https://github.com/lxc/lxc/commit/02139ac217417ea07dd8b0429ff2a6c6b73ac9fc
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/utils.c
M src/lxc/utils.h
M src/tests/lxc-test-utils.c
Log Message:
-----------
utils: parse_byte_size_string()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 6b38945f9847ff2aad1a8b37b59d923cbc61f3eb
https://github.com/lxc/lxc/commit/6b38945f9847ff2aad1a8b37b59d923cbc61f3eb
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/utils.c
M src/lxc/utils.h
Log Message:
-----------
utils: add lxc_find_next_power2()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 584993fc69a416a119c88c4d5a6955e5ff1bce14
https://github.com/lxc/lxc/commit/584993fc69a416a119c88c4d5a6955e5ff1bce14
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/namespace.c
Log Message:
-----------
namespace: use lxc_getpagesize()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 36f1986c67629d3666060b272479e6d8c840b319
https://github.com/lxc/lxc/commit/36f1986c67629d3666060b272479e6d8c840b319
Author: Antonio Terceiro <terceiro at debian.org>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M templates/lxc-debian.in
Log Message:
-----------
lxc-debian: allow creating `testing` and `unstable`
Being able to create `testing` containers, regardless of what's the name
of the next stable, is useful in several contexts, included but not
limited to testing purposes. i.e. one won't need to explicitly switch to
`bullseye` once `buster` is released to be able to continue tracking
`testing`. While we are at it, let's also enable `unstable`, which is
exactly the same as `sid`, but there is no reason for not being able to.
Signed-off-by: Antonio Terceiro <terceiro at debian.org>
Commit: 15dab9e1c539e29047d47e5b08fa7c2eaa9040e0
https://github.com/lxc/lxc/commit/15dab9e1c539e29047d47e5b08fa7c2eaa9040e0
Author: Jordan Webb <jordemort at github.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/tools/lxc_execute.c
Log Message:
-----------
Call lxc_config_define_load from lxc_execute again
Signed-off-by: Jordan Webb <jordemort at github.com>
Commit: 971d7155fee28f0eb53ba8d4b8ab89858933f853
https://github.com/lxc/lxc/commit/971d7155fee28f0eb53ba8d4b8ab89858933f853
Author: adrian5 <adrian5 at users.noreply.github.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M config/init/common/lxc-net.in
Log Message:
-----------
Fix typo in lxc-net script
Signed-off-by: adrian5 <adrian5 at users.noreply.github.com>
Commit: 6946b25e61e22d23a9bc5b0ba3271425189a8840
https://github.com/lxc/lxc/commit/6946b25e61e22d23a9bc5b0ba3271425189a8840
Author: Jordan Webb <jordemort at github.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/tools/lxc_execute.c
Log Message:
-----------
Add missing lxc_container_put
Signed-off-by: Jordan Webb <jordemort at github.com>
Commit: 393877502a16ecf4009b294a558187bd69c65c60
https://github.com/lxc/lxc/commit/393877502a16ecf4009b294a558187bd69c65c60
Author: Antonio Terceiro <terceiro at debian.org>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M templates/lxc-debian.in
Log Message:
-----------
lxc-debian: don't write C.* locales to /etc/locale.gen
Doing that confuses locale generation. lxc-ubuntu does the same check
Signed-off-by: Antonio Terceiro <terceiro at debian.org>
Commit: 130814ed904677511b8656b9fe7369afe6bf825f
https://github.com/lxc/lxc/commit/130814ed904677511b8656b9fe7369afe6bf825f
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/attach.c
Log Message:
-----------
attach: correctly handle namespace inheritance
When attaching to a container's namespaces we did not handle the case where we
inherited namespaces correctly. In essence, liblxc on start records the
namespaces the container was created with in the handler. But it only records
the clone flags that were passed to clone() and doesn't record the namespaces
we e.g. inherited from other containers. This means that attach only ever
attached to the clone flags. But this is only correct if all other namespaces
not recorded in the handler refer to the namespaces of the caller. However,
this need not be the case if the container has inherited namespaces from
another container. To handle this case we need to check whether caller and
container are in the same namespace. If they are, we know that things are all
good. If they aren't then we need to attach to these namespaces as well.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 89d56cc6831687d366b3e0e67702bc1afd8dc6aa
https://github.com/lxc/lxc/commit/89d56cc6831687d366b3e0e67702bc1afd8dc6aa
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfsng.c
Log Message:
-----------
cgfsng: fix cgroup2 detection
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 40b94eceb9b0b7caea5b2761c0b0c86ad0214147
https://github.com/lxc/lxc/commit/40b94eceb9b0b7caea5b2761c0b0c86ad0214147
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfs.c
M src/lxc/cgroups/cgfsng.c
M src/lxc/cgroups/cgroup.c
M src/lxc/conf.c
M src/lxc/conf.h
Log Message:
-----------
cgroups: enable container without CAP_SYS_ADMIN
In case cgroup namespaces are supported but we do not have CAP_SYS_ADMIN we
need to mount cgroups for the container. This patch enables both privileged and
unprivileged containers without CAP_SYS_ADMIN.
Closes #1737.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: b3784041c3da9619b04da009637416b0071f73d0
https://github.com/lxc/lxc/commit/b3784041c3da9619b04da009637416b0071f73d0
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/tools/lxc_start.c
Log Message:
-----------
lxc-start: remove unnecessary checks
The console struct is internal and liblxc takes care of creating paths.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: b703a04341bb6a4145b3e28f7cc1958f1863591c
https://github.com/lxc/lxc/commit/b703a04341bb6a4145b3e28f7cc1958f1863591c
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/start.c
Log Message:
-----------
start: close non-needed file descriptors
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: b25fbb6611777b4d4f1c8f13dce70ed8e218be48
https://github.com/lxc/lxc/commit/b25fbb6611777b4d4f1c8f13dce70ed8e218be48
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/commands.c
M src/lxc/network.c
M src/lxc/network.h
M src/lxc/start.c
M src/lxc/start.h
Log Message:
-----------
handler: make name argument const
There's no obvious need to strdup() the name of the container in the handler.
We can simply make this a pointer to the memory allocated in
lxc_container_new().
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 1016c1e0692da03124766431f40316c12ad05032
https://github.com/lxc/lxc/commit/1016c1e0692da03124766431f40316c12ad05032
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/start.c
Log Message:
-----------
start: close data socket in parent
Brings the number of open fds in the monitor process for a standard container
without ttys down to 17.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: d0d3ce9bb2e923f8b390ae6418e689687a2e586f
https://github.com/lxc/lxc/commit/d0d3ce9bb2e923f8b390ae6418e689687a2e586f
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/monitor.c
Log Message:
-----------
monitor: do not log useless warnings
lxc-monitord is deprecated so this is expected to fail.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 12f39bdb6509717126532a00668f36b3d681b8a9
https://github.com/lxc/lxc/commit/12f39bdb6509717126532a00668f36b3d681b8a9
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/network.c
Log Message:
-----------
network: reap child in all cases
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 7f586ee97056bff3fcfbfd588c37aed6a0376125
https://github.com/lxc/lxc/commit/7f586ee97056bff3fcfbfd588c37aed6a0376125
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/conf.c
Log Message:
-----------
conf: reap child in all cases
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 326c7f4738e429870bd0a9cd9acdbdb7029d5181
https://github.com/lxc/lxc/commit/326c7f4738e429870bd0a9cd9acdbdb7029d5181
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/storage/storage.h
Log Message:
-----------
storage: switch to ext4 as default filesystem
Closes #1899.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 15b0967bbfda8a6f6779f626865907eea8bbc2c3
https://github.com/lxc/lxc/commit/15b0967bbfda8a6f6779f626865907eea8bbc2c3
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/tools/lxc_create.c
Log Message:
-----------
tools: fix help output of lxc-create
Closes #1899.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 044640874aa49c3a4f62f8dd8ab351b42433aa11
https://github.com/lxc/lxc/commit/044640874aa49c3a4f62f8dd8ab351b42433aa11
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/attach.c
M src/lxc/attach.h
Log Message:
-----------
attach: handle namespace inheritance
We need to have lxc_attach() distinguish between a caller specifying specific
namespaces to attach to and a caller not requesting specific namespaces. The
latter is taken by lxc_attach() to mean that all namespaces will be attached.
This also needs to include all inherited namespaces.
Closes #1890.
Closes #1897.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: f2cacc25c6f1541eaa857f267e95b4093b9f3c89
https://github.com/lxc/lxc/commit/f2cacc25c6f1541eaa857f267e95b4093b9f3c89
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfsng.c
Log Message:
-----------
cgroups/cgfsng: keep mountpoint intact
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: a409c1b3b01dcb9888a8f688fc331f8b1034b9d5
https://github.com/lxc/lxc/commit/a409c1b3b01dcb9888a8f688fc331f8b1034b9d5
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfsng.c
Log Message:
-----------
cgroups/cgfsng: cgfsns_chown() -> cgfsng_chown()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 4f6758e953c54a18b1c6d2fbd959324244e1192f
https://github.com/lxc/lxc/commit/4f6758e953c54a18b1c6d2fbd959324244e1192f
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfsng.c
Log Message:
-----------
cgroups/cgfsng: support MS_READONLY with cgroup ns
If we lack CAP_SYS_ADMIN this is really useful.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 614f917a7ee4d91737005eaf3e14a8e562bab4e3
https://github.com/lxc/lxc/commit/614f917a7ee4d91737005eaf3e14a8e562bab4e3
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/log.c
Log Message:
-----------
log: check for i/o error with vsnprintf()
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: a485242028df1656da4e90a80e781058bbe21b61
https://github.com/lxc/lxc/commit/a485242028df1656da4e90a80e781058bbe21b61
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfsng.c
Log Message:
-----------
cgroupfs/cgfsng: tweak logging
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 8353971fd36eea36f326b4727a457656224b323d
https://github.com/lxc/lxc/commit/8353971fd36eea36f326b4727a457656224b323d
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfsng.c
Log Message:
-----------
cgroups/cgfsng: remove is_lxcfs()
We don't need to parse fuse.lxcfs entries.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: eb768a6e95439774cc5a6c85391154a180421b02
https://github.com/lxc/lxc/commit/eb768a6e95439774cc5a6c85391154a180421b02
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfsng.c
Log Message:
-----------
cgroups/cgfsng: fix get_controllers() for cgroup2
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 0a5c220e1d9af41a5e39eff8956b466207ac1d99
https://github.com/lxc/lxc/commit/0a5c220e1d9af41a5e39eff8956b466207ac1d99
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/cgroups/cgfsng.c
M src/lxc/cgroups/cgroup_utils.c
M src/lxc/cgroups/cgroup_utils.h
Log Message:
-----------
cgroupfs/cgfsng: improve cgroup2 handling
This fixes a bunch of bugs.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 51d1ec4f9e6444e38c8e713249a86d0a36641d0b
https://github.com/lxc/lxc/commit/51d1ec4f9e6444e38c8e713249a86d0a36641d0b
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M config/templates/archlinux.common.conf.in
Log Message:
-----------
config: remove SIGRTMIN+14 as lxc.signal.stop
We want to be able to SIGKILL an Archlinux container.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: b07d34459e17622641be42090fbec74ed16bc05c
https://github.com/lxc/lxc/commit/b07d34459e17622641be42090fbec74ed16bc05c
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/commands.c
Log Message:
-----------
commands: non-functional changes
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: d4f78df371ade7ac6f63bda09c2cc525da086e51
https://github.com/lxc/lxc/commit/d4f78df371ade7ac6f63bda09c2cc525da086e51
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/console.c
Log Message:
-----------
console: non-functional changes
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 756e65cc19e4f879ecd00f2ca3a888bbcfa8cfde
https://github.com/lxc/lxc/commit/756e65cc19e4f879ecd00f2ca3a888bbcfa8cfde
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2017-11-09 (Thu, 09 Nov 2017)
Changed paths:
M src/lxc/console.c
Log Message:
-----------
console: non-functional changes
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Compare: https://github.com/lxc/lxc/compare/3feb8712a7f9...756e65cc19e4
More information about the lxc-devel
mailing list