]> git.ipfire.org Git - thirdparty/lxc.git/commit
tree-wide: use container_uses_namespace() helper
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Fri, 26 Jan 2024 16:01:46 +0000 (17:01 +0100)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Fri, 26 Jan 2024 16:05:46 +0000 (17:05 +0100)
commit64341ce7b7b6b1eadbe65731d6074b8ac321f6c3
treecd6238d2a4217978c724e63b3d75d3f46933892c
parent1fbe1b0813ac45a5f80142c55b1bb2aa8ada6c48
tree-wide: use container_uses_namespace() helper

No functional changes.

Will be useful in future support for an isolated
user namespaces [1]. I have already played with
that locally and found that in the LXC codebase
we have a bunch of different ways to ensure if
a container uses user namespaces or not.

This commit contains a trivial conversion from
an open-coded version of the container_uses_namespace()
helper to an actual use of the helper.

[1] https://lpc.events/event/17/contributions/1569/

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/lxc/conf.c
src/lxc/network.c
src/lxc/start.c