Wash the meat, dab dry and season with salt and pepper. Heat 2 tablespoons of oil in a flat roaster. Brown the legs on all sides, turn them in grated coconut and place them side by side in the roaster.
Cook in the preheated oven (electric cooker: 175 °C/ convection oven: 150 °C/ gas: level 2) for 45-60 minutes. For the chutney, peel the onion and cut into thin slices. Pour pineapple into a sieve, collect the juice.
Cut the pineapple into pieces. Heat 1 tablespoon of oil. Fry the pineapple and onion briefly. Stir in tomato paste. Deglaze with the pineapple juice. Bring to the boil and thicken with sauce thickener. Season with salt and pepper.
Prepare rice in boiling salted water according to package instructions. Arrange rice, legs and chutney on plates.