[lxc/lxc] 0b932f: conf: rework lxc specific mount option parsing

0 views
Skip to first unread message

Stéphane Graber

unread,
Apr 21, 2021, 8:05:31 PMApr 21
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 0b932f9ded6978a57568ed27e51c44ad2438de81
https://github.com/lxc/lxc/commit/0b932f9ded6978a57568ed27e51c44ad2438de81
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

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

Log Message:
-----------
conf: rework lxc specific mount option parsing

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


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

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

Log Message:
-----------
conf: add first, trivial support for idmapped mounts

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


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

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

Log Message:
-----------
confile: parse idmap=<path> mount option for rootfs

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


Commit: 031e0285faa150d1e2f80ab3315a1095d26e7992
https://github.com/lxc/lxc/commit/031e0285faa150d1e2f80ab3315a1095d26e7992
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

Changed paths:
M configure.ac
M src/lxc/mount_utils.h
M src/lxc/syscall_numbers.h
M src/lxc/syscall_wrappers.h

Log Message:
-----------
mount_utils: add support for mount_setattr() syscall

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


Commit: 79defd88334c1a596e9ceb35af0aa400b66a9ac1
https://github.com/lxc/lxc/commit/79defd88334c1a596e9ceb35af0aa400b66a9ac1
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

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

Log Message:
-----------
storage: keep a reference to lxc_rootfs in lxc_storage

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


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

Changed paths:
M src/lxc/mount_utils.c
M src/lxc/mount_utils.h

Log Message:
-----------
mount_utils: add helper to determine whether new mount api supports bind mounts

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


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

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

Log Message:
-----------
conf: support idmapping directories

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


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

Changed paths:
M src/lxc/mount_utils.c
M src/lxc/mount_utils.h

Log Message:
-----------
mount_utils: add two detached mount helpers

They'll come in handy in the future.

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


Commit: 26ad2c6f3aaf2e2c2f0b243342ff9bb5075672e7
https://github.com/lxc/lxc/commit/26ad2c6f3aaf2e2c2f0b243342ff9bb5075672e7
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

Changed paths:
M src/lxc/start.c

Log Message:
-----------
start: documented idmapped mounts

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


Commit: 657ed14a989b0e7883cca0f6508a9350b38c1944
https://github.com/lxc/lxc/commit/657ed14a989b0e7883cca0f6508a9350b38c1944
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

Changed paths:
M src/lxc/conf.c

Log Message:
-----------
conf: verify that the rootfs can support idmapped mounts

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


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

Changed paths:
M src/lxc/attach.c

Log Message:
-----------
attach: visually separate pids from fds during initalization

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


Commit: 2533995e790b24b056e6078834b21ecc52be9f1a
https://github.com/lxc/lxc/commit/2533995e790b24b056e6078834b21ecc52be9f1a
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

Changed paths:
M src/lxc/attach.c

Log Message:
-----------
attach: use correct lxc_namespace_t type

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


Commit: 389eb7c6da942847d16cb4d143b713ae110a596d
https://github.com/lxc/lxc/commit/389eb7c6da942847d16cb4d143b713ae110a596d
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

Changed paths:
M src/lxc/lsm/apparmor.c

Log Message:
-----------
apparmor: handle on-exec

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


Commit: 8e05f350182132b3d9d84d7f133172d6574e30f1
https://github.com/lxc/lxc/commit/8e05f350182132b3d9d84d7f133172d6574e30f1
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

Changed paths:
M src/lxc/conf.c

Log Message:
-----------
conf: tweak parse_lxc_mntopts()

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


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

Changed paths:
M src/lxc/conf.c

Log Message:
-----------
conf: don't allow idmapped lxc.mount.{entry,fstab} just yet

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


Commit: c11af9735f59a542b12c5623a7e8c87f95895e92
https://github.com/lxc/lxc/commit/c11af9735f59a542b12c5623a7e8c87f95895e92
Author: Stéphane Graber <stgr...@ubuntu.com>
Date: 2021-04-21 (Wed, 21 Apr 2021)

Changed paths:
M configure.ac
M src/lxc/attach.c
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/confile.c
M src/lxc/lsm/apparmor.c
M src/lxc/mount_utils.c
M src/lxc/mount_utils.h
M src/lxc/start.c
M src/lxc/storage/dir.c
M src/lxc/storage/storage.c
M src/lxc/storage/storage.h
M src/lxc/syscall_numbers.h
M src/lxc/syscall_wrappers.h

Log Message:
-----------
Merge pull request #3709 from brauner/2021-03-17/idmapped_mounts_v2

Initial support for idmapped mounts


Compare: https://github.com/lxc/lxc/compare/12cf9f5a56d5...c11af9735f59
Reply all
Reply to author
Forward
0 new messages