summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Tweak "system security profiles:rwatson2003-09-282-14/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | (1) Don't modify the configuration of the NFS server as a result of selecting a profile. We already explicitly prompt for the NFS server configuration during install, and the user may not get much advance notice that we're turning it off again. Instead, use profiles (for better or for worse) only for security tuning. (2) Don't modify the sendmail setting as part of the security profile: use the default from /etc/defaults/rc.conf rather than explicitly specifying. Note that the default in /etc/defaults/rc.conf is more conservative than the explicit rc.conf entry added by sysinstall during install, as it does not permit SMTP delivery. (3) Update "congratulations on your profile" text to reflect these changes. Note that security profiles now affect only the securelevel and sshd settings. My leaning would be to make sshd an explicit configuration option, move securelevels to the security menu, and drop security profiles entirely. However, that requires more plumbing of sendmail than I'm currently willing to invest. We may want to add a "permit SMTP delivery" question to the install process.
* - Another update to list of FTP siteskensmith2003-09-282-0/+34
| | | | Approved by: murray
* Fix a cut n paste typo I introduced in rev 1.211.trhodes2003-09-272-2/+2
| | | | | | | PR: 57012 Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version) Friendly prod provided by: murray MFC: after re approval
* Add -p option to dump phy registers.simokawa2003-09-252-2/+96
|
* Add -s option to strip subdirectory from module path.simokawa2003-09-252-6/+13
| | | | | | e.g. moudle-path/firewire/firewire.ko -> module-path/firewire.ko Reviewed by: grog
* Update list of FTP sites.kensmith2003-09-242-248/+234
| | | | Approved by: jhb
* Add Cisco Skinny Station protocol support to libalias, natd, and ppp.marcus2003-09-234-0/+34
| | | | | | | | | | | | | | | Skinny is the protocol used by Cisco IP phones to talk to Cisco Call Managers. With this code, one can use a Cisco IP phone behind a FreeBSD NAT gateway. Currently, having the Call Manager behind the NAT gateway is not supported. More information on enabling Skinny support in libalias, natd, and ppp can be found in those applications' manpages. PR: 55843 Reviewed by: ru Approved by: ru MFC after: 30 days
* Restructure the time processing routines, mainly to fix up thegad2003-09-233-85/+480
| | | | | | | | | | "will trim at" message printed when the user requests '-v'. The previous code would often print the wrong time, such as: On Sept 22, run: newsyslog -nv /var/log/wtmp And see: will trim at Mon Sep 1 05:00:00 2003 correct msg: will trim at Wed Oct 1 05:00:00 2003 MFC after: 20 days
* Only print an end '}' if the field was non-zero (i.e. there were some flagsnjl2003-09-211-2/+4
| | | | to print).
* fixed memory leak.suz2003-09-201-1/+4
| | | | Obtained From: KAME
* Name moderate security settings "Moderate", not "Medium"eivind2003-09-182-2/+2
|
* Propagate ioctl() failure to exit statuseivind2003-09-181-7/+10
|
* - Reorder to group the non-obsolete options togethereivind2003-09-181-52/+62
| | | | - Change from "will be deprecated in 5.1" to "was deprecated in 5.1"
* Referring to FreeBSD versions later than 2.0R as "fairly recent" is prettyphk2003-09-182-4/+2
| | | | | | | archaic at this point in time. Pretend nobody runs FreeBSD 1.x anymore in order to not confuse people needlessly. Laplink support probably doesn't even work at this point in time anyway...
* Fix 3 'cast to pointer from integer of different size' warnings.marcel2003-09-172-12/+18
| | | | While here, fix the long line bugs in the same statements.
* Add acpi to the build on ia64. The support for ACPI 2.0x has gottenmarcel2003-09-161-0/+4
| | | | | | | to a point where we don't map the wrong (ie 32-bit) addresses. We don't always dump the right values yet, but that's not critical. Ok'd: njl
* Get rid of duplicates.ru2003-09-146-6/+6
|
* Correct the calculation of "a leap year" in parseDWM. The calculationgad2003-09-141-17/+43
| | | | | | | | would only match a leap year every 400 years. The parseDWM code first showed up in April 2000, so the first time this bug would cause any confusion is in Feb 2004. MFC after: 18 days
* Correct typo in comment.njl2003-09-141-1/+1
|
* For dumping the DSDT (-o option), be sure to use the X_DSDT address ifnjl2003-09-141-1/+7
| | | | appropriate. This should be the last change to make ia64 work.
* Add the -i flag to acpiconf(8) to retrieve battery information.njl2003-09-132-29/+69
| | | | Rename a few structure elements.
* C2/C3 latency is in microseconds (us), not ms.njl2003-09-131-1/+1
|
* Only print various optional fields if they are non-zero. Always print thenjl2003-09-131-24/+31
| | | | required fields, no matter what their value.
* Reduce the default width for IO port GAS printing.njl2003-09-131-4/+4
| | | | Courtesy of: rwatson's chart presentation
* Move the parse8601 and parseDWM routines into a new ptime.c file. Thegad2003-09-124-219/+320
| | | | | | | only code-change is to add a "next_time" parameter to both routines (and that is not used yet). A later update will make "next_time" more useful. MFC after: 20 days
* Remove the unrequired -bi from the newaliases line. Note in the commit logtrhodes2003-09-112-2/+2
| | | | | | that the last change should have read: exim_enable="YES" in the changes listing. Discussed with: ceri
* Add dumping of the ECDT table.njl2003-09-102-0/+29
| | | | Courtesy of: USENIX hall track
* o Workaround a bug where my T23 reports that it is ACPI 2.0x compatiblenjl2003-09-102-29/+70
| | | | | | | | but has invalid 64 bit pointers for FACS and DSDT. o Finish work to print all of the FADT and FACS. o Resort the comment generating functions. Submitted by: marcel Courtesy of: BSDcon back wall
* With the exim port upgrade, modify sysinstall(8):trhodes2003-09-102-24/+20
| | | | | | | | | | | | | - Add 'enable_exim="YES"' to rc.conf(5) - Use the default exim configuration file from the port - When using sendmail, disable some more scripts that use sendmail specific parameters - Have sysinstall tweak mailer.conf(5) substitution - Use 'N' flag for newsyslog(8) Submitted by: Oliver Eikemeier <eikemeier@fillmore-labs.com> Reviewed by: sheldonh, simon Tested by: myself (trhodes) and submitter
* mdoc(7): Properly mark C headers.ru2003-09-102-2/+2
|
* Switch dotrim() to take advantage of the 'struct conf_entry' thatgad2003-09-091-33/+36
| | | | | | | is already passed in, instead of having the caller copy values from that struct into additional parameters. MFC after: 22 days
* Reduce the annoying compiler warnings that pop up when compiling withgad2003-09-091-9/+9
| | | | | | gcc 3.3.x and -Wshadow. Just renames 'log' variables to be 'logname'. MFC after: 22 days
* Add a device driver for the Broadcom BCM4401 ethernet controller,wpaul2003-09-092-0/+2
| | | | | | | | | | | | | | written by Stuart Walsh and Duncan Barclay (with some kibbitzing by me). I'm checking it in on Stuart's behalf. The BCM4401 is built into several x86 laptop and desktop systems. For the moment, I have only enabled it in the x86 kernel config because although it's a PCI device, I haven't heard of any standalone NICs that use it. If somebody knows of one, we can easily add it to the other arches. This driver uses register/structure data gleaned from the Linux driver released by Broadcom, but does not contain any of the code from the Linux driver itself. It uses busdma.
* Add support for ACPI 2.x and the XSDT.njl2003-09-091-25/+77
| | | | Submitted by: marcel
* Rename FACP to FADT throughout.njl2003-09-094-111/+206
| | | | | | | Update FADT for new fields including pm_profile, pstate_cnt, and cst_cnt. Add acpi_print_gas() for printing various address formats. Print FACS contents. Remove unused code.
* Correct the comment about which timezone-change loses an hour...gad2003-09-091-2/+2
| | | | MFC after: 23 days
* Add a '-D <something>' command line arg, which can be used to setgad2003-09-091-3/+57
| | | | | | | | debugging options. Initial option is '-D TN=<time>', which can be used to see how newsyslog would work if run at the specified time. (time format is ISO 8601, since that is already supported). MFC after: 23 days
* Use strtol() instead of strtoul() in parse8601, so we can detectgad2003-09-091-17/+17
| | | | | | | negative values. Mainly done to sync this routine with OpenBSD. Obtained from: OpenBSD MFC after: 23 days
* Fix typo in the previous commit. Was checking wrong variable...gad2003-09-091-1/+1
| | | | MFC after: 23 days
* Change parse8601 and parseDWM so they return an alternate error valuegad2003-09-091-14/+29
| | | | | | for invalid times, and have the caller print the error message. MFC after: 23 days
* Cosmetic change to move parse8601 right next to parseDWM. No codegad2003-09-091-86/+86
| | | | | | is changed. (that will come in later updates). MFC after: 23 days
* mdoc(7): Use the new feature of the .In macro.ru2003-09-082-2/+2
|
* Take the support for the 8139C+/8169/8169S/8110S chips out of thewpaul2003-09-082-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rl(4) driver and put it in a new re(4) driver. The re(4) driver shares the if_rlreg.h file with rl(4) but is a separate module. (Ultimately I may change this. For now, it's convenient.) rl(4) has been modified so that it will never attach to an 8139C+ chip, leaving it to re(4) instead. Only re(4) has the PCI IDs to match the 8169/8169S/8110S gigE chips. if_re.c contains the same basic code that was originally bolted onto if_rl.c, with the following updates: - Added support for jumbo frames. Currently, there seems to be a limit of approximately 6200 bytes for jumbo frames on transmit. (This was determined via experimentation.) The 8169S/8110S chips apparently are limited to 7.5K frames on transmit. This may require some more work, though the framework to handle jumbo frames on RX is in place: the re_rxeof() routine will gather up frames than span multiple 2K clusters into a single mbuf list. - Fixed bug in re_txeof(): if we reap some of the TX buffers, but there are still some pending, re-arm the timer before exiting re_txeof() so that another timeout interrupt will be generated, just in case re_start() doesn't do it for us. - Handle the 'link state changed' interrupt - Fix a detach bug. If re(4) is loaded as a module, and you do tcpdump -i re0, then you do 'kldunload if_re,' the system will panic after a few seconds. This happens because ether_ifdetach() ends up calling the BPF detach code, which notices the interface is in promiscuous mode and tries to switch promisc mode off while detaching the BPF listner. This ultimately results in a call to re_ioctl() (due to SIOCSIFFLAGS), which in turn calls re_init() to handle the IFF_PROMISC flag change. Unfortunately, calling re_init() here turns the chip back on and restarts the 1-second timeout loop that drives re_tick(). By the time the timeout fires, if_re.ko has been unloaded, which results in a call to invalid code and blows up the system. To fix this, I cleared the IFF_UP flag before calling ether_ifdetach(), which stops the ioctl routine from trying to reset the chip. - Modified comments in re_rxeof() relating to the difference in RX descriptor status bit layout between the 8139C+ and the gigE chips. The layout is different because the frame length field was expanded from 12 bits to 13, and they got rid of one of the status bits to make room. - Add diagnostic code (re_diag()) to test for the case where a user has installed a broken 32-bit 8169 PCI NIC in a 64-bit slot. Some NICs have the REQ64# and ACK64# lines connected even though the board is 32-bit only (in this case, they should be pulled high). This fools the chip into doing 64-bit DMA transfers even though there is no 64-bit data path. To detect this, re_diag() puts the chip into digital loopback mode and sets the receiver to promiscuous mode, then initiates a single 64-byte packet transmission. The frame is echoed back to the host, and if the frame contents are intact, we know DMA is working correctly, otherwise we complain loudly on the console and abort the device attach. (At the moment, I don't know of any way to work around the problem other than physically modifying the board, so until/unless I can think of a software workaround, this will have do to.) - Created re(4) man page - Modified rlphy.c to allow re(4) to attach as well as rl(4). Note that this code works for the sample 8169/Marvell 88E1000 NIC that I have, but probably won't work for the 8169S/8110S chips. RealTek has sent me some sample NICs, but they haven't arrived yet. I will probably need to add an rlgphy driver to handle the on-board PHY in the 8169S/8110S (it needs special DSP initialization).
* Use uid_t.charnier2003-09-071-3/+4
|
* There is no need to #include <sgtty.h>peter2003-09-041-1/+0
|
* Sync with fresh generated file, keep our changed settings. This seemsmbr2003-09-021-1386/+1338
| | | | to be a lot cleaner.
* Remove redundant PACKAGE and VERSION defines.mbr2003-09-021-6/+1
|
* Update version string.mbr2003-09-021-1/+1
|
* Set HAVE_STRUCT_IFREQ_IFR_ADDR, HAVE_STRUCT_FHSTATUS_FHS_FH to 1.mbr2003-09-021-0/+9
|
* Retire 'c' partition for a CD device.maxim2003-09-012-13/+4
| | | | | Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> Not objected by: -current
OpenPOWER on IntegriCloud