Allright, here's the same patch again, with the query issue fixed. Also, I've implemented the function which creates the cache (main processing loop), and renamed some things. I've clarified the specification for record.parse(), and added some things to parse_info structure. ---- This can become functional as soon as I implement the record parse/print functions, and put the database_config array into the semanage handle. Then a function to write the cache on commit (which is trivial)... and handlers to load things into policy, based on dbase_iterate().