History log of /freebsd-10-stable/tools/regression/priv/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
264457 14-Apr-2014 jmmv

MFC various fixes to the tools/regression/ tests.

- r262953 Fix m4 tests so that they run cleanly with prove.
- r262954 Fix printf tests so that they run cleanly with prove.
- r262959 Fix sed tests so that they run cleanly with prove.
- r262960 Fix yacc tests so that they run cleanly with prove.
- r262961 Fix pkill tests so that they run cleanly with prove.
- r262962 Fix ncal tests so that they run cleanly with prove.
- r263081 Fix lastcomm tests under amd64.
- r263082 Only run the make tests when make is fmake.
- r263083 Fix sa tests.
- r263084 Turn a test precondition into a skip in the mdconfig tests.
- r263085 Make the strerror tests work without libtap.
- r263087 Remove broken tests for eui64_line.
- r263221 Change etcupdate tests to return 1 on test failures.
- r263352 Make the priv test program exit with non-zero if any failures are detected.
- r263353 errx prepends the program name to the message; don't do it by hand.
- r263362 Include strings.h so that bpf_filter.c can be built in userland.


/freebsd-10-stable/sys/net/bpf_filter.c
/freebsd-10-stable/tools/regression/lib/libc/net/Makefile
/freebsd-10-stable/tools/regression/lib/libc/net/test-eui64_line.c
/freebsd-10-stable/tools/regression/lib/libc/net/test-eui64_line.t
/freebsd-10-stable/tools/regression/lib/libc/string/Makefile
/freebsd-10-stable/tools/regression/lib/libc/string/test-strerror.c
main.c
/freebsd-10-stable/tools/regression/sbin/mdconfig/00.t
/freebsd-10-stable/tools/regression/usr.bin/lastcomm/regress.t
/freebsd-10-stable/tools/regression/usr.bin/lastcomm/v1-amd64.out
/freebsd-10-stable/tools/regression/usr.bin/lastcomm/v2-amd64.out
/freebsd-10-stable/tools/regression/usr.bin/m4/regress.gnusofterror.out
/freebsd-10-stable/tools/regression/usr.bin/m4/regress.sh
/freebsd-10-stable/tools/regression/usr.bin/m4/regress.t
/freebsd-10-stable/tools/regression/usr.bin/make/common.sh
/freebsd-10-stable/tools/regression/usr.bin/ncal/regress.sh
/freebsd-10-stable/tools/regression/usr.bin/pkill/pgrep-_s.t
/freebsd-10-stable/tools/regression/usr.bin/printf/regress.sh
/freebsd-10-stable/tools/regression/usr.bin/sed/regress.sh
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.00.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.01.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.02.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.03.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.04.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.05.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.06.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.07.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.08.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.09.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.10.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.11.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.12.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.13.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.14.out
/freebsd-10-stable/tools/regression/usr.bin/yacc/regress.sh
/freebsd-10-stable/tools/regression/usr.sbin/etcupdate/always.sh
/freebsd-10-stable/tools/regression/usr.sbin/etcupdate/conflicts.sh
/freebsd-10-stable/tools/regression/usr.sbin/etcupdate/fbsdid.sh
/freebsd-10-stable/tools/regression/usr.sbin/etcupdate/ignore.sh
/freebsd-10-stable/tools/regression/usr.sbin/etcupdate/preworld.sh
/freebsd-10-stable/tools/regression/usr.sbin/etcupdate/tests.sh
/freebsd-10-stable/tools/regression/usr.sbin/etcupdate/tzsetup.sh
/freebsd-10-stable/tools/regression/usr.sbin/sa/regress.t
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-amd64-sav.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-amd64-u.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-amd64-usr.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-i386-sav.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-i386-u.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-i386-usr.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-sparc64-sav.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-sparc64-u.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v1-sparc64-usr.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v2-amd64-u.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v2-i386-u.out
/freebsd-10-stable/tools/regression/usr.sbin/sa/v2-sparc64-u.out
256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


253385 16-Jul-2013 kevlo

Use MAN= instead of NO_MAN=

For some reason it still tries to install a priv.1 when using NO_MAN,
even though there isn't one yet.


228975 30-Dec-2011 uqs

Spelling fixes for tools/

Add some $FreeBSD$ tags so svn will allow the commit.


204585 02-Mar-2010 uqs

Always assign WARNS using ?=

- fix some nearby style bugs
- include Makefile.inc where it makes sense and reduces duplication

Approved by: ed (co-mentor)


196172 13-Aug-2009 bz

Start respecting WITHOUT_INET6.

Make regression/priv compile again after the multi-IP jail
changes. Note that we are still using the legacy jail(2)
rather than the jail_set(2)/jail(3) syscall.
Add an IPv4, and an IPv6 loopback address in case we compile
with INET6 enabled.

Make the priv_vfs_extattr_system compile on amd64 as well using the
proper length modifier to printf(3) for ssize_t.

Reviewed by: rwatson
Approved by: re (kib)


173679 16-Nov-2007 bz

Remove empty setup and cleanup functions for the pfkey test.

Add regression tests for privileged and supposedly unprivileged
IP_IPSEC_POLICY,IPV6_IPSEC_POLICY setsockopt cases.

We may need to review the current 'good' results to make
sure they reflect what we really want.

Discussed with: rwatson
Reviewed by: rwatson


173578 13-Nov-2007 bz

In sys/netipsec/keysock.c rev. 1.19 a missing priv check was added.
Before that non-su users were able to open pfkey sockets as well.

Add a regression test so we can detect such problems in an automated way
in the future.


172106 09-Sep-2007 rwatson

Enhance and expand kernel privilege regression tests in support of
work present in FreeBSD 7.0 to refine the kernel privilege model:

- Introduce support for jail as a testing variable, in order to
confirm that privileges are properly restricted in the jail
environment.

- Restructure overall testing approach so that privilege and jail
conditions are set in the testing infrastructure before tests
are invoked, and done so in a custom-created process to isolate
the impact of tests from each other in a more consistent way.

- Tests now provide setup and cleanup hooks that occur before and
after the test runs.

- New privilege tests are now present for several audit
privileges, several credential management privileges, dmesg
buffer reading privilege, and netinet raw socket creation.

- Other existing tests are restructured and generally improved as
a result of better framework structure and jail as a variable.
For exampe, we now test that certain sysctls are writable only
outside jail, while others are writable within jail. On a
similar note, privileges relating to setting UFS file flags are
now better exercised, as with the right to chmod and utimes
files.

Approved by: re (bmah)
Obtained from: TrustedBSD Project


162271 13-Sep-2006 rwatson

dd a series of regression tests to validate that privilege requirements are
implemented properly for a number of kernel subsystems. In general, they
try to exercise the privilege first as the root user, then as a test user,
in order to determine when privilege is being checked.

Currently, these tests do not compare inside/outside jail, and probably
should be enhanced to do that.

Sponsored by: nCircle Network Security, Inc.
Obtained from: TrustedBSD Project