I'd like to announce a tool for the verification and searching of init.rc files 
for Android.

https://github.com/01org/initsearchtool

The search functionality is nice for verifying policy to init.rc files, etc.. 
However, the verification aspect of the tool is likely of most use to those on 
this list.

Under test (in the repo) you'll see a file called assert.xml:

    <test name='No world sockets' section='service'>
        <search>
            <keyword socket="[0-9]{3}[2-7]" />
        </search>
        <except>
            <keyword socket='logd stream 0666 logd logd' />
            <keyword socket='logdr seqpacket 0666 logd logd' />
            <keyword socket='logdw dgram 0222 logd logd' />
        </except>
    </test>

If anyone adds something to this test that violates this, it will fail when run:
$ ./isearch.py verify --assert=test/assert.xml test/init.aosp.rc
Failed test(No world sockets):
service(test/init.aosp.rc : 584): ueventd /sbin/ueventd
                socket(588) : danger 0666

This is still early code, so likely some bugs. Any bug reports can be filed on 
guthub and pull requests are always reviewed.

Thanks,
Bill



_______________________________________________
Seandroid-list mailing list
Seandroid-list@tycho.nsa.gov
To unsubscribe, send email to seandroid-list-le...@tycho.nsa.gov.
To get help, send an email containing "help" to 
seandroid-list-requ...@tycho.nsa.gov.

Reply via email to