summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Include the calling context in the mail subject, if any.jlh2013-09-031-4/+6
| | | | | | | | | | More concretely, periodic security scripts defaults to being called from daily ones -- daily context -- so the mail subject will now be "${HOST} daily security run output" instead of "{HOST} security run output". If you switch the period of some security checks to weekly, you will receive another email "${HOST} weekly security run output".
* Ignore if the interface is not IPv6-capable.hrs2013-09-021-2/+2
| | | | Spotted by: rpaulo
* Allow single byte reads of the emulated MSI-X tables. This is not requiredneel2013-08-271-3/+9
| | | | | by the PCI specification but needed to dump MMIO space from "ddb" in the guest.
* Allow more space for interface names.gavin2013-08-271-2/+2
| | | | MFC after: 1 week
* Fix a crash when reloading the configuration file.hrs2013-08-271-4/+2
| | | | Spotted by: des
* Fix off-by-1 error in assert.grehan2013-08-271-1/+1
| | | | Submitted by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com)
* Add support to reconfigure a drive as SYSPD (real JBOD in LSIsbruno2013-08-263-2/+29
| | | | | | | | | | | | | | | terminology). Adds command "mfiutil syspd <drive#>" to change a drive to SYSPD. Drive will then be scanned/reported immediately as /dev/mfisyspdX by the host. "mfiutil good <drive#>" clears SYSPD mode, remove /dev/mfisyspdX and sets disk into UNCONFIGURED mode. Tested on Dell H310 SAS/SATA RAID controller. MFC after: 2 weeks Sponsored by: Yahoo! Inc.
* Export a PERIODIC environment variable from periodic(8). This willjlh2013-08-251-0/+1
| | | | | allow periodic security scripts to know if they have been called in a daily or a weekly context.
* Allow tmpfs be mounted inside jail.delphij2013-08-231-1/+9
|
* Set the back pointer from the prefix to the interface before addingdes2013-08-231-1/+1
| | | | | | | | | the prefix to the interface's prefix list. This shouldn't make a difference, since rtadvd(8) is single-threaded, but I've seen it crash in delete_prefix() with pfx_rainfo == NULL, and this is the only place where a prefix can be added to the list with a NULL pfx_rainfo. MFC after: 3 days
* Update Bind to 9.9.3-P2erwin2013-08-222-0/+26
| | | | | | | | | | | | | | | | | | | | | | | Notable new features: * Elliptic Curve Digital Signature Algorithm keys and signatures in DNSSEC are now supported per RFC 6605. [RT #21918] * Introduces a new tool "dnssec-verify" that validates a signed zone, checking for the correctness of signatures and NSEC/NSEC3 chains. [RT #23673] * BIND now recognizes the TLSA resource record type, created to support IETF DANE (DNS-based Authentication of Named Entities) [RT #28989] * The new "inline-signing" option, in combination with the "auto-dnssec" option that was introduced in BIND 9.7, allows named to sign zones completely transparently. Approved by: delphij (mentor) MFC after: 3 days Sponsored by: DK Hostmaster A/S
* Add entry for packages-9.2-release directory.gjb2013-08-191-0/+1
| | | | Approved by: re (implicit)
* Cast argument of is*() ctype functions to unsigned char.pjd2013-08-181-1/+4
| | | | | | | | Without the cast there is ambiguity between 0xFF and -1 (EOF). Suggested by: jilles Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org> Sponsored by: Google Summer of Code 2013
* Use sysctl(ICMPV6CTL_ND6_DRLIST) instead of SIOCGDRLST_IN6 ioctl.hrs2013-08-171-28/+39
|
* - Remove struct ifinfo *iflist. It is no longer used.hrs2013-08-177-17/+14
| | | | - Suppress warnings about increase of alignment requirement.
* Unbreak rwhod(8):hrs2013-08-171-1/+10
| | | | | | | | | | - It did not work with GENERIC kernel after r250603 because options PROCDESC was required for pdfork(2). It now just uses fork(2) instead when this syscall is not available. - Fix verify(). This function was broken in r250602 because the outermost "()" was removed from the condition !(isalnum() || ispunct()). It prevented hostnames including "-", for example.
* Mark the makefs(8) '-p' flag as deprecated in preference forgjb2013-08-162-5/+16
| | | | | | | the '-Z' flag for compatibility with NetBSD. Submitted by: Eric van Gyzen (via stable@) MFC after: 3 days
* Fix ordering of legacy IRQ reservations.grehan2013-08-161-10/+10
| | | | Submitted by: Jeremiah Lott jlott at averesystems dot com
* Make sure bootonly.iso for -BETAs and -RCs use the releases/gjb2013-08-131-1/+1
| | | | | | | | directory on the FTP mirrors to fetch distributions, since these are always pushed to releases/ during the release cycle. MFC after: 3 days X-MFC-To: stable/9, releng/9.2
* Fix bug in r253719: fix command line watchdog disable.alfred2013-08-101-7/+9
| | | | | r253719 disallowed watchdog(8) from disabling the watchdog by breaking the ability to pass 0 as a timeout arg. Fix this.
* Change <sys/diskpc98.h> to not redefine the same symbols that aremarcel2013-08-071-1/+1
| | | | | | | | | | | | | | | | being defined in <sys/diskmbr.h>. Instead give the symbols here a "PC98_" prefix. This way, both <sys/diskmbr.h> and <sys/diskpc98.h> can be included in the same C source file. The renaming is trivial. The only gotcha is that DOSBBSECTOR is also redefined from 0 to 1. This because DOSBBSECTOR was always used in conjunction with an addition of 1. The PC98_BBSECTOR symbol is defined as 1 and the expression is simplified. Note: it is not believed that ports are seriously impacted; or at all for that matter. Approved by: nyan@
* Fix incompatibility in ICMPV6CTL_ND6_PRLIST sysctl, and SIOCGPRLST_IN6,hrs2013-08-061-36/+21
| | | | | SIOCGDRLST_IN6, and SIOCGNBRINFO_IN6 ioctl. These userland interfaces treat expiration times in time_second, not time_uptime.
* Fix build on arm and mips.hrs2013-08-062-9/+4
|
* Update Bind to 9.8.5-P2erwin2013-08-061-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New Features Adds a new configuration option, "check-spf"; valid values are "warn" (default) and "ignore". When set to "warn", checks SPF and TXT records in spf format, warning if either resource record type occurs without a corresponding record of the other resource record type. [RT #33355] Adds support for Uniform Resource Identifier (URI) resource records. [RT #23386] Adds support for the EUI48 and EUI64 RR types. [RT #33082] Adds support for the RFC 6742 ILNP record types (NID, LP, L32, and L64). [RT #31836] Feature Changes Changes timing of when slave zones send NOTIFY messages after loading a new copy of the zone. They now send the NOTIFY before writing the zone data to disk. This will result in quicker propagation of updates in multi-level server structures. [RT #27242] "named -V" can now report a source ID string. (This is will be of most interest to developers and troubleshooters). The source ID for ISC's production versions of BIND is defined in the "srcid" file in the build tree and is normally set to the most recent git hash. [RT #31494] Response Policy Zone performance enhancements. New "response-policy" option "min-ns-dots". "nsip" and "nsdname" now enabled by default with RPZ. [RT #32251] Approved by: delphij (mentor) Sponsored by: DK Hostmaster A/S
* - Use time_uptime instead of time_second in data structures forhrs2013-08-0514-210/+244
| | | | | | | | | PF_INET6 in kernel. This fixes various malfunction when the wall time clock is changed. Bump __FreeBSD_version to 1000041. - Use clock_gettime(CLOCK_MONOTONIC_FAST) in userland utilities. MFC after: 1 month
* Apply a casting sledgehammer.jhb2013-07-301-1/+1
| | | | Submitted by: dhw
* Fix detection of arm ABIsbapt2013-07-281-5/+17
| | | | | Submitted by: andrew Obtained from: pkg git
* Fix printf of seconds for systems where time_t is 64 bits.ian2013-07-281-2/+3
|
* mdoc and language improvements.joel2013-07-281-14/+29
|
* Provide some examples for watchdogd usage.alfred2013-07-271-1/+76
|
* Fix watchdog pretimeout.alfred2013-07-271-17/+179
| | | | | | | | The original API calls for pow2ns, however the new APIs from Linux call for seconds. We need to be able to convert to/from 2^Nns to seconds in both userland and kernel to fix this and properly compare units.
* - Set the System Identifier in the Primary Volume Descriptor to FreeBSDmarius2013-07-272-6/+7
| | | | | | | | | | | | | | | | | rather than NetBSD. - Correctly set the Expiration Time in the Primary Volume Descriptor; according to ISO 9660 8.4.26.1 unspecified date and time are denoted by the digit 0 in RBP 1 to 16 but the number 0 in RBP 17. [1] - Merge iso9660_rrip.c rev. 1.11 from NetBSD: name_len should be read as unsigned byte. [2] Note: This is according to ISO 9660 9.1.10. - Rock Ridge TF entries should use a length of 5, because after the 4 bytes of generic SUSP header there is one byte of flags. See typedef of ISO_RRIP_TF in iso9660_rrip.h. [1] Submitted by: Thomas Schmitt [1] Obtained from: NetBSD [2] MFC after: 3 days
* Ensure that makefs.h is included when using ufs_bswap.h so the FFS_EI macromarius2013-07-261-0/+2
| | | | | | | is picked up when defined. Previously, ffs_subr.c was always built without support for opposite endianess as it doesn't include makefs.h on its own. MFC after: 3 days
* Remove ftp2.tr.freebsd.org, it is out of date.gavin2013-07-233-3/+0
| | | | MFC after: 3 days
* Sync-up with bsdinstall(8) FTP mirrorselect changes.dteske2013-07-222-53/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | SVN r224656: Add back ftp4, a new machine has taken its place. ftp2 and ftp8 are both IPv6 capable mirrors. cvsup4/ftp4 have already been added to the handbook. NOTE: Except put IPv6 entries in IPv6 section at the top of the list SVN r225467: Add ftp4.se.freebsd.org to the IPv4 and IPv6 mirror lists. SVN r235228: Add the IPv6 tag to ftp4.fr.freebsd.org. NOTE: Except dup entry into IPv6 section. SVN r243832: - Remove snapshots.se.freebsd.org [1] - Add ftp6.se.freebsd.org SVN r243854: Remove snapshots.jp.freebsd.org. It stopped working years ago. SVN r253543: Update mirror list to more closely match http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html MFC after: 1 week
* Update mirror list to more closely matchgavin2013-07-221-38/+7
| | | | | | http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html MFC after: 1 week
* Decode PCIe ASPM capability and status.jkim2013-07-181-20/+38
|
* Sanity-check the vm exitcode, and exit the process if it's out-of-boundsgrehan2013-07-181-2/+11
| | | | | | or there is no registered handler. Submitted by: Bela Lubkin bela dot lubkin at tidalscale dot com
* Major rework of the virtio code. Split out common parts, and modifygrehan2013-07-175-961/+1408
| | | | | | | the net/block devices accordingly. Submitted by: Chris Torek torek at torek dot net Reviewed by: grehan
* Silent warnings.kevlo2013-07-161-1/+1
|
* Fix compiler warnings.hrs2013-07-152-2/+6
|
* Re-implement $probe_only aspect of f_media_get_TYPE() (where TYPE is cdrom,dteske2013-07-1412-81/+159
| | | | | | | | | | | | | | | | | | | | | | | nfs, ftp, http, httpproxy, etc.) and f_device_get() (abstract method for calling aforementioned f_media_get_TYPE()). Previously, if $probe_only was present and non-NULL, the TYPE functions would check for $file and exit with an appropriate error status (success if the file exists and readable, failure otherwise). While this has been retained, a pair of globals has been introduced: $PROBE_EXIST and $PROBE_SIZE (see `/usr/share/bsdconfig/media/common.subr') The $PROBE_EXIST global can be used where you need the functionality of simply testing for existence (previously the _only_ functionality). Meanwhile, the new $PROBE_SIZE global can be used to cause the TYPE function to print the size of the file (in bytes) on standard-out (or -1) if not found or an error occurs. NOTE: If an error occurs, it is logged with the dprintf function, which is visible with `-d' flag or debug=1. In many cases, where you need to get the size of a file _and_ check for its existence, you can use the return status of a $PROBE_SIZE call.
* Fix a wrong memcpy of struct sockaddr.hrs2013-07-121-3/+2
| | | | Spotted by: dt71@gmx.com
* Fix bug in deleting files: If two ports had the same tarball and one ofcperciva2013-07-111-2/+2
| | | | | | | | | | | them changed (or was removed from the tree) then portsnap would delete that file. This happened earlier today when one of two empty port directories was removed. Uniquifying the lists of needed files fixes this. 9.2-RELEASE candidate. MFC after: 3 days
* Implement RTC CMOS nvram. Init some fields that are usedgrehan2013-07-113-22/+105
| | | | | | | by FreeBSD and UEFI. Tested with nvram(4). Reviewed by: neel
* Introduce a new [yet unused] function for [efficiently] getting the path todteske2013-07-101-0/+29
| | | | | | | | | | | an executable by-name without forking or using externals. In a performance benchmark of 10,000 runs on circa 2006 hardware, f_which out-performed `which' with an average completion time of ~2.5 seconds versus ~56 seconds. This should be handy for future use (not that I make it a habit to call `which' in a loop 10,000 times).
* Fix -Wmissing-variable-declarations compiler warning.rdivacky2013-07-101-1/+1
|
* Install authpf-noip.des2013-07-101-0/+3
| | | | MFC after: 3 days
* Adjust comments to fit within 80-columns.dteske2013-07-091-4/+4
|
* Fix conditional (der should match the comment above it).dteske2013-07-091-1/+1
| | | | MFC after: 1 day
OpenPOWER on IntegriCloud