aboutsummaryrefslogtreecommitdiff
path: root/share
Commit message (Collapse)AuthorAgeFilesLines
* Add ga_IE.UTF-8 locale.Yuri Pankov2018-11-269-1/+107
| | | | | | | | | | | | PR: 228587 Submitted by: Micil <micheal.maclochlainn@oegaillimh.ie> (LC_TIME) Reviewed by: bapt Approved by: kib (mentor, implicit) MFC after: 3 days Differential revision: https://reviews.freebsd.org/D17997 Notes: svn path=/head/; revision=340992
* src.conf.5: regen after r340984 (and r340841)Ed Maste2018-11-261-5/+15
| | | | Notes: svn path=/head/; revision=340985
* Enable the BSD crtbegin/crtend by default.Andrew Turner2018-11-231-1/+1
| | | | | | | | | | | It has passed an exp run on amd64 and i386, and has testing on arm64. On other architectures it is expected to run, however it can be disabled by building world with -DWITHOUT_BSD_CRTBEGIN. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=340841
* Add a taskqueue_quiesce(9) KPI.Mark Johnston2018-11-212-1/+10
| | | | | | | | | | | | | | | | This is similar to taskqueue_drain_all(9) but will wait for the queue to become idle before returning instead of only waiting for already-enqueued tasks to finish. This will be used in the opensolaris compat layer. PR: 227784 Reviewed by: cem MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17975 Notes: svn path=/head/; revision=340730
* ports(7): Do not mention deprecated WITH_OPENSSL_PORT.Mateusz Piotrowski2018-11-201-7/+1
| | | | | | | | | Reviewed by: eadler Approved by: krion (mentor, implicit), mat (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D18045 Notes: svn path=/head/; revision=340668
* Avoid retpolineplt with static linkingEd Maste2018-11-191-0/+3
| | | | | | | | | | | Statically linked binaries linked with -zretpolineplt crash at startup as lld produces a broken PLT. PR: 233336 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=340650
* Use UnicodeData.txt to create UTF-8 ctype map.Yuri Pankov2018-11-171-5168/+33860
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should provide more complete coverage of currently defined Unicode characters as compared to manually assembled one we use currently. Comparison of original and new UTF-8 ctype maps by character class: TYPE ORIG NEW alnum 94229 126029 alpha 93557 125419 blank 4 2 cntrl 73 137685 digit 469 622 graph 109615 137203 lower 1478 2145 print 109641 137222 punct 3428 797 rune 110481 274907 space 33 24 upper 983 1781 xdigit 469 622 Large number of added cntrl definitions is due to the fact that private-use planes are currently defined as such, this can change in the future. Discussed with: bapt Approved by: kib (mentor, implicit) MFC after: 1 month Differential revision: https://reviews.freebsd.org/D17842 Notes: svn path=/head/; revision=340491
* development(7): Replace "reboot" with "shutdown -r now"Mateusz Piotrowski2018-11-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We generally document shutdown(8) instead of reboot(8) as it's better for interactive use. In modern FreeBSD is matters a lot less, it's mostly just convention. One minor thing is that shutdown(8) produces a global message, while reboot(8) does not. It is believed that historically, some versions of reboot did not do appropriate safe shutdown checks and just rebooted. It's also just consistency: for example the handbook[1] documents shutdown. There is actually another important difference between reboot and shutdown -r now: reboot does not run /etc/rc.shutdown. This is because reboot has its own shutdown procedure and does not signal init like init 6 and shutdown -r now do (except in the case of rerooting via reboot -r). A few years ago jilles@ proposed changing reboot's default to signalling init (preserving reboot -q which just invokes the reboot system call), but this was not accepted. Perhaps this can be tried again for 13.0. [1]: https://www.freebsd.org/doc/handbook/boot-shutdown.html Reported by: eadler Reviewed by: eadler, jilles Approved by: krion (mentor) Differential Revision: https://reviews.freebsd.org/D16843 Notes: svn path=/head/; revision=340478
* ifnet(9): Add description of IFCAP_NETMAPVincenzo Maffione2018-11-161-1/+4
| | | | | | | | | | | | Describe IFCAP_NETMAP adding a cross reference to netmap(4). Reviewed by: bcr, 0mp Approved by: gnn (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D17988 Notes: svn path=/head/; revision=340475
* Hook mac_ntpd.4 up to the build.Mark Johnston2018-11-141-0/+1
| | | | | | | | | PR: 232757 Submitted by: Yasuhiro KIMURA <yasu@utahime.org> MFC after: 3 days Notes: svn path=/head/; revision=340438
* Add d_off support for multiple filesystems.Konstantin Belousov2018-11-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | The d_off field has been added to the dirent structure recently. Currently filesystems don't support this feature. Support has been added and tested for zfs, ufs, ext2fs, fdescfs, msdosfs and unionfs. A stub implementation is available for cd9660, nandfs, udf and pseudofs but hasn't been tested. Motivation for this feature: our usecase is for a userspace nfs server (nfs-ganesha) with zfs. At the moment we cache direntry offsets by calling lseek once per entry, with this patch we can get the offset directly from getdirentries(2) calls which provides a significant speedup. Submitted by: Jack Halford <jack@gandi.net> Reviewed by: mckusick, pfg, rmacklem (previous versions) Sponsored by: Gandi.net MFC after: 1 week Differential revision: https://reviews.freebsd.org/D17917 Notes: svn path=/head/; revision=340431
* retire LINKER_FEATURES filter flagEd Maste2018-11-121-3/+0
| | | | | | | | | | | And build libdl unconditionally. All supported FreeBSD linkers accept -F / --filter so there is no need to test for support. Discussed with: kib Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=340386
* libcasper: introduce cap_fileargs serviceMariusz Zaborski2018-11-121-0/+2
| | | | | | | | | | | | | | | | cap_fileargs is a Casper service which helps to sandbox applications that need access to the filesystem namespace. The main purpose of the service is to make easy to capsicumize applications that works on multiple files passed in argv. We have a couple example of using it but we still treat this service as an experimental one. Reviewed by: emsate (previous version), jonathan (partially) Discussed with: many Differential Revision: https://reviews.freebsd.org/D14407 Notes: svn path=/head/; revision=340373
* Use blank am_pm and t_fmt_ampm for de_AT and de_DE locales as apparentlyYuri Pankov2018-11-114-28/+12
| | | | | | | | | | | | | | | they use 24-hour clock notation. The visible change is that w(1) now uses 24-hour clock format as it checks for t_fmt_ampm presence. PR: 231771 Submitted by: Christoph Schönweiler <public2016@hauptsignal.at> Reviewed by: bapt Approved by: kib (mentor, implicit) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D17945 Notes: svn path=/head/; revision=340354
* Update nsswitch.conf(5) man page to make it clear additional sourcesEdward Tomasz Napierala2018-11-111-1/+3
| | | | | | | | | | | | might be provided by third party software. Reviewed by: bcr MFC after: 2 weeks Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17934 Notes: svn path=/head/; revision=340346
* Random tweaks to ddb(4) manual page.Edward Tomasz Napierala2018-11-101-4/+6
| | | | | | | | MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=340342
* Don't call stat(2) on nsswitch.conf(5) every time nsdispatch(3)Edward Tomasz Napierala2018-11-101-1/+7
| | | | | | | | | | | | | | | | | | | and dependent functions (eg getpwname(3)) get called. This can improve performance of binaries that perform a lot of name lookups, such as gssd(8). It also matches documented behaviour of Linux and Solaris. The old code is left in place, should anyone need it, guarded by #ifdef NS_REREAD_CONF. Reviewed by: imp, bcr MFC after: 2 weeks Relnotes: yes Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17934 Notes: svn path=/head/; revision=340339
* build(7): clarify buildenv target can be used for non-cross buildsEd Maste2018-11-101-5/+5
| | | | | | | | | | | | | | make buildenv can be used for building for the same architecture as the host (perhaps this is a degenerate case of cross-building). TARGET and TARGET_ARCH do not need to be set in this case. Reviewed by: bdrewery MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10759 Notes: svn path=/head/; revision=340329
* netmap: add load balancer programVincenzo Maffione2018-11-091-3/+6
| | | | | | | | | | | | | | | | Add the lb program, which is able to load-balance input traffic received from a netmap port over M groups, with N netmap pipes in each group. Each received packet is forwarded to one of the pipes chosen from each group (using an L3/L4 connection-consistent hash function). This also adds a man page for lb and some cross-references in related man pages. Reviewed by: bcr, 0mp Approved by: gnn (mentor) Differential Revision: https://reviews.freebsd.org/D17735 Notes: svn path=/head/; revision=340279
* Update rum(4) and run(4) man pages to reflect that newer versionsBjoern A. Zeeb2018-11-082-3/+4
| | | | | | | | | | of TP-LINK TL-WN321G are run(4) and not rum(4) anymore. Reported by: J (tech-lists zyxst.net) MFC after: 3 days Notes: svn path=/head/; revision=340251
* rc.subr(8): Document when required_* variables are processedMateusz Piotrowski2018-11-071-1/+9
| | | | | | | | | | | | | | | | At the moment rc.subr(8) supports the following required_* variables: required_dirs, required_files, required_modules and required_vars. This patch documents when every of those required_* variables is actually processed (before or after running start_precmd). Reviewed by: bcr Approved by: krion (mentor, implicit), mat (mentor, implicit) Sponsored by: Bally Wulff Games & Entertainment GmbH Differential Revision: https://reviews.freebsd.org/D17895 Notes: svn path=/head/; revision=340223
* Add the (untested) mips and sparc64 .init call sequences.Andrew Turner2018-11-071-7/+1
| | | | | | | | | | | The BSD crtbegin/crtend code now builds on all architectures, however further work is needed to check if it works correctly. MFC with: r339738 Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=340213
* Regen src.conf.5 after r340186Ed Maste2018-11-061-1/+6
| | | | Notes: svn path=/head/; revision=340188
* Add a WITH_BIND_NOW build knobEd Maste2018-11-063-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | The linker's -z now flag sets the DF_BIND_NOW flag, which signals to the runtime loader that all relocation processing should be performed at process startup rather than on demand. In combination with lld's default of enabling relro this causes the GOT to be made read-only when the process starts, preventing straightforward GOT overwrite attacks. Shawn Webb discovered a failure on HardenedBSD with BIND_NOW and ifunc use, which resulted in my rtld fix in r340137. Add a BIND_NOW knob as it is trivial to do so and is a useful ELF hardening feature. This change is equivalent to HardenedBSD's but not identical as there are other diffs/conflicts nearby. Note that our ELF Tool Chain readelf does not currently decode the DF_BIND_NOW flag - see PR232983. Reviewed by: brooks MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17846 Notes: svn path=/head/; revision=340186
* Regen src.conf.5 after r340150Ed Maste2018-11-051-2/+3
| | | | Notes: svn path=/head/; revision=340151
* Add hybrid C.UTF-8 locale being identical to default C locale exceptYuri Pankov2018-11-042-77/+78
| | | | | | | | | | | that it uses the same ctype maps and functions as other UTF-8 locales. Reviewed by: bapt, cem, eadler Approved by: kib (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D17833 Notes: svn path=/head/; revision=340144
* Make ng_pptpgre(8) netgraph node be able to restore order for packetsEugene Grosbein2018-11-041-2/+24
| | | | | | | | | | | | | | | | | | | | | | | reordered in transit instead of dropping them altogether. It uses sequence numbers of PPtPGRE packets. A set of new sysctl(8) added to control this ability or disable it: net.graph.pptpgre.reorder_max (1) defines maximum length of node's private reorder queue used to keep data waiting for late packets. Zero value disables reordering. Default value 1 allows the node to restore the order for two packets swapped in transit. Greater values allow the node to deliver packets being late after more packets in sequence at cost of increased kernel memory usage. net.graph.pptpgre.reorder_timeout (1) defines time value in miliseconds used to wait for late packets. It may be useful to increase this if reordering spot is distant. MFC after: 1 month Notes: svn path=/head/; revision=340135
* Drop ed(1) "crypto"Conrad Meyer2018-11-042-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You should not be using DES. You should not have been using DES for the past 30 years. The ed DES-CBC scheme lacked several desirable properties of a sealed document system, even ignoring DES itself. In particular, it did not provide the "integrity" cryptographic property (detection of tampering), and it treated ASCII passwords as 64-bit keys (instead of using a KDF like scrypt or PBKDF2). Some general approaches ed(1) users might consider to replace the removed DES mode: 1. Full disk encryption with something like AES-XTS. This is easy to conceptualize, design, and implement, and it provides confidentiality for data at rest. Like CBC, it lacks tampering protection. Examples include GELI, LUKS, FileVault2. 2. Encrypted overlay ("stackable") filesystems (EncFS, PEFS?, CryptoFS, others). 3. Native encryption at the filesystem layer. Ext4/F2FS, ZFS, APFS, and NTFS all have some flavor of this. 4. Storing your files unencrypted. It's not like DES was doing you much good. If you have DES-CBC scrambled files produced by ed(1) prior to this change, you may decrypt them with: openssl des-cbc -d -iv 0 -K <key in hex> -in <inputfile> -out <plaintext> Reviewed by: allanjude, bapt, emaste Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D17829 Notes: svn path=/head/; revision=340132
* Update to CLDR 34 and UNICODE 11.Yuri Pankov2018-11-0375-300827/+300265
| | | | | | | | | Discussed with: bapt Approved by: kib (mentor) MFC after: 1 month Notes: svn path=/head/; revision=340104
* Add missing .ElWarner Losh2018-11-031-0/+1
| | | | Notes: svn path=/head/; revision=340094
* Document disbale_phy in ahcich sysctls.Warner Losh2018-11-031-1/+8
| | | | Notes: svn path=/head/; revision=340093
* Make vop_symlink take a const target path.Brooks Davis2018-11-021-2/+2
| | | | | | | | | | | | | | | | | | | | This will enable callers to take const paths as part of syscall decleration improvements. Where doing so is easy and non-distruptive carry the const through implementations. In UFS the value is passed to an interface that must take non-const values. In ZFS, const poisoning would touch code shared with upstream and it's not worth adding diffs. Bump __FreeBSD_version for external API consumers. Reviewed by: kib (prior version) Obtained from: CheriBSD Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D17805 Notes: svn path=/head/; revision=340055
* nsmb.conf(5): Document the order of configuration loadingMateusz Piotrowski2018-11-021-1/+16
| | | | | | | | | | | | Based on the comments in /etc/nsmb.conf. Reviewed by: bcr Approved by: krion (mentor, implicit), mat (mentor, implicit) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D17810 Notes: svn path=/head/; revision=340048
* style: remove "All rights reserved" from commentEd Maste2018-11-011-2/+1
| | | | | | | | | | imp removed it from the template in r333391, so remove it from the example license header in style.9 as well. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=340033
* CMSG_DATA(3): Use consistent variable namesMateusz Piotrowski2018-11-011-5/+5
| | | | | | | | | | | | | | The description of CMSG_FIRSTHDR used two variables (mhdr and msg) to reference the same thing. Use msghdr consistency across the manual page instead. Reviewed by: bcr Approved by: krion (mentor, implicit), mat (mentor, implicit) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D17804 Notes: svn path=/head/; revision=340001
* Fix markup issues and add references to updated RFCs.Dag-Erling Smørgrav2018-11-012-14/+57
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=339985
* Add new rc keywords: enable, disable, deleteDevin Teske2018-10-312-2/+26
| | | | | | | | | | | | | | | | | | This adds new keywords to rc/service to enable/disable a service's rc.conf(5) variable and "delete" to remove the variable. When the "service_delete_empty" variable in rc.conf(5) is set to "YES" (default is "NO") an rc.conf.d file (in /etc/ or /usr/local/etc) is deleted if empty after modification using "service $foo delete". Submitted by: lme (modified) Reviewed by: 0mp (previous version), lme, bcr Relnotes: yes Sponsored by: Smule, Inc. Differential Revision: https://reviews.freebsd.org/D17113 Notes: svn path=/head/; revision=339971
* tpm(4): Add the STANDARDS and HISTORY sectionsMateusz Piotrowski2018-10-311-1/+39
| | | | | | | | | | | | | Also, link to the homepage of the BSSSD project, which developed the original driver. Reviewed by: bcr, kevans Approved by: krion (mentor, implicit), mat (mentor, implicit) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D17608 Notes: svn path=/head/; revision=339952
* Don't run cc --version during cleandir/obj stagesAlex Richardson2018-10-311-0/+11
| | | | | | | | | | | | | | This will no work when there is no cc in $PATH (which is the case before the cross-tools stage once we no longer inherit $PATH in $WMAKE). The variables set by bsd.compiler.mk/bsd.linker.mk are not needed in these stages so this avoids a little bit of makefile parsing. Reviewed By: emaste Approved By: jhb (mentor) Differential Revision: https://reviews.freebsd.org/D16814 Notes: svn path=/head/; revision=339946
* Add malloc_domainset(9) and _domainset variants to other allocator KPIs.Mark Johnston2018-10-304-16/+67
| | | | | | | | | | | | | | | | | | | | | | | | Remove malloc_domain(9) and most other _domain KPIs added in r327900. The new functions allow the caller to specify a general NUMA domain selection policy, rather than specifically requesting an allocation from a specific domain. The latter policy tends to interact poorly with M_WAITOK, resulting in situations where a caller is blocked indefinitely because the specified domain is depleted. Most existing consumers of the _domain KPIs are converted to instead use a DOMAINSET_PREF() policy, in which we fall back to other domains to satisfy the allocation request. This change also defines a set of DOMAINSET_FIXED() policies, which only permit allocations from the specified domain. Discussed with: gallatin, jeff Reported and tested by: pho (previous version) MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D17418 Notes: svn path=/head/; revision=339927
* Introduce an EXPERIMENTAL option for both src.conf(5) and the kernel.Bjoern A. Zeeb2018-10-302-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | In the last decade(s) we have seen both short term or long term projects committed to the tree which were considered or even marked "experimental". While out-of-tree development has become easier than it used to be in CVS times, there still is a need to have the code shipping with HEAD but not enabled by default. While people may think about VIMAGE as one of the recent larger, long term projects, early protocol implementations (before they are standardised) are others. (Free)BSD historically was one of the operating systems which would have running code at early stages and help develop and influence standardisation and the industry. Give developers an opportunity to be more pro-active for early adoption or running large scale code changes stumbling over each others but not the user's feet. I have not added the option to NOTES in order to avoid breaking supported option builds, which require constant compile testing. Discussed with: people in the corridor Notes: svn path=/head/; revision=339922
* Add a note that epoch(9) may change, to untie our hands for any future MFCs.Gleb Smirnoff2018-10-291-0/+4
| | | | Notes: svn path=/head/; revision=339889
* Expose some netdump configuration parameters through sysctl.Mark Johnston2018-10-291-1/+14
| | | | | | | | | Reviewed by: cem MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D17755 Notes: svn path=/head/; revision=339883
* Insert a .El line accidently committed in r339869.Michael Tuexen2018-10-291-0/+1
| | | | | | | | Reported by: gjb@ MFC after: 3 days Notes: svn path=/head/; revision=339870
* Fix a nitMichael Tuexen2018-10-291-2/+0
| | | | | | | | Reported by: gjb@ MFC after: 3 days Notes: svn path=/head/; revision=339869
* Fix jail examples in jib, jng, READMEDevin Teske2018-10-283-2/+12
| | | | | | | | | | | | | | | | | | | | | The provided example jail configs do not work for multiple interfaces. Multiple interfaces need to be specified as a comma separated list or using multiple += lines in jail.conf. In the given example, a space- separated string is used, which doesn't work with multiple interfaces. Also added a note to the README about VIMAGE being built-in by default on amd64 in FreeBSD 12, with appropriate instructions for loading the necessary netgraph ether module (ng_ether) since it is neither built- in nor autoloads. Submitted by: Ryan Moeller <ryan@freqlabs.com> Reported by: Ryan Moeller <ryan@freqlabs.com> MFC after: 3 days Sponsored by: Smule, Inc. Differential Revision: https://reviews.freebsd.org/D17697 Notes: svn path=/head/; revision=339843
* pf: Make ':0' ignore link-local v6 addresses tooKristof Provost2018-10-281-2/+2
| | | | | | | | | | | | When users mark an interface to not use aliases they likely also don't want to use the link-local v6 address there. PR: 201695 Submitted by: Russell Yount <Russell.Yount AT gmail.com> Differential Revision: https://reviews.freebsd.org/D17633 Notes: svn path=/head/; revision=339835
* rcorder(8): add support for /etc/rc.resume, so it calls "rcorder -k resume"Eugene Grosbein2018-10-271-0/+2
| | | | | | | | | | | | | | | | and runs scripts containing "KEYWORD: resume" with single "resume" argument. Working example is the port sysutils/cpupdate that defines extra_commands="resume" to reload CPU microcode cleared by suspend/resume sequence. This change does nothing for a system having no scripts with KEYWORD: resume. MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D15247 Notes: svn path=/head/; revision=339818
* Add initial descriptions for SCTP related MIB variable.Michael Tuexen2018-10-261-5/+191
| | | | | | | | | | This work was mostly done by Marie-Helene Kvello-Aune. MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D3583 Notes: svn path=/head/; revision=339791
* Redo r339563: Remove joy(4) driver.Warner Losh2018-10-262-120/+0
| | | | | | | | | | | | | | | This driver was marked as gone in 12. We're at 13 now. Remove it. Data from nycbug's dmesg cache shows only one potential user, suggesting it never was used much. However, even though this device has been obsolete for 15 years at least, sys/joystick.h is included in a number of graphics packages still, so that remains. A full exprun is needed before that can be removed. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D17629 Notes: svn path=/head/; revision=339776