"Bits Available for Classification and Compartment Components" in Trusted Solaris Label Administration documents how to create and manage large numbers of compartments in a label_encodings file.