aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2020-01-03 14:00:22 -0800
committerAndrew G. Morgan <morgan@kernel.org>2020-01-03 14:00:22 -0800
commitf1f62a748d7c67361e91e32d26abafbfb03eeee4 (patch)
tree6006486eb4380a4fff648fd4232a4eabeb14edc7 /Makefile
parent872d2ee59e29644d73b7530a27404a3d5c8ee42d (diff)
downloadplatform_external_libcap-f1f62a748d7c67361e91e32d26abafbfb03eeee4.tar.gz
platform_external_libcap-f1f62a748d7c67361e91e32d26abafbfb03eeee4.tar.bz2
platform_external_libcap-f1f62a748d7c67361e91e32d26abafbfb03eeee4.zip
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 14e29ef..d8cf49c 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@ release: distclean
cd .. && ln -s libcap libcap-$(VERSION).$(MINOR) && tar cvf libcap-$(VERSION).$(MINOR).tar --exclude patches libcap-$(VERSION).$(MINOR)/* && rm libcap-$(VERSION).$(MINOR)
test: all
+ make -C libcap $@
make -C tests $@
ifneq ($(PAM_CAP),no)
$(MAKE) -C pam_cap $@