summaryrefslogtreecommitdiffstats
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* Add ldconfig -soft to process the soft float abi libraries and put itimp2016-01-182-0/+28
| | | | into startup scripts for armv6. It acts much like ldconfig -32 does.
* Update mandoc to 20160116bapt2016-01-151-2/+0
|
* Wrap overlong comment lines.trasz2016-01-141-6/+6
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix the code to retry mount attempt in mountcritlocal if there aretrasz2016-01-141-1/+1
| | | | | | | | | any root mount holds. The previous one used a wrong conditional - the "err=$?" assignment resets "$?" to 0. Submitted by: jilles@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Install /etc/snmpd.config with 0600 permissions.glebius2016-01-141-4/+5
| | | | | | Noticed by: Pierre Kim Security: SA-16:06.snmpd Pointy hat to: glebius in 2005
* Integratengie2016-01-131-0/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tools/regression/geom_{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip} in to the FreeBSD test suite as tests/sys/geom/class/{concat,eli,gate,mirror,nop,raid3,shsec,stripe,uzip} The tools/regression/geom and tools/regression/geom_part testcases are being left alone because both test sets are both currently broken. The majority of this work was done on ^/user/ngie/more-tests2 . The differences are as follows: - tests/sys/geom/class/Makefile.inc is not present; it was inlined into the class's Makefiles for explicitness. - The testcases officially require root via kyua - The geom_gate(4) tests don't use the pidfile changes proposed in https://reviews.freebsd.org/D4836 . MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
| * MFhead @ r293815ngie2016-01-137-118/+257
| |\ | |/ |/|
| * Move sbin/geom/class/tests to tests/sys/geom/class and remove sbin/geom/testsngie2016-01-011-24/+26
| | | | | | | | | | | | This is inspired by parallel efforts being done on projects/zfsd (and makes more sense because these are functional tests of the subsystems, not the geom(8) commands
| * MFhead @ r292618ngie2015-12-298-263/+293
| |\
| * \ MFhead @ r292396ngie2015-12-172-0/+8
| |\ \
| * \ \ MFhead @ r292177ngie2015-12-141-0/+51
| |\ \ \
| * \ \ \ MFhead@r291879ngie2015-12-0612-26/+282
| |\ \ \ \
| * \ \ \ \ MFhead @ r291038ngie2015-11-182-1/+15
| |\ \ \ \ \
| * | | | | | Integrate tools/regression/geom* into the FreeBSD test suite under sbin/geom/...ngie2015-11-161-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | XXX: test
* | | | | | | ypldap(8) is a feature ready to be used to translate nis(8) database to ldap(3).araujo2016-01-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit, fix a core dump on ypldap(8) related with memory allocation. Also an example of how to set the ypldap.conf(5) properly is added to examples files. A new user _ypldap is required to be able to run ypldap(8) as well as in a chroot mode. Reviewed by: rodrigc (mentor), bjk Approved by: bapt (mentor) Relnotes: Yes Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D4744
* | | | | | | Try a little harder to remove firstboot and firstboot-reboot files inimp2016-01-061-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | case they accidentally get created as directories or with flags that prevent their removal. While I wouldn't normally go the extra mile here and let the normal unix rules prevail, the effects of failure are large enough that extra care is warranted.
* | | | | | | "source routing" in rpcbindasomers2016-01-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug in rpcbind for multihomed hosts. If the server had interfaces on two separate subnets, and a client on the first subnet contacted rpcbind at the address on the second subnet, rpcbind would advertise addresses on the first subnet. This is a bug, because it should prefer to advertise the address where it was contacted. The requested service might be firewalled off from the address on the first subnet, for example. usr.sbin/rpcbind/check_bound.c If the address on which a request was received is known, pass that to addrmerge as the clnt_uaddr parameter. That is what addrmerge's comment indicates the parameter is supposed to mean. The previous behavior is that clnt_uaddr would contain the address from which the client sent the request. usr.sbin/rpcbind/util.c Modify addrmerge to prefer to use an IP that is equal to clnt_uaddr, if one is found. Refactor the relevant portion of the function for clarity, and to reduce the number of ifdefs. etc/mtree/BSD.tests.dist usr.sbin/rpcbind/tests/Makefile usr.sbin/rpcbind/tests/addrmerge_test.c Add unit tests for usr.sbin/rpcbind/util.c:addrmerge. usr.sbin/rpcbind/check_bound.c usr.sbin/rpcbind/rpcbind.h usr.sbin/rpcbind/util.c Constify some function arguments Reviewed by: imp MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4690
* | | | | | | Use the more proper -f. Leave /bin/rm in place since that's whatimp2016-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | other rc scripts have, though it isn't strictly necessary.
* | | | | | | Use /bin/rm to remove /firstboot*. Otherwise rm -i alias is pickedimp2016-01-031-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | up and can cause issues on boot with the prompts. Fix the read-only root case with horrible kludge of mounting rw removing the files, then mounting ro. But since that's no more horrible than the kludge of using marker files in /. With this change, NanoBSD configs can safely use /firstboot + growfs to produce minimal images that grow to the size of the card.
* | | | | | | Add libsoft to the tree, just like lib32.imp2016-01-033-0/+25
| | | | | | |
* | | | | | | Update leap-seconds to latest. This will satisfy the ntpd leap-secondcy2016-01-011-116/+218
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version check. Obtained from: ftp://tycho.usno.navy.mil/pub/ntp/. See also: http://www.iers.org/SharedDocs/News/EN/BulletinC.html
* | | | | | Let old-style (shell-based) jail configuration handle jail names thatjamie2015-12-261-62/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | contain characters not allowed in a shell variable (such as "-"). These will be replaced by an underscore in jail config variables, e.g. for jail "foo-bar" you would set "jail_foo_bar_hostname". This is separate from the current code that changes the jail names if they contain "." or "/". It also doesn't apply to jails defined in a jail.conf file. PR: 191181 MFC after: 5 days
* | | | | | Enhance rc.d/netwait script to wait for late-attaching interfaces such asian2015-12-263-59/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | USB NICs. USB network hardware may not be enumerated and available when the rc.d networking scripts run. Eventually the USB attachment completes and devd events cause the network initialization to happen, but by then other rc.d scripts have already failed, because services which depend on NETWORKING (such as mountcritremote) may end up running before the network is actually ready. There is an existing netwait script, but because it is dependent on NETWORKING it runs too late to prevent failure of some other rc scripts. This change flips the order so that NETWORKING depends on netwait, and netwait now depends on devd and routing (the former is needed to make interfaces appear, and the latter is needed to run the ping tests in netwait). The netwait script used to be oriented primarily towards "as soon as any host is reachable the network is fully functional", so you gave it a list of IPs to try and you could optionally name an interface and it would wait for carrier on that interface. That functionality still works the same, but now you can provide a list of interfaces to wait for and it waits until each one of them is available. The ping logic still completes as soon as the first IP on the list responds. These changes were submitted by Brenden Molloy <brendan+freebsd@bbqsrc.net> in PR 205186, and lightly modified by me to allow a list of interfaces instead of just one. PR: 205186 Differential Revision: https://reviews.freebsd.org/D4608 (timeout w/o review)
* | | | | | Upgrade our copies of clang and llvm to 3.7.1 release. This is adim2015-12-252-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bugfix-only release, with no new features. Please note that from 3.5.0 onwards, clang and llvm require C++11 support to build; see UPDATING for more information.
* | | | | | Replace all whitespaces between port name and number with tabs,jlh2015-12-241-139/+139
| | | | | |
* | | | | | Integrate tools/regression/mac/mac_bsdextended andngie2015-12-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tools/regression/mac/mac_portacl into the FreeBSD test suite as tests/sys/mac/bsdextended and tests/sys/mac/portacl, respectively MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
* | | | | | Add port for IRC over TLS/SSL, as noted in RFC 7194.jlh2015-12-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 192505 Submitted by: loic.blot@unix-experience.fr MFC after: 3 days
* | | | | | Fix whitespace issues in BSD.usr.dist introduced in r291455ngie2015-12-191-2/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | | | | Integrate tools/regression/lib/libc/nss into the FreeBSD test suite asngie2015-12-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib/libc/tests/nss - Convert the testcases to ATF - Do some style(9) cleanups: -- Sort headers -- Apply indentation fixes -- Remove superfluous parentheses - Explicitly print out debug printfs for use with `kyua {debug,report}`; for items that were overly noisy, they've been put behind #ifdef DEBUG conditionals - Fix some format strings MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* | | | | Integrate tools/regression/lib/libc/resolv into the FreeBSD test suite asngie2015-12-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib/libc/tests/resolv Convert the testcases to ATF MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* | | | | Skip unavailable pools when running zfs pool scrubslidl2015-12-161-0/+4
| |_|_|/ |/| | | | | | | | | | | | | | | Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D4588
* | | | Start support for the RISC-V 64-bit architecture developed by UC Berkeley.br2015-12-111-0/+51
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RISC-V is a new ISA designed to support computer research and education, and is now become a standard open architecture for industry implementations. This is a minimal set of changes required to run 'make kernel-toolchain' using external (GNU) toolchain. The FreeBSD/RISC-V project home: https://wiki.freebsd.org/riscv. Reviewed by: andrew, bdrewery, emaste, imp Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D4445
* | | rc.subr: Check for running daemons before a custom start_cmd is executed.jilles2015-12-041-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently rc scripts implementing their own start_cmd do not enjoy the benefits of rc.subr's own check for rc_pid. This leads to around a third of ports with such a start_cmd not to check for the process at all and two thirds of ports to re-implement this check (sometimes wrongly). This patch moves the check for rc_pid to before ${rc_arg}_cmd is executed. Submitted by: Dirk Engling Reviewed by: feld MFC after: 1 week Relnotes: yes Differential Revision: https://reviews.freebsd.org/D4156
* | | Regenerate usb.conf .hselasky2015-12-031-12/+228
| | | | | | | | | | | | MFC after: 1 week
* | | Modify the rctl rc script to add multiple rules in a single run.trasz2015-12-011-2/+2
| | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | | Load our configuration before setting defaults, so local_unbound_workdirdes2015-12-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | actually has an effect. PR: 204931 Submitted by: Eugene Grosbein <eugen@grosbein.net> MFC after: 1 week
* | | Revert r290840ngie2015-12-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This request by the submitter was valid, but unfortunately there is a good deal of concern over breakage when DESTDIR != / or "", i.e. with release media. Making this change correct for all cases would make it markedly more complex than need be Requested by: bdrewery, ian, imp PR: 76362
* | | META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-12-012-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division
* | | Add support for the new "-manage-gids" option for the nfsuserd daemonrmacklem2015-11-303-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to the rc scripts. With these changes, setting nfs_server_managegids="YES" in /etc/rc.conf will enable this capability. Suggested by: jpaetzel Tested by: jpaetzel Reviewed by: rc (pending) MFC after: 2 weeks
* | | Add lib80211 to include path.adrian2015-11-301-0/+2
| | | | | | | | | | | | (This commit was missing from my lib80211 commit.)
* | | Install the public sanitizer headers. These are useful for programsdim2015-11-291-0/+2
| |/ |/| | | | | that want to directly interface with sanitizer internals.
* | Avoid FSCHG for INSTALL_AS_USER as well.bdrewery2015-11-161-1/+1
| | | | | | | | | | | | | | PR: 194189 X-MFC-With: r290628 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* | Bring back a couple of ISO8859-15 locales:bapt2015-11-161-0/+14
|/ | | | | | | | | - af_ZA.ISO8859-15 - en_AU.ISO8859-15 - en_CA.ISO8859-15 - en_NZ.ISO8859-15 - en_US.ISO8859-15 - fr_CA.ISO8859-15
* Integrate tools/regression/pipe in to the FreeBSD test suite asngie2015-11-161-0/+2
| | | | | | | | | | | | | | tests/sys/kern/pipe - Fix style(9) bugs - Fix compiler warnings - Use `nitems(x)` instead of `sizeof(x) / sizeof(*x)` pattern The testcases will be converted over to ATF eventually, but for now will be integrated in as plain C tests MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Integrate kern/kern_acct.c testcase in as tests/sys/kern/acct/acct_testngie2015-11-161-0/+2
| | | | | | | | | The :encode_tv_random_million testcase fails the epsilon tests few thousand times out of one million, so expect the testcase to fail MFC after: 1 week Submitted by: keramida Sponsored by: EMC / Isilon Storage Division
* Regenerate locales after readding ISO8859-1 for locales that have ISO8859-15bapt2015-11-151-14/+54
| | | | Requested by: arche
* Rework locale-links to not make symlinks on directories but symlinks on filesbapt2015-11-151-0/+18
| | | | | | | The goal here is to make the upgrade seamless for users Add aliases for zh_HK Remove bad symlinks created by previous bad upgrade procedure. Complete ObsoleteFiles.inc with more locales that have been removed
* Setup the symlink to /sys to mirror one's current source, e.g. if my sourcengie2015-11-151-1/+1
| | | | | | | | | | | | tree was /usr/src/svn, /sys would point to usr/src/svn This fixes the assumption that the source tree will always exist at ${DESTDIR}/usr/src MFC after: 1 week PR: 76362 Reported by: Scot Hetzel <swhetzel@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Fix a few files that where being incorrectly installed as one file. This ↵brd2015-11-132-1/+21
| | | | | | | was caused by the nvi upgrade fallout in r281994. So add the missing directories back to the mtree and add distrib-cleanup target to retroactively remove the files that should have been directories. Reviewed by: bdrewery Approved by: bdrewery
* Allow admins to specify a regex which is applied (in the negative) to thedes2015-11-131-1/+6
| | | | | | | output from df, similar to what security/200.chkmounts does. This can be useful to avoid listing automounted ZFS snapshots, for instance. MFC after: 1 week
OpenPOWER on IntegriCloud