[lxc/lxc] 930ade: dir: fix rootfs mounting

0 views
Skip to first unread message

Christian Brauner

unread,
Apr 29, 2021, 9:59:51 AMApr 29
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/stable-4.0
Home: https://github.com/lxc/lxc
Commit: 930aded51c80e0501e788d675f6a70c74a6ee939
https://github.com/lxc/lxc/commit/930aded51c80e0501e788d675f6a70c74a6ee939
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
dir: fix rootfs mounting

We need to be able to lookup symlinks and allow xdev.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: c910e00de12091d59097c4ab596d262be9c0f56b
https://github.com/lxc/lxc/commit/c910e00de12091d59097c4ab596d262be9c0f56b
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M configure.ac

Log Message:
-----------
configure: fix function detection

Fixes: #3809
Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 3b59ddb67deb2136808065407913b3a3b5f5a242
https://github.com/lxc/lxc/commit/3b59ddb67deb2136808065407913b3a3b5f5a242
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/criu.c
M src/lxc/lxccontainer.c
M src/lxc/start.c
M src/lxc/storage/rsync.c
M src/lxc/storage/storage.c

Log Message:
-----------
conf: stash lxc_storage into lxc_rootfs and bind to its lifetime

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 16fca1258c355851fc0b7a3ff98ef5d791fec082
https://github.com/lxc/lxc/commit/16fca1258c355851fc0b7a3ff98ef5d791fec082
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/confile.c
M src/lxc/storage/dir.c

Log Message:
-----------
conf: move all mount options into struct lxc_mount_options

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 5f5df0dcec5938bfc4c200367375cef0bf2c58c1
https://github.com/lxc/lxc/commit/5f5df0dcec5938bfc4c200367375cef0bf2c58c1
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/start.c

Log Message:
-----------
conf: s/lxc_rootfs_prepare/lxc_rootfs_init/g

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 35a9c96cb85be41b555a2408ffd58784b4fdf082
https://github.com/lxc/lxc/commit/35a9c96cb85be41b555a2408ffd58784b4fdf082
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/mount_utils.c
M src/lxc/start.c
M src/lxc/storage/dir.c

Log Message:
-----------
conf: improve idmapped mounts support

Setting up a detached idmapped mount is a privileged operation, mounting
it doesn't have to be.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 06b14efd10340cb7165ed7738753cba7f29fd55a
https://github.com/lxc/lxc/commit/06b14efd10340cb7165ed7738753cba7f29fd55a
Author: Evgeny Vereshchagin <evv...@ya.ru>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M configure.ac
M src/tests/Makefile.am

Log Message:
-----------
build-system: add --enable-fuzzers

Signed-off-by: Evgeny Vereshchagin <evv...@ya.ru>


Commit: bf1e52ab87bb8afc6d03d389b8ddb6659949dc91
https://github.com/lxc/lxc/commit/bf1e52ab87bb8afc6d03d389b8ddb6659949dc91
Author: Evgeny Vereshchagin <evv...@ya.ru>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M .github/workflows/sanitizers.sh
M .github/workflows/sanitizers.yml
M src/tests/oss-fuzz.sh

Log Message:
-----------
ci: switch to --enable-fuzzers

Signed-off-by: Evgeny Vereshchagin <evv...@ya.ru>


Commit: a913759eb1695ab9c741c3de697b44fdca9baad0
https://github.com/lxc/lxc/commit/a913759eb1695ab9c741c3de697b44fdca9baad0
Author: Evgeny Vereshchagin <evv...@ya.ru>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/Makefile.am
M src/lxc/log.c
M src/lxc/utils.h
M src/tests/lxc-test-utils.c

Log Message:
-----------
log: create log files in "fuzzing" mode if it's called outside fuzz targets

to make it possible to run the fuzzers along with the other tests

Signed-off-by: Evgeny Vereshchagin <evv...@ya.ru>


