Assuming your device driver is interacted with via a device file, I
think the cleanest of currently in-use mechanisms is to create a unix
group for your capability and set the device file to be owned by root
but with that as the group and as appropriate read or read/write
permissions to the group. Then you need to find where the package
permissions are converted to unix group assignments.
An uglier way to do it, but perhaps necessary if there's no device
file, is to hard code the value of the group id and check that
programmatically in the kernel. This is how android implements
internet permission with a tiny kernel patch.
The grep feature on
android.git.kernel.org is handy (or grep -R on
your local repos). Start grepping for a permission name, then
whatever identifiers you find from that such as a group name.