Well, anything calling syscall.Unshare() is 100% linux specific anyway. I don't know of any other OS that has it. Maybe the whole thing should be moved to a different file and just called from here.