Simplify POSIX capabilities to bitmask

Remove unnecessary overhead and complexity of converting a list of bit offsets to an array of integers, iterating over it, validating the inputs (which are valid, otherwise the device doesn't boot), then doing the bit-shifting.
Just do the bit-shifting.

Flag: EXEMPT refactor
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b5d3ccd6bb47dbe984471bb7832304236110bba2)
Merged-In: Ic5dc21657a997ed000104ff713a96a51b2c06d5f
Change-Id: Ic5dc21657a997ed000104ff713a96a51b2c06d5f
1 file changed