Text this: FlexC: Flexible Compartmentalization Through Automatic Policy Generation