aboutsummaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* Add syslog(3) support to devd(8).Alan Somers2013-07-012-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | sbin/devd/devd.cc All output will now go to syslog(3) if devd is daemonized, or stderr if it's running in the foreground. sbin/devd/devd.8 Remove the "-D" flag. Filtering messages by priority now happens in the usual syslog way. For performance reasons, a few extra-verbose debugging statements are now conditional on the "-d" (do not daemonize) flag. etc/syslog.conf etc/newsyslog.conf Direct messages from devd(8) to /var/log/devd.log, but leave it disabled by default Reviewed by: eadler Approved by: gibbs (co-mentor) MFC after: never (removed a command-line option from devd) Notes: svn path=/head/; revision=252481
* Add "ether" and "link" to ifconfig_alias{es,N}.Hiroki Sato2013-06-301-2/+15
| | | | Notes: svn path=/head/; revision=252426
* Don't attempt to do DHCP on certain interfaces, similar to what's done forXin LI2013-06-281-1/+10
| | | | | | | | | ipv6_autoconfif() in r212577. MFC after: 1 week Notes: svn path=/head/; revision=252360
* - Trim an unused and bogus Makefile for mount_smbfs.Davide Italiano2013-06-283-1/+7
| | | | | | | | | - Reconnect with some minor modifications, in particular now selsocket() internals are adapted to use sbintime units after recent'ish calloutng switch. Notes: svn path=/head/; revision=252356
* - Add vnode-backed swap space specification support. This is enabled whenHiroki Sato2013-06-278-120/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | device names "md" or "md[0-9]*" and a "file" option are specified in /etc/fstab like this: md none swap sw,file=/swap.bin 0 0 - Add GBDE/GELI encrypted swap space specification support, which rc.d/encswap supported. The /etc/fstab lines are like the following: /dev/ada1p1.bde none swap sw 0 0 /dev/ada1p2.eli none swap sw 0 0 .eli devices accepts aalgo, ealgo, keylen, and sectorsize as options. swapctl(8) can understand an encrypted device in the command line like this: # swapctl -a /dev/ada2p1.bde - "-L" flag is added to support "late" option to defer swapon until rc.d/mountlate runs. - rc.d script change: rc.d/encswap -> removed rc.d/addswap -> just display a warning message if $swapfile is defined rc.d/swap1 -> renamed to rc.d/swap rc.d/swaplate -> newly added to support "late" option These changes alleviate a race condition between device creation/removal and swapon/swapoff. MFC after: 1 week Reviewed by: wblock (manual page) Notes: svn path=/head/; revision=252310
* Implement ifconfig_wlanX="HOSTAP".Rui Paulo2013-06-262-3/+35
| | | | | | | | | | | | Not only this is a bit cleaner, it allows multiple instances of hostapd to be running on the system host, useful for simultaneous dual-band WiFi. This is similar to ifconfig_wlanX="WPA" but it uses /etc/hostapd-wlanX.conf. Compatibility with hostapd_enable=YES/NO was kept. Reviewed by: adrian Notes: svn path=/head/; revision=252230
* If daily_status_security_inline is set, the rc value needs to beJohn Baldwin2013-06-251-12/+12
| | | | | | | | | | | | | | | | forced to 3 so that the output of this script is always displayed. In fact, setting this flag is identical to setting daily_status_security_output to an empty string. To make the logic less confusing, change the behavior of daily_status_security_inline such that it just forces daily_status_security_output to an empty string and then applies the normal logic. PR: conf/178611 Submitted by: Jason Unovitch <jason.unovitch@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=252205
* Regenerate usb.conf after r252196.Kevin Lo2013-06-251-2/+2
| | | | | | | Spotted by: rpaulo Notes: svn path=/head/; revision=252200
* Call sshd_precmd instead of sshd_configtest when the operatorXin LI2013-06-211-2/+2
| | | | | | | | | | | | | requests reload or restart, which, in addition of testing the configuration, will also generate host keys when they are not present (previous behavior). Obtained from: FreeNAS Ok'ed by: bdrewery, des MFC after: 1 week Notes: svn path=/head/; revision=252062
* - Add CIDR notation support like 192.168.1-2.10-16/24 to $ifconfig_IF_aliasN.Hiroki Sato2013-06-201-235/+372
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an extended version of ipv4_addr_IF which supports both IPv4 and IPv6, and multiple range specifications. To avoid to generate too many addresses, the maximum number of the generated addresses is currently limited to 31. - Add $ifconfig_IF_aliases, which accepts multiple IP aliases in a variable. - ipv6_prefix_IF now supports !/64 prefix length. In addition to the old 64-bit format (2001:db8:1:1), a full 128-bit format like 2001:db8:1:1::/64 is supported. - Replace ifconfig command with $IFCONFIG_CMD variable to support a dry-run mode in the future. - Remove IP aliases before removing all of IPv4 addresses when doing "rc.d/netif down". - Add a DAD wait to network6_getladdr() because it is possible to fail to configure an EUI64 address when ipv6_prefix_IF is specified. A summary of the supported ifconfig_* variables is as follows: # IPv4 configuration. ifconfig_em0="inet 192.168.0.1" # IPv6 configuration. ifconfig_em0_ipv6="inet6 2001:db8::1/64" # IPv4 address range spec. Now deprecated. ipv4_addr_em0="10.2.1.1-10" # IPv6 alias. ifconfig_em0_alias0="inet6 2001:db8:5::1 prefixlen 70" # IPv4 alias. ifconfig_em0_alias1="inet 10.2.2.1/24" # IPv4 alias with range spec w/o AF keyword (backward compat). ifconfig_em0_alias2="10.3.1.1-10/32" # IPv6 alias with range spec. ifconfig_em0_alias3="inet6 2001:db8:20-2f::1/64" # ifconfig_IF_aliases is just like ifconfig_IF_aliasN. ifconfig_em0_aliases="inet 10.3.3.201-204/24 inet6 2001:db8:210-213::1/64 inet 10.1.1.1/24" # IPv6 alias (backward compat) ipv6_ifconfig_em0_alias0="inet6 2001:db8:f::1/64" # IPv6 alias w/o AF keyword (backward compat) ipv6_ifconfig_em0_alias1="2001:db8:f:1::1/64" # IPv6 prefix. ipv6_prefix_em0="2001:db8::/64" Tested by: Kimmo Paasiala Notes: svn path=/head/; revision=252015
* Allow $ntpdate_config to be NULL. Due to a lack of surrounding quotes, whenDevin Teske2013-06-181-2/+2
| | | | | | | | | | ntpdate_config was set to NULL the conditional would (counter to prevailing logic) succeed -- leading to awk attempting to redirect from a NULL pathname standard-in. While we're here, make the script consistant with itself by removing the {curlies} around ntpdate_config (they are unnecessary). Notes: svn path=/head/; revision=251885
* Remove CVS from the base system.Eitan Adler2013-06-152-8/+2
| | | | | | | | | Discussed with: many Reviewed by: peter, zi Approved by: core Notes: svn path=/head/; revision=251794
* Clean up swapfile memory disk on shutdownChris Rees2013-06-122-4/+40
| | | | | | | | | | | Make the md unit number configurable so that it can be predicted PR: bin/168544 Submitted by: wblock (based on) Approved by: kevlo Notes: svn path=/head/; revision=251660
* Regen.Rui Paulo2013-06-101-2/+229
| | | | Notes: svn path=/head/; revision=251597
* Add :ifname modifier to specify interface-specific routes intoHiroki Sato2013-06-092-82/+132
| | | | | | | | | | | | | | | | | | | | {,ipv6_}static_routes and rc.d/routing. For example: static_routes="foo bar:em0" route_foo="-net 10.0.0.0/24 -gateway 192.168.2.1" route_bar="-net 192.168.1.0/24 -gateway 192.168.0.2" At boot time, all of the static routes are installed as before. The differences are: - "/etc/rc.d/netif start/stop <if>" now configures static routes with :<if> if any. - "/etc/rc.d/routing start/stop <af> <if>" works as well. <af> cannot be omitted when <if> is specified, but a keyword "any" or "all" can be used for <af> and <if>. Notes: svn path=/head/; revision=251584
* Add a new knob WITH_DEBUG_FILES to control the building of standaloneEd Maste2013-06-073-0/+58
| | | | | | | | | | | | | | | | | | | debug files for userland programs and libraries. The "-g" debug flag is automatically applied when WITH_DEBUG_FILES is set. The debug files are now named ${prog}.debug and ${shlib}.debug for consistency with other systems and documentation. In addition they are installed under /usr/lib/debug, to simplify the process of installing them if needed after a crash. Users of bsd.{prog,lib}.mk outside of the base system place the standalone debug files in a .debug subdirectory. GDB automatically searches both of these directories for standalone debug files. Thanks to everyone who contributed changes, review, and testing during development. Notes: svn path=/head/; revision=251512
* Refine the "nojail" rc keyword, adding "nojailvnet" for files that don'tJamie Gritton2013-05-195-4/+12
| | | | | | | | | | | | apply to most jails but do apply to vnet jails. This includes adding a new sysctl "security.jail.vnet" to identify vnet jails. PR: conf/149050 Submitted by: mdodd MFC after: 3 days Notes: svn path=/head/; revision=250804
* etc/rc.d/syslogdAlan Somers2013-05-131-1/+3
| | | | | | | | | | | | | Add netif as a requirement of syslogd to get lo0 up. Currently, this doesn't affect the rc order, because mountcritremote already depends on netif. Reviewed by: eadler Approved by: kenm (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=250617
* Revert r250565 which causes issues for older CPUsEitan Adler2013-05-121-18/+18
| | | | | | | | PR: conf/178504 Requested by: many Notes: svn path=/head/; revision=250579
* Make newsyslog compress logs with xz instead of bzip2 to save space.Eitan Adler2013-05-121-18/+18
| | | | | | | | | PR: conf/178504 Submitted by: ak Reviewed by: smh Notes: svn path=/head/; revision=250565
* Unconditionally install 210.backup-aliases as many MTAs other thanEitan Adler2013-05-111-1/+1
| | | | | | | | | | | sendmail support the use of /etc/aliases. PR: conf/176098 Submitted by: ak MFC after: 2 weeks Notes: svn path=/head/; revision=250533
* Bring /etc/protocols up to date.Eitan Adler2013-05-101-0/+7
| | | | | | | | PR: conf/175397 Submitted by: ak Notes: svn path=/head/; revision=250453
* - Fix exit status when ip6addrctl_verbose=yes [*]Hiroki Sato2013-05-041-26/+34
| | | | | | | | | | | | - Use the absolute pathname for ip6addrctl. - Use "install" instead of "add" to reduce the number of invocations. Reported by: Tatsuki Makino [*] PR: conf/175006 [*] MFC after: 1 week Notes: svn path=/head/; revision=250240
* Introduce and use new flag -L to mount for mounting only late filesystems.Chris Rees2013-05-041-13/+4
| | | | | | | | | | | | | Previously, rc.d/mountlate mounted *all* filesystems, causing problems with background NFS mounts being mounted twice. PR: conf/137629 Submitted by: eadler (original concept) Reviewed by: mjg Approved by: hrs Notes: svn path=/head/; revision=250235
* Make an attempt to detect missing MTREE files in distrib-dirs. NotBrooks Davis2013-04-301-1/+1
| | | | | | | | | | | perfect, but this is just a developer seatbelt. PR: conf/176897 Submitted by: Garrett Cooper <yaneurabeya@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=250116
* Minor changes to force commit these files so new freebsd*.cf files areGregory Neil Shapiro2013-04-212-2/+1
| | | | | | | | | built to use the new sendmail-8.14.6/cf tree. MFC after: 4 days Notes: svn path=/head/; revision=249732
* Also call configtest before reload to ensure working config.Bryan Drewery2013-04-161-0/+1
| | | | | | | | | Approved by: jhb MFC after: 1 week X-MFC-With: r249489 Notes: svn path=/head/; revision=249555
* Run configtest before restarting so that the system is notBryan Drewery2013-04-141-0/+1
| | | | | | | | | | left without a running sshd. Approved by: des MFC after: 1 week Notes: svn path=/head/; revision=249489
* Upgrade our copy of llvm/clang to trunk r178860, in preparation of theDimitry Andric2013-04-121-1/+1
| | | | | | | | | | | | upcoming 3.3 release (branching and freezing expected in a few weeks). Preliminary release notes can be found at the usual location: <http://llvm.org/docs/ReleaseNotes.html> An MFC is planned once the actual 3.3 release is finished. Notes: svn path=/head/; revision=249423
* Regenerate usb.confHans Petter Selasky2013-04-061-10/+124
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=249210
* Remove periodic script for ataraid(4) and add instead script for graid(8).Alexander Motin2013-04-044-37/+38
| | | | Notes: svn path=/head/; revision=249095
* Format per etc/mtree/READMEEd Maste2013-04-011-91/+91
| | | | | | | | - Spaces instead of tabs - Sort some i18n entries Notes: svn path=/head/; revision=248979
* rc.subr: disabling globbing while processing devfs rulesAndriy Gapon2013-03-281-1/+7
| | | | | | | | | | | The rules themselves typically have shell-like patterns and it is incorrect when they get replaced with matching filesystem entries. Shell magic by: jilles MFC after: 2 weeks Notes: svn path=/head/; revision=248820
* rc.d/sysctl: Fix error messages about unknown OIDs.Jilles Tjoelker2013-03-221-3/+3
| | | | | | | | | | | | | | | | There are three situations where the sysctl script is called: 1. "start", very early 2. "lastload", near the end of rc 3. "reload", at admin request while the system is booted Ignore unknown OIDs in situation 1 because kernel modules may not be loaded yet and complain about them in situations 2 and 3. PR: conf/174595 Submitted by: Olivier Smedts Notes: svn path=/head/; revision=248620
* Fix typo in previous commit: Exit if */dev/dumpdev* does not exist, not ifColin Percival2013-03-191-1/+1
| | | | | | | | | | */bin/realpath* does not exist... Submitted by: markj Pointy hat to: cperciva Notes: svn path=/head/; revision=248488
* If dumpdev is AUTO but no dump device has been set -- i.e., there is no swapColin Percival2013-03-191-0/+3
| | | | | | | | | | | | | | | | | | space configured for rc.d/dumpon to designate for dumping -- then exit silently rather than with a > realpath: /dev/dumpdev: No such file or directory error message. An argument could be made that we should print a (more informative) warning message; but given that under the same conditions the rc.d/dumpon script will already print a > No suitable dump device was found warning, it seems that printing an additional > Dump device does not exist. Savecore not run. warning would be superfluous. Notes: svn path=/head/; revision=248487
* Add bhyve to examples.Neel Natu2013-03-181-0/+2
| | | | | | | | Requested by: alfred, julian Obtained from: NetApp Notes: svn path=/head/; revision=248484
* Finish portalfs removal.Antoine Brodin2013-03-101-2/+0
| | | | Notes: svn path=/head/; revision=248135
* Now that stable/7 is EOL, stop building INDEX-7.Colin Percival2013-03-071-1/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=247940
* Comment cosmetics: capitalize SCSIJens Schweikhardt2013-03-021-8/+8
| | | | | | | | | Fix some hard tabs in the wrong place. MFC after: 2 weeks Notes: svn path=/head/; revision=247660
* If rtadvd_interfaces is set to "none", start rtadvd without listingDag-Erling Smørgrav2013-02-251-0/+2
| | | | | | | | | any interfaces on the command line. MFC after: 1 week Notes: svn path=/head/; revision=247271
* Back out prev. change preventing /sys/sys symlink. It appears my installAndrey A. Chernov2013-02-221-1/+1
| | | | | | | was not very recent and not acts like 'ln -h' Notes: svn path=/head/; revision=247162
* In 'make hierarchy' don't install /sys/sys pointing to usr/src/sysAndrey A. Chernov2013-02-171-1/+1
| | | | | | | but just /sys pointing there Notes: svn path=/head/; revision=246913
* Revert r227528 and r227787. This hack is no longer necessary since r233580.Jung-uk Kim2013-02-151-4/+0
| | | | Notes: svn path=/head/; revision=246856
* Install <dev/agp/agpreg.h> and <dev/pci/pcireg.h> as userland headersJohn Baldwin2013-02-051-0/+4
| | | | | | | | | in /usr/include. MFC after: 2 weeks Notes: svn path=/head/; revision=246367
* Load the pfsync module if necessary.Dag-Erling Smørgrav2013-02-051-0/+1
| | | | | | | | Reviewed by: glebius@ MFC after: 1 week Notes: svn path=/head/; revision=246358
* Use the default policy table of RFC 6724.Hajimu UMEMOTO2013-02-021-10/+18
| | | | | | | MFC after: 1 weeks Notes: svn path=/head/; revision=246255
* When adding the directory ownership to the METALOG do it by name ratherBrooks Davis2013-01-301-3/+4
| | | | | | | | | | | than number as is done in install so as to differ binding of names to ids. Remove the -W flag from the mtree command so that the correct user and group is recorded rather than the default. Notes: svn path=/head/; revision=246127
* Log the addition of login.conf.db, passwd, pwd.db, and spwd.db via cat -l.Brooks Davis2013-01-291-3/+15
| | | | | | | Make cat a bootstrap tool to facilitate this. Notes: svn path=/head/; revision=246097
* Increase the "memorylocked" limit for the "daemon" class.Neel Natu2013-01-271-1/+1
| | | | | | | | | | | amd(8) requires more than the 64MB that is currently available to it so bump it up to 128MB. Reviewed by: kib Discussed with: avg, kib, zont Notes: svn path=/head/; revision=246002