ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference

 


mac_data.h

Overview



Structs and Unions


mac_module_data_element


Mac policy module data

struct mac_module_data_element { 
    unsigned int key_size; 
    unsigned int value_size; 
    unsigned int value_type; 
    char *key; 
    char *value; 
};  
Discussion

This structure specifies module data that is passed in to the TrustedBSD MAC policy module by the kernel module loader. The data is made of up key/value pairs where the key is always a string and the value is a string, binary data or array. An array may be a list of values (actually a similar set of key/value pairs, but in this case the keys are always null), and may also consist of a set of dictionaries, which in turn are made up of a list of key/value pairs.

Module data may be specified in the MAC policy module's Info.plist file as part of the OSModuleData dictionary.

E.g.

OSModuleDatafoobarBeerstypelagerNameAnchor SteamtypealeNameSierra Nevada Pale Ale


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2008-12-19