]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace-util: Do is_our_namespace() checks first in namespace_enter()
authorDaan De Meyer <daan@amutable.com>
Tue, 17 Feb 2026 14:36:00 +0000 (15:36 +0100)
committerDaan De Meyer <daan@amutable.com>
Tue, 17 Feb 2026 16:52:17 +0000 (17:52 +0100)
commit8d1183539711f653ffe569cdbc15efddb515f8c4
tree735d8a62083ef0d6cb12d8df597df8979c40e94e
parent3791710f445fdebf661edc7889432770bee09f61
namespace-util: Do is_our_namespace() checks first in namespace_enter()

These checks may rely on /proc on older kernels which we could lose access
to by joining namespaces so let's do all the checks first and then join
namespaces.
src/basic/namespace-util.c