svn commit: r345724 - projects/capsicum-test/tests/sys/capsicum
Enji Cooper
ngie at FreeBSD.org
Sat Mar 30 01:14:16 UTC 2019
Author: ngie
Date: Sat Mar 30 01:14:15 2019
New Revision: 345724
URL: https://svnweb.freebsd.org/changeset/base/345724
Log:
Fix an item and run more tests
First off, the BINMODE for mini-me.setuid should be 04555, not 04444. The
latter mode is not executable, so mini-me.setuid would do the wrong thing by
failing to run. There's probably a capsicum-test bug buried in here.
Second off, some of the *[Fe|E]xecve tests are skipped if run as root. In order
to ensure these tests aren't skipped, run them as an unprivileged user.
Modified:
projects/capsicum-test/tests/sys/capsicum/Makefile
Modified: projects/capsicum-test/tests/sys/capsicum/Makefile
==============================================================================
--- projects/capsicum-test/tests/sys/capsicum/Makefile Sat Mar 30 00:57:33 2019 (r345723)
+++ projects/capsicum-test/tests/sys/capsicum/Makefile Sat Mar 30 01:14:15 2019 (r345724)
@@ -35,6 +35,7 @@ SRCS.capsicum-test+= \
rename.cc
LIBADD.capsicum-test+= gtest pthread
+TEST_METADATA.capsicum-test= required_user="unprivileged"
.for p in mini-me mini-me.noexec mini-me.setuid
PROGS+= $p
@@ -45,7 +46,7 @@ SRCS.$p= mini-me.c
BINDIR= ${TESTSDIR}
BINMODE.mini-me.noexec= ${NOBINMODE}
-BINMODE.mini-me.setuid= 4444
+BINMODE.mini-me.setuid= 4555
WARNS.capsicum-test= 3
More information about the svn-src-projects
mailing list