I'm using apol to help me understand my SEAndroid sepolicy file. I'd also like to use apol's capability to search file contexts, but an index file is needed. I'm wondering what would be the easiest way to generate a file context index for the SEAndroid images I'm experimenting with.
Off the top of my head, I can think a few different ways to do this, including: 1) add secmds (along with libsefs, etc.) to what's in system/core/toolbox, then run indexcon from inside the live device; 2) install yaffs2 kernel support in my SELinux build environment, mount system.img (perhaps after using simg2img), etc. and run indexcon from the build environment; 3) generate an index at build time at the same time the labeling is done; 4) others? Am I missing an obvious way of doing this? Are there any tools hidden somewhere in the build tree that might make one of the above approaches easier? Thanks for your insight and suggestions, Paul
