aboutsummaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* Follow-up to r325967, which removed /etc/casper, by also removing itDimitry Andric2017-12-121-2/+0
| | | | | | | from BSD.root.dist, so it does not get created again on installworld. Notes: svn path=/head/; revision=326815
* sponge(1): revertEitan Adler2017-12-061-2/+0
| | | | | | | | | | | | I did a complete buildworld and test... with the program disconnected from the tree. Revert the change for now. (this keeps the change to .arclint which is still correct) Wearing: my pointhat Notes: svn path=/head/; revision=326614
* sponge(1): fix my testsEitan Adler2017-12-051-0/+2
| | | | | | | Reviewed by: kevans Notes: svn path=/head/; revision=326557
* dc(1): fix input of non-decimal fractional numbersAlan Somers2017-12-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Inputting fractional non-decimal numbers has never worked correctly in our OpenBSD-derived dc(1). It truncates the input to a number of decimal places equal to the number of hexadecimal (or whatever base) places given on the input. That's unacceptable, because many numbers require more precision to represent in base 10 than in their original bases. Fix this bug by using as many decimal places as needed to represent the input, up to the maximum of the global scale factor. This has one mildly surprising side effect: the scale of a number entered in non-decimal mode will no longer necessarily equal the number of hexadecimal (or whatever base) places given on the input. I think that's an acceptable behavior change, given that inputting fractional non-decimal numbers never worked in the first place, and the man page doesn't specify whether trailing zeros on the input should affect a number's scale. PR: 206230 Reported by: nibbana@gmx.us Reviewed by: pfg Differential Revision: https://reviews.freebsd.org/D13336 Notes: svn path=/head/; revision=326556
* Complete support for dtrace's -x setenv option.Mark Johnston2017-12-031-0/+2
| | | | | | | | | | | | | | This allows one to override the environment for processes created with dtrace -c. By default, the environment is inherited. This support was originally merged from illumos in r249367 but was lost when the commit was later reverted and then brought back piecemeal. Reported by: Samuel Lepetit <slepetit@apple.com> MFC after: 2 weeks Notes: svn path=/head/; revision=326499
* Add IPSec tests in tunnel modeKristof Provost2017-12-031-0/+4
| | | | | | | | | | | | Some IPSec in tunnel mode allowing to test multiple IPSec configurations. These tests are reusing the jail/vnet scripts from pf tests for generating complex network. Submitted by: olivier@ Differential Revision: https://reviews.freebsd.org/D13017 Notes: svn path=/head/; revision=326497
* Upgrade our copies of clang, llvm, lldb and libc++ to r319231 from theDimitry Andric2017-12-032-2/+2
| | | | | | | | | upstream release_50 branch. This corresponds to 5.0.1 rc2. MFC after: 2 weeks Notes: svn path=/head/; revision=326496
* pf.os: Add OpenBSD:6.1Eitan Adler2017-12-021-1/+4
| | | | | | | Obtained From: OpenBSD Notes: svn path=/head/; revision=326456
* Fix fetching ntp leapfile after 325256Alan Somers2017-11-281-3/+3
| | | | | | | | | | Submitted by: Ronald Klop <ronald-lists@klop.ws> Reviewed by: asomers MFC after: 3 days X-MFC-With: 325256 Notes: svn path=/head/; revision=326343
* Add basic tests for ctfconvert(1), fold(1) and rs(1)Alan Somers2017-11-271-0/+6
| | | | | | | | | | | | | | | | | Add basic command line parsing test coverage for these utilities. The tests were automatically generated based on their man pages. These tests can be expanded by hand for more thorough coverage. The aim is to generate very basic amount of test coverage for all the utilities in the base system. Tests generated via: https://github.com/shivansh/smoketestsuite/ Submitted by: shivansh Reviewed by: asomers MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D12424 Notes: svn path=/head/; revision=326289
* growfs: Commit the changes after expanding the partitionEmmanuel Vadot2017-11-271-0/+1
| | | | | | | | This fix the problem in arm snapshot present since at least 6 months where growfs was failing at firstboot and dropped you in a single user shell. Notes: svn path=/head/; revision=326278
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* Add /etc/autofs/include_nis, a non-rewriting NIS map.Edward Tomasz Napierala2017-11-272-0/+15
| | | | | | | | | | Submitted by: G. Paul Ziemba Suggested by: asomers@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=326252
* Rename /etc/autofs/include_nis to /etc/autofs/include_nis_nullfs, to indicateEdward Tomasz Napierala2017-11-272-4/+4
| | | | | | | | | | that this script provides nullfs map rewriting for local mounts. MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=326251
* Change formatting; no functional changes.Edward Tomasz Napierala2017-11-271-1/+6
| | | | | | | | MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=326250
* filter all passwords (not only changed) from periodic passwd backupEd Maste2017-11-211-1/+1
| | | | | | | | | | | | | | | | | | The periodic 200.backup-passwd script outputs any differences it finds in master.passwd, relative to the previous backup. It intends to elide the encrypted password field, but previously did so only for changed lines (i.e., those beginning with - or + in the diff). Apply the sed expression also to unchanged lines to also elide their passwords. PR: 223461 Reported by: Andre Albsmeier MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326074
* Add ATF tests for head(1)Alan Somers2017-11-201-0/+2
| | | | | | | | | | Submitted by: Fred Schlecter <https://github.com/fjs-github> Reviewed by: asomers, jilles MFC after: 3 weeks Differential Revision: https://github.com/freebsd/freebsd/pull/127 Notes: svn path=/head/; revision=326039
* Reduce code duplication for wlan(4) interface creation in network.subr.Andriy Voskoboinyk2017-11-191-15/+7
| | | | | | | | Since wlandebug(8) can accept any (original or changed) interface name this part may be simplified a bit. Notes: svn path=/head/; revision=326001
* Remove unused Casper configurations files.Mariusz Zaborski2017-11-187-20/+0
| | | | | | | This is a reaming of Casper daemon. Notes: svn path=/head/; revision=325967
* Remove xlint(1).Konstantin Belousov2017-11-161-2/+0
| | | | | | | | | | | | | | | | | | | | xlint is currently a fossil. We have much more useful and alive tools to do now what xlint did twenty years ago. I did not cleared some stuff which makes lint operational, in sys/x86/include and sys/sys, but I might do it as followup. The x86/include/ucontext.h and _types.h hacks made to please lint was the main reason for my initial proposal to classify xlint as obsolete and to remove it. Also I do not intend to clear sccs ids. Reviewed by: bapt, brooks, emaste, jhb, pfg Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D13015 Notes: svn path=/head/; revision=325893
* devd.conf: add mps and mpr to the scsi controllers regexAlan Somers2017-11-141-1/+2
| | | | | | | | | MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D12744 Notes: svn path=/head/; revision=325812
* Remove an unused variable.Brad Davis2017-11-141-2/+0
| | | | | | | Approved by: bdrewery Notes: svn path=/head/; revision=325786
* Add suitable knob ifconfig_<interface>_descr for static interface description.Eugene Grosbein2017-11-081-1/+6
| | | | | | | | | | Document availability of interface descriptions within rc.conf(5). Approved by: avg (mentor), mav (mentor) MFC after: 3 days Notes: svn path=/head/; revision=325559
* Make autofs(5) rc scripts run earlier, matching those for amd(8).Edward Tomasz Napierala2017-11-043-2/+5
| | | | | | | | | | This helps when you have some daemons that need to access automounted shares. PR: 221011 MFC after: 2 weeks Notes: svn path=/head/; revision=325400
* Add NIS automounter map, which supports rewriting of self-hosted locationsEdward Tomasz Napierala2017-11-042-1/+181
| | | | | | | | | | | to make them nullfs. PR: 221010 Submitted by: G. Paul Ziemba MFC after: 2 weeks Notes: svn path=/head/; revision=325392
* bluetooth: Default to discoverable offConrad Meyer2017-11-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Try to not expose bluetooth devices to external devices unless the user explicitly configures it, like any other radio/network device. Bluetooth has a long history of security problems and it is probably best to keep it disabled if not needed. Users who do use the bluetooth device should enable "discoverable" in bluetooth.device.conf(5) after this change. Keep in mind that bluetooth addresses can be discovered by passive monitoring or whole address-space scans[0], so a safety conscious user should also disable "connectable" in bluetooth.device.conf(5). [0]: https://www.sans.edu/cyber-research/security-laboratory/article/bluetooth Reviewed by: emax, hselasky Security: maybe Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D12831 Notes: svn path=/head/; revision=325287
* Regenerate etc/devd/usb.confAndriy Voskoboinyk2017-10-311-2/+10
| | | | | | | Reminded by: hselasky Notes: svn path=/head/; revision=325252
* Disconnect libpathconv tests since they require external perl and do not ↵Bryan Drewery2017-10-311-2/+0
| | | | | | | | | | | | work with kyua. This reverts r325192 and is due to libpathconv being connected in r325186. Reported by: ngie Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325247
* Fix installworld/distrib-dirs for pathconv after r325186.Bryan Drewery2017-10-311-0/+2
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325192
* Update several more URLsEitan Adler2017-10-291-1/+1
| | | | | | | | - Primarily http -> https - Primarily FreeBSD project URLs Notes: svn path=/head/; revision=325096
* Add support for compressed kernel dumps.Mark Johnston2017-10-252-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using a kernel built with the GZIO config option, dumpon -z can be used to configure gzip compression using the in-kernel copy of zlib. This is useful on systems with large amounts of RAM, which require a correspondingly large dump device. Recovery of compressed dumps is also faster since fewer bytes need to be copied from the dump device. Because we have no way of knowing the final size of a compressed dump until it is written, the kernel will always attempt to dump when compression is configured, regardless of the dump device size. If the dump is aborted because we run out of space, an error is reported on the console. savecore(8) is modified to handle compressed dumps and save them to vmcore.<index>.gz, as it does when given the -z option. A new rc.conf variable, dumpon_flags, is added. Its value is added to the boot-time dumpon(8) invocation that occurs when a dump device is configured in rc.conf. Reviewed by: cem (earlier version) Discussed with: def, rgrimes Relnotes: yes Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D11723 Notes: svn path=/head/; revision=324965
* Remove a atrun check that is nullified by r318443.Brad Davis2017-10-211-3/+0
| | | | | | | Approved by: will Notes: svn path=/head/; revision=324835
* Anticongestion refinements for ntpd rc script. This reverts r324681Cy Schubert2017-10-193-11/+20
| | | | | | | | | | | | | | and checks if ntp leapfile needs fetching before entering into the anticongestion sleep. Unfortunately some ports still use their own sleeps so, this commit doesn't address the complete problem which is compounded by every port that uses its own anticongestion mechanism. Discussed with: asomers Notes: svn path=/head/; revision=324738
* Style. Replace 8 spaces with a tab.Cy Schubert2017-10-171-1/+1
| | | | | | | MFC after: 2 weeks (with prior commit to this file) Notes: svn path=/head/; revision=324682
* Provide an option to run the anticongestion ntpd leapfile fetch inCy Schubert2017-10-172-2/+11
| | | | | | | | | | | | the background. Original patch submitted by feld@. I added the "optional" bit. Submitted by: feld (original patch) MFC after: 2 weeks Notes: svn path=/head/; revision=324681
* rc.subr: Remove test that is always true.Jilles Tjoelker2017-10-151-3/+1
| | | | | | | The code above always sets _pidcmd to a non-empty value. Notes: svn path=/head/; revision=324625
* Regenerate usb.confKristof Provost2017-10-131-2/+10
| | | | Notes: svn path=/head/; revision=324608
* pf: Basic automated test using VIMAGEKristof Provost2017-10-061-0/+4
| | | | | | | | | | | | | | | | | If VIMAGE is present we can start jails with their own pf instance. This makes it fairly easy to run tests. For example, this basic test verifies that drop/pass and icmp classification works. It's a basic sanity test for pf, and hopefully an example on how to write more pf tests. The tests are skipped if VIMAGE is not enabled. This work is inspired by the GSoC work of Panagiotes Mousikides. Differential Revision: https://reviews.freebsd.org/D12580 Notes: svn path=/head/; revision=324375
* Remove rcmds.Jeremie Le Hen2017-10-064-32/+4
| | | | | | | | | | | | | | | | | | | | | If they are still needed, you can find them in the net/bsdrcmds port. This was proposed June, 20th and approved by various committers [1]. They have been marked as deprecated on CURRENT in r320644 [2] on July, 4th. Both stable/11 and release/11.1 contain the deprecation notice (thanks to allanjude@). Note that ruptime(1)/rwho(1)/rwhod(8) were initially thought to be part of rcmds but this was a mistake and those are therefore NOT removed. [1] https://lists.freebsd.org/pipermail/freebsd-arch/2017-June/018239.html [2] https://svnweb.freebsd.org/base?view=revision&revision=320644 Reviewed by: bapt, brooks Differential Revision: https://reviews.freebsd.org/D12573 Notes: svn path=/head/; revision=324351
* fix the misleading log facility used in devd/zfs.confAndriy Gapon2017-10-051-12/+12
| | | | | | | | | | | | | | | | | | | | | In general, the "kern" facility is reserved for the kernel use only. If a program specifies that facility, then it is silently converted to "user" facility. So, using logger -p kern.xxx was both misleading and non-specific. Thus, change the facility to local7, so that users can create more adequate syslogd configurations. While local0..local7 are documented as being for local use we already have several examples in the tree where they are used because none of the named facilities really fits. Approved by: asomers MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D12420 Notes: svn path=/head/; revision=324312
* Remove spurious $flags; it's a paste-o from copying the line from rc.subr.Ian Lepore2017-09-291-1/+2
| | | | | | | Also, add a comment documenting the args passed to mount_md(). Notes: svn path=/head/; revision=324108
* Enhance mdmfs(8) to work with tmpfs(5).Ian Lepore2017-09-293-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Existing scripts and associated config such as rc.initdiskless, rc.d/var, and others, use mdmfs to create memory filesystems. That program accepts a size argument which allows SI suffixes and treats an unsuffixed number as a count of 512 byte sectors. That makes it difficult to convert existing scripts to use tmpfs instead of mdmfs, because tmpfs treats unsuffixed numbers as a count of bytes. The script logic to deal with existing user config that might include suffixed and unsuffixed numbers is... unpleasant. Also, there is no g'tee that tmpfs will be available. It is sometimes configured out of small-resource embedded systems to save memory and flash storage space. These changes enhance mdmfs(8) so that it accepts two new values for the 'md-device' arg: 'tmpfs' and 'auto'. With tmpfs, the program always uses tmpfs(5) (and fails if it's not available). With 'auto' the program prefers tmpfs, but falls back to using md(4) if tmpfs isn't available. It also handles the -s <size> argument so that the mdconfig interpetation of unsuffixed numbers applies when tmpfs is used as well, so that existing user config keeps working after a switch to tmpfs. A new rc setting, mfs_type, is added to etc/defaults/rc.conf to let users force the use of tmpfs or md; the default value is "auto". Differential Revision: https://reviews.freebsd.org/D12301 Notes: svn path=/head/; revision=324107
* Do not actually install uneeded alias for manBaptiste Daroussin2017-09-262-29/+0
| | | | Notes: svn path=/head/; revision=324002
* Remove unneeded locales and alias man directoriesBaptiste Daroussin2017-09-261-26/+0
| | | | | | | | | | In base, locales (and encoding) specific directories are not used by any tool. Just remove them. While here also remove the cat page directory for openssl Notes: svn path=/head/; revision=324001
* Remove the cat pages directory now that catman(1) is goneBaptiste Daroussin2017-09-251-142/+4
| | | | Notes: svn path=/head/; revision=323996
* Regenerate usb.conf .Hans Petter Selasky2017-09-201-3/+19
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=323811
* Deorbit catman. The tradeoff of disk for performance has long since tippedGordon Tetlow2017-09-133-62/+1
| | | | | | | | | | | | | in favor of just rendering the manpage instead of relying on pre-formatted catpages. Note, this does not impede the ability to use existing catpages, it just removes the utility to generate them. Reviewed by: imp, allanjude Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D12317 Notes: svn path=/head/; revision=323550
* Add basic tests for chflags, mkdir, rcp, and rmdirAlan Somers2017-09-071-0/+8
| | | | | | | | | | | | | | | | Add basic command line parsing test coverage for these utilities. The tests were automatically generated based on their man pages. These tests can be expanded by hand for more thorough coverage. The aim is to generate very basic amount of test coverage for all the utilities in the base system. Submitted by: shivansh Reviewed by: asomers, brooks MFC after: 3 weeks Sponsored by: Google, Inc (GSoC 2017) Differential Revision: https://reviews.freebsd.org/D12036 Notes: svn path=/head/; revision=323275
* Fix 100.chksetuid and 110.neggrpperm for mountpoints with spacesAlan Somers2017-08-253-2/+15
| | | | | | | | | | | Also, fix them for mountpoints with tabs. PR: 48325 Reported by: pguyot@kallisys.net, aaron@baugher.biz MFC after: 3 weeks Notes: svn path=/head/; revision=322868
* Bring back the much more readable unified format for differences inMarius Strobl2017-08-201-3/+3
| | | | | | | | | | | | | | /etc/{group,master.passwd}. This was originally turned on for all of /etc/{aliases,group,master.passwd} in r55196, but then backed out only for the latter two in r56697, as the adaption of the sed(1)ing done in r56308 was incorrect. This left us with inconsistent diff(1) formats in the daily output of periodic(8) ever since, despite in r56697 having been promised to be revisited. So properly adapt the password hash filtering to the unified format and turn the later on again for /etc/{group,master.passwd}, too. Notes: svn path=/head/; revision=322726