diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile | 8 | ||||
-rw-r--r-- | tests/libcap_launch_test.c | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/tests/Makefile b/tests/Makefile index fc39fee..1e7039d 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -17,13 +17,13 @@ install: all ifeq ($(DYNAMIC),yes) LINKEXTRA=-Wl,-rpath,../libcap -DEPS=../libcap/libcap.so ../progs/tcapsh-static +DEPS=../libcap/libcap.so ifeq ($(PTHREADS),yes) DEPS += ../libcap/libpsx.so endif else LDFLAGS += --static -DEPS=../libcap/libcap.a ../progs/tcapsh-static +DEPS=../libcap/libcap.a ifeq ($(PTHREADS),yes) DEPS += ../libcap/libpsx.a endif @@ -71,10 +71,10 @@ libcap_psx_test: libcap_psx_test.c $(DEPS) $(CC) $(CFLAGS) $(IPATH) $< -o $@ $(LINKEXTRA) $(LIBCAPLIB) $(LIBPSXLIB) $(LDFLAGS) # privileged -run_libcap_launch_test: libcap_launch_test noop +run_libcap_launch_test: libcap_launch_test noop ../progs/tcapsh-static sudo ./libcap_launch_test -run_libcap_psx_launch_test: libcap_psx_launch_test +run_libcap_psx_launch_test: libcap_psx_launch_test ../progs/tcapsh-static sudo ./libcap_psx_launch_test libcap_launch_test: libcap_launch_test.c $(DEPS) diff --git a/tests/libcap_launch_test.c b/tests/libcap_launch_test.c index c9ef205..bba38c6 100644 --- a/tests/libcap_launch_test.c +++ b/tests/libcap_launch_test.c @@ -70,7 +70,8 @@ int main(int argc, char **argv) { .iab = "!^cap_chown" }, { - .args = { "../progs/tcapsh-static", "--inmode=NOPRIV" }, + .args = { "../progs/tcapsh-static", "--inmode=NOPRIV", + "--has-no-new-privs" }, .result = 0, .mode = CAP_MODE_NOPRIV }, |