Grind together coconut, green chiles and salt to a fine paste. Check consistency and add water, if needed. Heat oil and add mustard seeds, black gram dal and red chiles. When brown, pour over chutney.