commit | f783b5273d66d19a78705276a38ae68ef2e3e165 | [log] [tgz] |
---|---|---|
author | Jorge Lucangeli Obes <jorgelo@google.com> | Mon Mar 14 14:34:10 2016 -0700 |
committer | Jorge Lucangeli Obes <jorgelo@google.com> | Mon Mar 21 14:21:01 2016 -0700 |
tree | 6cc2402f12faffc14aca6b6e11a0f430ee43b7c5 | |
parent | a867c8204c1fe303f2de9a202e6454d230488a47 [diff] |
Fix use of SECURE_ALL_BITS/SECURE_ALL_LOCKS. Kernels 4.3+ define a new securebit (SECURE_NO_CAP_AMBIENT_RAISE), so using the SECURE_ALL_BITS and SECURE_ALL_LOCKS masks from newer kernel headers will return EPERM on older kernels. Detect this, and retry with the right mask for older (2.6.26-4.2) kernels. Also add a compile-time assert to make sure we identify these changes sooner going forward. Bug: 27632733 Change-Id: I6cf9c56fec222347575bd0d1147287aac6572e67