Mateusz Guzik
ee38f2e004
Update userspace users of hw.bus.devctl_disable.
...
This fixes breakage resulting from r263754.
Reported by: AN <andy@neu.net>
Reviewed by: imp
Pointy hat to: me
2014-03-26 02:25:40 +00:00
Dimitry Andric
89963e04a2
Apply a temporary band-aid for building devd with clang 3.4, libstdc++
...
and -Wsystem-headers enabled (which is the default for any non-zero
WARNS level, crazily enough!). This is primarily meant to be MFC'd as
soon as possible.
MFC after: 3 days
2014-03-24 20:30:39 +00:00
Alan Somers
f227705fdb
Add several ATF tests that deal with multiple fibs. They're described in
...
several different PRs, but the tests share some common code, so I'm
committing them together.
sbin/ifconfig/tests
sbin/ifconfig/tests/fibs_test.sh
sbin/ifconfig/tests/Makefile
sbin/ifconfig/Makefile
Add fibs_test.sh, which regresses bin/187551
tests/sys/netinet
tests/sys/netinet/fibs_test.sh
tests/sys/netinet/udp_dontroute.c
tests/sys/netinet/Makefile
tests/sys/Makefile
Add fibs_test.sh, which regresses kern/167947, kern/187552
kern/187549, kern/187550, and kern/187553
etc/mtree/BSD.tests.dist
Add newly created directories
PR: bin/187551
PR: kern/167947
PR: kern/187552
PR: kern/187549
PR: kern/187550
PR: kern/187553
Discussed with: melifaro
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation
2014-03-20 20:39:41 +00:00
Jilles Tjoelker
a4986e9aea
Fix statically-linked build (WITHOUT_DYNAMICROOT).
2014-03-16 13:43:06 +00:00
Robert Watson
b881b8be1d
Update most userspace consumers of capability.h to use capsicum.h instead.
...
auditdistd is not updated as I will make the change upstream and then do a
vendor import sometime in the next week or two.
MFC after: 3 weeks
2014-03-16 11:04:44 +00:00
Julio Merino
1110970b4c
Add Makefile missed in r263220.
2014-03-16 02:32:44 +00:00
Julio Merino
c68de7484a
Migrate tools/regression/sbin/ to the new tests layout.
...
Pretty much all that this change does is shuffles the code around and hooks
it into the regular build. The code of the old tests has not changed.
2014-03-16 02:07:08 +00:00
Gleb Smirnoff
45c203fce2
Remove AppleTalk support.
...
AppleTalk was a network transport protocol for Apple Macintosh devices
in 80s and then 90s. Starting with Mac OS X in 2000 the AppleTalk was
a legacy protocol and primary networking protocol is TCP/IP. The last
Mac OS X release to support AppleTalk happened in 2009. The same year
routing equipment vendors (namely Cisco) end their support.
Thus, AppleTalk won't be supported in FreeBSD 11.0-RELEASE.
2014-03-14 06:29:43 +00:00
Eitan Adler
dda5b39711
multiple: Remove 3rd clause from BSD license where approved by the
...
regents and renumber.
This patch skips files in contrib/ and crypto/
Acked by: imp
Discussed with: emaste
2014-03-14 03:07:51 +00:00
Gleb Smirnoff
2c284d9395
Remove IPX support.
...
IPX was a network transport protocol in Novell's NetWare network operating
system from late 80s and then 90s. The NetWare itself switched to TCP/IP
as default transport in 1998. Later, in this century the Novell Open
Enterprise Server became successor of Novell NetWare. The last release
that claimed to still support IPX was OES 2 in 2007. Routing equipment
vendors (e.g. Cisco) discontinued support for IPX in 2011.
Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.
2014-03-14 02:58:48 +00:00
Kirk McKusick
e2f4949a4a
Avoid segment fault when attempting to clean up cylinder group
...
buffer cache.
PR: 187221
Submitted by: Petr Lampa <lampa@fit.vutbr.cz>
Obtained from: Petr Lampa <lampa@fit.vutbr.cz>
MFC after: 1 week
2014-03-12 01:28:21 +00:00
Jilles Tjoelker
fcc482b365
kldconfig: Remove some code for compatibility with FreeBSD 4.x.
...
Verified using md5(1).
2014-03-09 13:19:37 +00:00
Alan Somers
6a2ae0eb16
sbin/devd/devd.8
...
sbin/devd/devd.cc
Add a -q flag to devd that will suppress syslog logging at
LOG_NOTICE or below.
Requested by: ian@ and imp@
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation
2014-03-07 23:30:48 +00:00
Warner Losh
4ac70c829c
Slight if reordering to make error branch last.
2014-03-07 01:01:57 +00:00
Gleb Smirnoff
5a9ab48795
Fix compilation for 32-bit machines.
2014-03-05 19:26:22 +00:00
Mark Johnston
776f03d204
Log the name of the device that we failed to open rather than an
...
uninitialized buffer.
MFC after: 3 days
2014-03-05 04:15:17 +00:00
Gleb Smirnoff
fb3541ad15
Instead of playing games with casts simply add 3 more members to the
...
structure pf_rule, that are used when the structure is passed via
ioctl().
PR: 187074
2014-03-05 00:40:03 +00:00
Kirk McKusick
eff68496e2
Arguments for malloc and calloc should be size_t, not int.
...
Use proper bounds check when trying to free cached memory.
Spotted by: Xin Li
Tested by: Dmitry Sivachenko
MFC after: 2 weeks
2014-02-25 18:25:27 +00:00
Gleb Smirnoff
2dfe3ec23d
Better build fix.
2014-02-15 16:22:51 +00:00
Gleb Smirnoff
4a70ff6ddb
Fix build on 32bit arches broken by me in r261882.
2014-02-14 19:43:00 +00:00
Gleb Smirnoff
48278b8846
Once pf became not covered by a single mutex, many counters in it became
...
race prone. Some just gather statistics, but some are later used in
different calculations.
A real problem was the race provoked underflow of the states_cur counter
on a rule. Once it goes below zero, it wraps to UINT32_MAX. Later this
value is used in pf_state_expires() and any state created by this rule
is immediately expired.
Thus, make fields states_cur, states_tot and src_nodes of struct
pf_rule be counter(9)s.
Thanks to Dennis for providing me shell access to problematic box and
his help with reproducing, debugging and investigating the problem.
Thanks to: Dennis Yusupoff <dyr smartspb.net>
Also reported by: dumbbell, pgj, Rambler
Sponsored by: Nginx, Inc.
2014-02-14 10:05:21 +00:00
Gleb Smirnoff
9968f056d6
Fix world build WITHOUT_PF.
...
Sponsored by: Nginx, Inc.
2014-02-12 09:59:48 +00:00
Pawel Jakub Dawidek
bf90d007d3
If the main casperd process exits, zygote process should exit as well
...
instead of spinning.
Reported by: Mikhail <mp@lenta.ru>
2014-02-09 21:42:01 +00:00
Christian Brueffer
295a5bd78c
Refer newfs and growfs users to fsck_ffs instead of
...
fsck, the latter does not accept the referred to "-b" flag.
This change was accidently committed directly to 9-STABLE in
r237505.
PR: 82720
Submitted by: David D.W. Downey
MFC after: 1 week
2014-02-09 14:28:47 +00:00
Jilles Tjoelker
0b57dd6bde
init: Remove code to track line numbers in /etc/ttys.
...
The tracking generated warnings when the line number of an existing tty in
/etc/ttys changed, which would corrupt utmp (as it was indexed by the line
number). With utmpx, the line number no longer matters, so the tracking is
no longer needed.
2014-02-08 13:51:15 +00:00
Christian Brueffer
bb7a82ac0d
Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.
...
PR: 185382 (based on)
Submitted by: Loganaden Velvindron
Reviewed by: pjd
MFC after: 1 week
2014-02-06 21:36:14 +00:00
John Baldwin
e432d5f6a7
Drop the 3rd clause from all 3 clause BSD licenses where I am the sole
...
holder to convert them to 2 clause BSD licenses.
MFC after: 1 week
2014-02-05 18:13:27 +00:00
Christian Brueffer
8f932d9f17
Add a license (1) and do some cleanup.
...
Approved by: Stefan Bethke (original author, by private mail) (1)
MFC after: 1 week
2014-02-04 22:20:17 +00:00
Pawel Jakub Dawidek
49133c6d52
Protect ping(8) using Capsicum and Casper. This is protection against malicious
...
network packets that we parse and not against local users trying to gain root
access through ping's set-uid bit - this is handled by dropping privileges very
early in ping.
Submitted by: Mikhail <mp@lenta.ru>
2014-02-04 21:43:53 +00:00
Christian Brueffer
ca001f0b39
Unbreak mount_udf by passing the correct iovec length into
...
nmount(). This has been broken since r247856.
PR: bin/186193
Submitted by: Arnot Belohlavek
MFC after: 1 week
2014-02-04 21:15:15 +00:00
Eitan Adler
07561ab459
dhclient: change the pidfile's permissions to 644
...
This change permits non-root users to determine if dhclient is running
('service dhclient status wlan0').
Discussed with: mjg, cperciva
2014-02-03 04:22:29 +00:00
Christian Brueffer
f613b2d3b1
Remove the .Ex macro that I used for testing.
...
Pointy hat: brueffer
2014-02-01 12:33:58 +00:00
Christian Brueffer
30342ba61b
Bring the exit status wording closer to what .Ex would produce.
...
Fixes a typo in the process.
MFC after: 1 week
2014-02-01 12:30:00 +00:00
Baptiste Daroussin
3e8cf4954e
Add quiet support for kldstat -n
...
PR: bin/180014
Submitted by: Olivier Cochard-Labbé <olivier@cochard.me>
MFC after: 1 week
2014-01-22 17:15:17 +00:00
Baptiste Daroussin
48aad6a234
Fix dmesg(1) -> dmesg(8)
...
Reported by: trasz
2014-01-13 17:14:10 +00:00
Baptiste Daroussin
c8ebd84147
Fix typo
...
Reported by: dumbbell
2014-01-13 16:47:25 +00:00
Baptiste Daroussin
10c916252f
Point the user to dmesg(1) to get informations about why loading a module did fail
...
instead of printing the cryptic "Exec format error"
MFC after: 1 week
2014-01-13 16:23:09 +00:00
Alexander V. Chernikov
120dc21b86
Bump dates in nestat(1) and route(8) man pages.
...
Fix several small errors introduced by r260524.
Suggested by: glebius
MFC after: 2 weeks
2014-01-11 09:44:00 +00:00
Alexander V. Chernikov
17ed2e8ea8
Add -4/-6 shorthand for -finet/-finet6 in route(8) and netstat(8).
...
MFC after: 2 weeks
2014-01-10 23:08:18 +00:00
Alexander Motin
431d3a5bfc
Replace several instances of -1 with appropriate CAM_*_WILDCARD and types.
...
It was equal before r259397, but for good or bad, not any more for LUNs.
This change fixes at least CAM debugging.
2014-01-10 12:18:05 +00:00
Lars Engels
ba1dcabf6d
Check if the given argument to 'gpart add' is actually a geom device and
...
give a hint to use 'gpart create' before trying to add a partition.
Approved by: pjd
2014-01-09 20:06:14 +00:00
Baptiste Daroussin
ffc5432ffc
Fix error counting
2014-01-09 15:35:35 +00:00
Baptiste Daroussin
945508e42a
Import error message shown to the user when trying to load a module that is
...
already loaded or compiled withing the kernel
MFC after: 1 week
2014-01-09 15:34:23 +00:00
Alexander V. Chernikov
88d2c8fc87
Do some more sanity checks in route(8): require netmask to have
...
the same address family as destination.
Found by: jmg
MFC after: 2 weeks
2014-01-09 10:40:36 +00:00
Pawel Jakub Dawidek
796aef8d17
Always create /var/run/casper with correct permissions and don't depend on the
...
calling process' umask.
Submitted by: Mikhail <mp@lenta.ru>
2014-01-09 09:19:59 +00:00
Jim Harris
efa2980530
For "nvmecontrol devlist", show namespace sizes in terms of MB instead of
...
GB to improve granularity of the reporting - especially for namespaces
that are on the order of 1 or 2 GB.
Submitted by: Tony Beltran <anthony.beltran@emc.com>
MFC after: 3 days
2014-01-06 23:48:47 +00:00
Pawel Jakub Dawidek
41f48b56d0
Don't allow to create GELI providers with a sector size, which is no a
...
power of 2.
Noticed by: rwatson
MFC after: 3 days
2014-01-04 09:27:49 +00:00
Scott Long
9ccde11826
getopt returns an int, not a char, so use the correct data type for
...
the return value. Fixes powerpc tinderbox.
MFC after: 2 days
2013-12-30 16:49:31 +00:00
Scott Long
443b507745
Add globs.c, missed in r260068,260069
...
Submitted by: peter
Obtained from: Netflix
MFC after: 3 Days
2013-12-30 05:02:57 +00:00
Scott Long
9a2fcb2e6b
Add globs.c to the build now that it's a separate file.
...
Reviewed by: max
Obtained from: Netflix
MFC after: 3 days
2013-12-30 01:17:05 +00:00