Commit: b94e81426b7c7ad3cb4fc15b651c7fa10d5542b3
https://github.com/lxc/lxc/commit/b94e81426b7c7ad3cb4fc15b651c7fa10d5542b3
Author: Evgeny Vereshchagin <evv...@ya.ru>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/tests/Makefile.am
A src/tests/lxc-test-fuzzers

Log Message:
-----------
tests: run the fuzzers along with the other tests

Signed-off-by: Evgeny Vereshchagin <evv...@ya.ru>


Commit: 3a07cd4220f3ca8df233509168feec4327189980
https://github.com/lxc/lxc/commit/3a07cd4220f3ca8df233509168feec4327189980
Author: Evgeny Vereshchagin <evv...@ya.ru>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M configure.ac
M src/tests/oss-fuzz.sh

Log Message:
-----------
build-system: turn off lto=thin when building the fuzzers

With lto=thin the fuzzers fail as soon as they start with
```
ERROR: The size of coverage PC tables does not match the
number of instrumented PCs. This might be a compiler bug,
please contact the libFuzzer developers.
Also check https://bugs.llvm.org/show_bug.cgi?id=34636
for possible workarounds (tl;dr: don't use the old GNU ld)
```

Signed-off-by: Evgeny Vereshchagin <evv...@ya.ru>


Commit: 73bac9c1afc8b00df5031389dc841d015cb39fce
https://github.com/lxc/lxc/commit/73bac9c1afc8b00df5031389dc841d015cb39fce
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
dir: use mnt_opts->data instead of mntdata

Fixes: https://launchpadlibrarian.net/535845165/buildlog_ubuntu-focal-s390x.lxc_1%3A4.0.6+master~20210427-2321-0ubuntu1~focal_BUILDING.txt.gz
Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 4881d9999ab39dc432ca163894067ba69a1cc050
https://github.com/lxc/lxc/commit/4881d9999ab39dc432ca163894067ba69a1cc050
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
storage/dir: bdev->dest can't be empty

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 6cf21d91967ec32a307ebe70ffd0e5c3be8f8c5b
https://github.com/lxc/lxc/commit/6cf21d91967ec32a307ebe70ffd0e5c3be8f8c5b
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
storage/dir: use clear error messages

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 36902d078a1fa78dccd2429393efd0499ef5e772
https://github.com/lxc/lxc/commit/36902d078a1fa78dccd2429393efd0499ef5e772
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
storage/dir: retrieve proper source path later

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: af25ca3080cbcffd7271d73b9b49a9a436be7603
https://github.com/lxc/lxc/commit/af25ca3080cbcffd7271d73b9b49a9a436be7603
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
storage/dir: use "source" and "target" as terms

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 4a398f8c60b6c7db1bcce6b55fc954a5a4487b74
https://github.com/lxc/lxc/commit/4a398f8c60b6c7db1bcce6b55fc954a5a4487b74
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
storage/dir: source can't be empty

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 510026de9cf75eb7a733c1de8035cc43f4da065e
https://github.com/lxc/lxc/commit/510026de9cf75eb7a733c1de8035cc43f4da065e
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
storage/dir: remove error handling down

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 28602de3a87dca7c9ca7287b54b480b19b17c16c
https://github.com/lxc/lxc/commit/28602de3a87dca7c9ca7287b54b480b19b17c16c
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M src/lxc/storage/dir.c

Log Message:
-----------
storage/dir: cleanup mount code

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: eece538604dc9072aad0e41f6aad377c38527343
https://github.com/lxc/lxc/commit/eece538604dc9072aad0e41f6aad377c38527343
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-29 (Thu, 29 Apr 2021)

Changed paths:
M doc/api-extensions.md
M src/lxc/api_extensions.h

Log Message:
-----------
api-extensions: add entry for idmapped_mounts

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Compare: https://github.com/lxc/lxc/compare/c1831266cb93...eece538604dc
Reply all
Reply to author
Forward
0 new messages