]> git.ipfire.org Git - thirdparty/systemd.git/commit
namespace-util: introduce userns_enter_and_pin() helper
authorMike Yuan <me@yhndnzj.com>
Wed, 8 Jan 2025 11:43:05 +0000 (12:43 +0100)
committerMike Yuan <me@yhndnzj.com>
Sat, 11 Jan 2025 14:53:14 +0000 (15:53 +0100)
commit8c2c8235a64be93e9e8d18927ad997efda156a95
tree9b4f88aa9dead4b847d6de02d902dd4172a05450
parentc7704ecd0425a7ba5230275bdd4f06f1713c5cf8
namespace-util: introduce userns_enter_and_pin() helper

which generalizes forking a process into userns and freeze()

Addresses https://github.com/systemd/systemd/pull/35833/files#r1905508153
src/basic/namespace-util.c
src/basic/namespace-util.h
src/basic/uid-range.c