The Minangkabau custom of freely electing their leaders provided the model for rulership elections in modern federal Malaysia .
In truth , however , federal elections in Malaysia are rife with nepotism and corruption .