The receive_fd_replace case shares almost no logic with the more general __receive_fd case, so split it into a separate function. BTW, I'm not sure if receive_fd_replace is such a useful primitive to start with, why not just open code it in seccomp?
The receive_fd_replace case shares almost no logic with the more general __receive_fd case, so split it into a separate function. BTW, I'm not sure if receive_fd_replace is such a useful primitive to start with, why not just open code it in seccomp?