summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Enhance and expand kernel privilege regression tests in support ofrwatson2007-09-0942-2212/+3850
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add support for Camellia encryption algorithm.pjd2007-09-017-14/+21
| | | | | | PR: kern/113790 Submitted by: Yoshisato YANAGISAWA <yanagisawa@csg.is.titech.ac.jp> Approved by: re (bmah)
* Add WITHOUT_ZONEINFO to the build options and regenerate src.conf.5remko2007-08-271-0/+2
| | | | | | Reminded by: ceri Approved by: re (bmah) Approved by: imp (mentor)
* Add option to not fill second code image, this makes the full diskphk2007-08-261-3/+10
| | | | | | | | | image compress much better. Respect pkg_add's internal 200 package limitation. Approved by: re (bmah) Spelling fixes by: bmah
* Bring in two fixes for TinyBSD:remko2007-08-228-7/+8
| | | | | | | | | | | | | | - Add the bind mtree to the TinyBSD build so that files can be installed there (else the build fails) - Change GEOM_GPT to GEOM_PART_GPT since that had been renamed in current. The kernel configuration provided by TinyBSD will not build without these changes. PR: misc/115484 PR: misc/115405 Submitted by: Richard Arends <richard at unixguru dot nl> Approved by: re (bmah) Approved by: imp (mentor)
* New regression test updates for rename, etc.delphij2007-08-103-6/+58
| | | | | Obtained from: NetBSD Approved by: re (tmpfs blanket)
* Add regression tests for flopen(3).des2007-08-033-1/+189
| | | | Approved by: re (blanket)
* wlandebug has been moved to the base system.thompsa2007-07-285-435/+1
| | | | Approved by: re (rwatson)
* Added environ-replacement detection. For programs that "clean" (i.e., su)scf2007-07-203-34/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | or replace (i.e., zdump) the environment after a call to setenv(), putenv() or unsetenv() has been made, a few changes were made. - getenv() will return the value from the new environ array. - setenv() was split into two functions: __setenv() which is most of the previous setenv() without checks on the name and setenv() which contains the checks before calling __setenv(). - setenv(), putenv() and unsetenv() will unset all previous values and call __setenv() on all entries in the new environ array which in turn adds them to the end of the envVars array. Calling __setenv() instead of setenv() is done to avoid the temporary replacement of the '=' in a string with a NUL byte. Some strings may be read-only data. Added more regression checks for clearing the environment array. Replaced gettimeofday() with getrusage() in timing regression check for better accuracy. Fixed an off-by-one bug in __remove_putenv() in the use of memmove(). This went unnoticed due to the allocation of double the number of environ entries when building envVars. Fixed a few spelling mistakes in the comments. Reviewed by: ache Approved by: wes Approved by: re (kensmith)
* Make clear that WITHOUT_TOOLCHAIN cannot be applied to build targets.bz2007-07-191-1/+2
| | | | | | PR: 114220 Reviewed by: simon Approved by: re (hrs)
* Make fstest work out-of-the-box on Solaris:pjd2007-07-183-13/+34
| | | | | | | | | | - Solaris' setgroups(2) doesn't change process' effective gid, so set it explicitly. - POSIX doesn't define O_NOFOLLOW. FreeBSD returns EMLINK when target is a symbolic link, but Solaris returns ELOOP then. - Solaris doesn't define O_SHLOCK and O_EXLOCK flags. Approved by: re (rwatson)
* - Chase for crypto_if.m -> crytpodev_if.m rename in order todelphij2007-07-111-1/+6
| | | | | | | fix doxygen generation. - Add some missing *_if.m files. Approved by: re (hrs)
* Fix commit mail retrieval when using message-id.flz2007-07-101-8/+4
| | | | | Submitted by: novel Approved by: re (hrs)
* Add a test case for sed(1) regression - we should not ignore casedelphij2007-07-062-0/+5
| | | | | | when not being asked to do so. Approved by: re (hrs)
* Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.ssouhlal2007-07-043-0/+10
| | | | | | | | | For example, sed /foo/Id sed s/foo/bar/Ig Reviewed by: dds Approved by: re (hrs)
* Significantly reduce the memory leak as noted in BUGS section forscf2007-07-048-0/+702
| | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith)
* Remove wicontrol(8) from the base system. Using wicontrol to configure anthompsa2007-07-014-4/+0
| | | | | | | interface has been deprecated since 5.1, wi(4) wireless interfaces are managed via the net80211 stack and ifconfig. Approved by: re (rwatson)
* Neterion Xframe 10GbE Server/Storage adapter driver.sam2007-06-297-0/+3518
| | | | | | | | | | | The nxge driver provides support for Neterion Xframe-I and Xframe-II adapters. The driver supports TCP Segmentation Offload (TSO/LSO), Jumbo frames (5 buffer mode), Header separation (2 and 3 Receive buffer modes), VLAN, and Promiscuous mode. Submitted by: Neterion Reviewed by: rwatson Approved by: re (kensmith)
* Fix a obsecure coredump while testing with tmpfs on amd64.delphij2007-06-261-2/+6
| | | | Approved by: re (kensmith)
* id generation is now handled by uma(9) subsystem,delphij2007-06-252-76/+0
| | | | | | | so remove the (now) irrevelent test case. Requested by: Howard Su Approved by: re (tmpfs blanket)
* - Remove UMAP filesystem. It was disconnected from build three years ago,rafan2007-06-257-7/+0
| | | | | | | and it is seriously broken. Discussed on: freebsd-arch@ Approved by: re (mux)
* - Bugs in gethostbyXXX/getipnodebyXXX regression tests fixed.bushman2007-06-242-73/+162
| | | | | | | Tests for getipnodebyXXX functions now cover most number of flags combinations. Approved by: re (kensmith), brooks (mentor)
* MFp4: Add regression tests for tmpfs.delphij2007-06-1626-0/+2521
| | | | | Obtained from: NetBSD via p4 Submitted by: Howard Su
* Make the order of tests the same for user and kernel. Use the naturalharti2007-06-141-1/+1
| | | | layer order from bottom to top.
* Options spring cleanup:sepotvin2007-06-132-0/+9
| | | | | | | | | | - Add and document the KVM and KVM_SUPPORT options that are needed for the ifmcstats(3) makefile - Garbage collect unused variables - Add missing inclusion of bsd.own.mk where needed Approved by: kan (mentor) Reviewed by: ru
* Recoverdisk is now part of the base system.phk2007-06-123-436/+0
|
* Add regression test for SSM code.bms2007-06-122-0/+798
|
* Import rewrite of IPv4 socket multicast layer to support source-specificbms2007-06-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and protocol-independent host mode multicast. The code is written to accomodate IPv6, IGMPv3 and MLDv2 with only a little additional work. This change only pertains to FreeBSD's use as a multicast end-station and does not concern multicast routing; for an IGMPv3/MLDv2 router implementation, consider the XORP project. The work is based on Wilbert de Graaf's IGMPv3 code drop for FreeBSD 4.6, which is available at: http://www.kloosterhof.com/wilbert/igmpv3.html Summary * IPv4 multicast socket processing is now moved out of ip_output.c into a new module, in_mcast.c. * The in_mcast.c module implements the IPv4 legacy any-source API in terms of the protocol-independent source-specific API. * Source filters are lazy allocated as the common case does not use them. They are part of per inpcb state and are covered by the inpcb lock. * struct ip_mreqn is now supported to allow applications to specify multicast joins by interface index in the legacy IPv4 any-source API. * In UDP, an incoming multicast datagram only requires that the source port matches the 4-tuple if the socket was already bound by source port. An unbound socket SHOULD be able to receive multicasts sent from an ephemeral source port. * The UDP socket multicast filter mode defaults to exclusive, that is, sources present in the per-socket list will be blocked from delivery. * The RFC 3678 userland functions have been added to libc: setsourcefilter, getsourcefilter, setipv4sourcefilter, getipv4sourcefilter. * Definitions for IGMPv3 are merged but not yet used. * struct sockaddr_storage is now referenced from <netinet/in.h>. It is therefore defined there if not already declared in the same way as for the C99 types. * The RFC 1724 hack (specify 0.0.0.0/8 addresses to IP_MULTICAST_IF which are then interpreted as interface indexes) is now deprecated. * A patch for the Rhyolite.com routed in the FreeBSD base system is available in the -net archives. This only affects individuals running RIPv1 or RIPv2 via point-to-point and/or unnumbered interfaces. * Make IPv6 detach path similar to IPv4's in code flow; functionally same. * Bump __FreeBSD_version to 700048; see UPDATING. This work was financially supported by another FreeBSD committer. Obtained from: p4://bms_netdev Submitted by: Wilbert de Graaf (original work) Reviewed by: rwatson (locking), silence from fenner, net@ (but with encouragement)
* Don't forget to clear out the hold space for each subsequent fileyar2007-06-121-1/+2
| | | | | | | | when in -i mode so that each file gets a clean context of its own. Add a regression test for the bug. Tested with: regression tests
* Add cust_pkg() which iteratively tries to install packages.phk2007-06-121-2/+59
| | | | | | Move /usr/local/etc to /etc/local so that installed packages can be frobbed. Use a more compatible 512MB card geometry.
* add 11n statssam2007-06-111-17/+60
|
* o add 11n knobsam2007-06-111-5/+11
| | | | o gcc42 stuff
* Updated tests for changed features.grog2007-06-0924-10/+68
| | | | Submitted by: edwin@
* Default to R/O root filesystemphk2007-06-051-0/+3
|
* Fix the fstab on the second image, just like updatep2.sh does.phk2007-06-051-0/+7
|
* Use correct comment syntax for $FreeBSD$. This file gets put throughgrog2007-06-041-1/+5
| | | | | | cpp, not a shell script. Pointy hat to: grog
* Add regression tests for calendar.grog2007-06-0319-1/+461
| | | | | | Submitted by: edwin@ PR: bin/113275 MFC after: 2 weeks
* Add sparc64 regression test files.dds2007-05-2410-0/+134
| | | | Submitted by: Carl Johan Gustavsson
* Modify file generation instructions to remove the tty field:dds2007-05-241-1/+2
| | | | | the mapping from number to name differs between systems, and will cause tests to fail.
* Fix the procedure for generating the test summary files.dds2007-05-231-5/+14
| | | | Document the procedure for obtaining an appropriately old version of sa.
* Regression tests for sparc64 record formats.dds2007-05-222-0/+0
| | | | Submitted by: Carl Johan Gustavsson
* Regression tests for amd64 file and record formats.dds2007-05-2212-0/+118
| | | | Submitted by: Larry Rosenman (who also provided access to a testing host)
* Regression tests for the new and legacy process accounting formats.dds2007-05-2221-1/+361
|
* Document the .in .out file naming conventions adopted in commit_prep.pl'sdds2007-05-221-0/+5
| | | | exclusions list for header checking.
* Test the integer-arithmetic float conversions encode_timeval and encode_longdds2007-05-223-0/+157
| | | | in kern_acct.c.
* Introduce WITHOUT_SSP option that allows users to exclude LGPLedkan2007-05-191-0/+2
| | | | libssp from the build.
* Add a description for the WITHOUT_SYMVER option.deischen2007-05-171-0/+2
|
* Add regression tests for ethers(3) functions, including new _r variants.rwatson2007-05-133-1/+246
| | | | | | | | | | Four tests currently fail: test_ether_line_bad_1() and test_ether_line_bad_2() due to bugs in ether_line(3). test_ether_ntohost() and test_ether_hostton() due to not being fully implemented tests.
* Add a regression test to detect if waiting on the I/O serialization lockrwatson2007-05-062-0/+216
| | | | | | | on socket buffers is interruptible or not, which detacts the regression I introduced recently in 7-CURRENT (spotted by alfred). This test passes in older -CURRENT, and with the as-yet uncommitted sx_xlock_sig and sblock fix patches.
* Improve reporting in recoverdisk a good deal.phk2007-04-231-12/+26
| | | | | Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com> PR: 111630
OpenPOWER on IntegriCloud