Skip to content

Refactor gitaly-init-cgroup's permission exec cmd

Emily Chui requested to merge echui-gitaly-init-cgroups-os-chown into master

What does this MR do?

The original implementation of the tool relied on os.exec to spawn a new process, which necessitated the creation of a shell. However, by refactoring to utilize os.chown, the need for a shell is eliminated, allowing the tool to be built using a scratch image.

Related issues

Part of Support Gitaly on Kubernetes (&13623)

Edited by Emily Chui

Merge request reports