diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2019-12-02 20:48:13 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2019-12-05 21:14:47 -0800 |
commit | e9f55d90e482f680504487be6b3afb80865691d6 (patch) | |
tree | b730e5720a0fe89bd12e4886a22b3d40a7e7640e /Make.Rules | |
parent | f9e5c9e91be200fced2c24a62bcc401344125d2a (diff) | |
download | libcap-e9f55d90e482f680504487be6b3afb80865691d6.tar.gz |
Implement a helper library for POSIX semantics syscalls.
Since Linux kernel supported threads are not POSIX threads
and the glibc pthread library only supports POSIX semantics
for 9 system calls, to fully support the POSIX semantics for
a process sharing its security state across all of its
threads, we've created libpsx.
This commit also includes a threading test in tests/ for
this new psx_syscall() abstraction - one that transparently
mirrors calling POSIX-needing semantics syscalls over
all running threads.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'Make.Rules')
-rw-r--r-- | Make.Rules | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -61,6 +61,9 @@ WARNINGS=-Wall -Wwrite-strings \ -Wnested-externs -Winline -Wshadow LD=$(CC) -Wl,-x -shared LDFLAGS := #-g +LIBCAPLIB := -L$(topdir)/libcap -lcap +LIBPSXLIB := -L$(topdir)/libcap -lpsx -lpthread + BUILD_GPERF := $(shell which gperf >/dev/null 2>/dev/null && echo yes) SYSTEM_HEADERS = /usr/include |