[pve-devel] applied: [PATCH common v4 06/27] tools: run fork: allow running code in parent after fork

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Nov 14 20:46:08 CET 2024


Am 14.11.24 um 16:07 schrieb Fiona Ebner:
> Add an option parameter to the run_fork() run_fork_with_timeout()
> functions, where an 'afterfork' subroutine that is run in the parent
> process after the fork can be specified. It is made subject to the
> timeout too, because the fork already started running at that point
> and an error in the 'afterfork' subroutine will take priority over an
> error in the child.
> 
> In preparation to add a helper to run a Perl subroutine in a user
> namespace, which, in turn, will be used for running the container
> backup subroutine for external providers inside a user namespace. That
> allows them to see the filesystem to back-up from the containers
> perspective and also improves security because of isolation.
> 
> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
> ---
> 
> New in v4.
> 
>  src/PVE/Tools.pm | 23 +++++++++++++++++------
>  1 file changed, 17 insertions(+), 6 deletions(-)
> 
>

applied, thanks!




More information about the pve-devel mailing list