Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If we are running with a PID namespace, we have a shim process by default. We have code that sets the name of this process to `sinit` by: * Overwriting the value of argv[0] * Using PR_SET_NAME Both are necessary as PR_SET_NAME only affects the value from PR_GET_NAME. In this code, unsafe.StringHeader is now deprecated. Rewrite using the pattern that takes an unsafe.Slice from an unsafe.StringData to get the raw bytes for the string os.Args[0]. See: golang/go#53003 (comment) Signed-off-by: Dave Dykstra <2129743+DrDaveD@users.noreply.github.com>
- Loading branch information