commit | f1f62a748d7c67361e91e32d26abafbfb03eeee4 | [log] [tgz] |
---|---|---|
author | Andrew G. Morgan <morgan@kernel.org> | Fri Jan 03 14:00:22 2020 -0800 |
committer | Andrew G. Morgan <morgan@kernel.org> | Fri Jan 03 14:00:22 2020 -0800 |
tree | 6006486eb4380a4fff648fd4232a4eabeb14edc7 | |
parent | 872d2ee59e29644d73b7530a27404a3d5c8ee42d [diff] |
Refactor the way we do the psx linkage in libcap. Since we now have a serialized (linker trick) to initialize libcap we can reliably compute the number of capabilities of the running kernel in a race free way. Export the found number of capabilities with the cap_max_bits() function. This is also what we now use in both C and Go to define [all]=[eip]. In Go the equivalent function is cap.MaxBits(). Signed-off-by: Andrew G. Morgan <morgan@kernel.org>