]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoAdd a new option to edquota(8) - "-f", which will
yar [Fri, 28 Sep 2001 10:22:36 +0000 (10:22 +0000)]
Add a new option to edquota(8) - "-f", which will
allow to limit the prototype quota distribution (-p)
to a single filesystem. Useful when initializing
quotas on a newly added disk.

PR: bin/30816
Submitted by: Dmitry Morozovsky <marck@rinet.ru>

22 years agoUnwind some more macros. NFSMADV() was kinda silly since it was right
peter [Fri, 28 Sep 2001 04:37:08 +0000 (04:37 +0000)]
Unwind some more macros.  NFSMADV() was kinda silly since it was right
next to equivalent m_len adjustments.  Move the nfsm_subs.h macros
into groups depending on which phase they are used in, since that
affects the error recovery requirements.  Collect some of the common error
checking into a single macro as preparation for unwinding some more.
Have nfs_rephead return a value instead of secretly modifying args.
Remove some unused function arguments that were being passed around.
Clarify nfsm_reply()'s error handling (I hope).

22 years agoOops. I forgot to cvs rm this before. There is a common nfsproto.h.
peter [Fri, 28 Sep 2001 04:31:23 +0000 (04:31 +0000)]
Oops. I forgot to cvs rm this before.  There is a common nfsproto.h.
This was a repo copy leftover.

22 years agoRemove linux_getpgid(). We map the syscall natively now.
marcel [Fri, 28 Sep 2001 01:40:51 +0000 (01:40 +0000)]
Remove linux_getpgid(). We map the syscall natively now.

PR: kern/21402

22 years agoo Remove the linux_setpgid() stub.
marcel [Fri, 28 Sep 2001 01:39:19 +0000 (01:39 +0000)]
o  Remove the linux_setpgid() stub.
o  Stop using linux_getpgid(); use getpgid() instead.

PR: kern/21402

22 years agoStop using linux_getpgid(). The implementation at this time is
marcel [Fri, 28 Sep 2001 01:36:45 +0000 (01:36 +0000)]
Stop using linux_getpgid(). The implementation at this time is
broken and fixing it only creates a duplicate of what is already
in the FreeBSD kernel. Therefore, map the syscall directly to
getpgid().

PR: kern/21402
Submitted by: Christian Weisgerber <naddy@mips.inka.de>

While here, redefine the second entry for setpgid() so that we
don't need a stub. This is achieved by giving the second instance
the type NODEF.

22 years agoRegen: Stop using linux_getpgid(). Use the native getpgid()
marcel [Fri, 28 Sep 2001 01:32:27 +0000 (01:32 +0000)]
Regen: Stop using linux_getpgid(). Use the native getpgid()
instead.

PR: kern/21402

22 years agoStop using linux_getpgid(). The implementation at this time is
marcel [Fri, 28 Sep 2001 01:30:59 +0000 (01:30 +0000)]
Stop using linux_getpgid(). The implementation at this time is
broken and fixing it only creates a duplicate of what is already
in the FreeBSD kernel. Therefore, map the syscall directly to
getpgid().

PR: kern/21402
Submitted by: Christian Weisgerber <naddy@mips.inka.de>

22 years agoMake the NODEF type usable. A syscall of type NODEF will only
marcel [Fri, 28 Sep 2001 01:21:57 +0000 (01:21 +0000)]
Make the NODEF type usable. A syscall of type NODEF will only
have its entry in the syscall table added. Nothing else is
done. This differs from type NOPROTO in that NOPROTO adds a
definition to syscall.h besides adding a sysent. A syscall can
now have multiple entries without conflict. Note that the
argssize is fixed and depends on the syscall name.

22 years agoSwap the src and dst arguments of the bcopy added in the
marcel [Fri, 28 Sep 2001 01:15:30 +0000 (01:15 +0000)]
Swap the src and dst arguments of the bcopy added in the
previous commit. It ain't memcpy... *cough*

22 years agoUse rsync instead of tar and ssh to upload snapshots.
bmah [Fri, 28 Sep 2001 00:47:17 +0000 (00:47 +0000)]
Use rsync instead of tar and ssh to upload snapshots.

This commit got sucked into a prior commit by mistake.

22 years agoNew release notes: bge(4), ng_gif(4), ng_gif_demux(4), ng_ip_input(4),
bmah [Fri, 28 Sep 2001 00:45:31 +0000 (00:45 +0000)]
New release notes:  bge(4), ng_gif(4), ng_gif_demux(4), ng_ip_input(4),
tftpd(8) support for RFC 2349.

22 years agoMention that gif interfaces are created at runtime and refer the
brooks [Fri, 28 Sep 2001 00:22:44 +0000 (00:22 +0000)]
Mention that gif interfaces are created at runtime and refer the
administrator to the ifconfig create command.

MFC after: 1 week

22 years agonamei.h: move "struct componentname" definition outside "struct nameidata",
luigi [Fri, 28 Sep 2001 00:05:11 +0000 (00:05 +0000)]
namei.h: move "struct componentname" definition outside "struct nameidata",
and provide a valid STDC/C++ definition for function NDINIT

queue.h libkern.h: put explicit casts from void * in insque, remque and memset

(for the records, these changes are necessary to let the files
compile with g++, which is used to build a FreeBSD module
for "Click" -- see www.pdos.lcs.mit.edu/click/ .
Given that they have zero impact on our code, it is worthwhile
to have them in.

MFC after: 3 days

22 years agoRemove a couple unintentional mentions of Ethernet that crept in from
brooks [Fri, 28 Sep 2001 00:02:50 +0000 (00:02 +0000)]
Remove a couple unintentional mentions of Ethernet that crept in from
ng_ether.c.

22 years agoAdd device driver support for the Broadcom BCM570x family of gigabit
wpaul [Thu, 27 Sep 2001 23:55:28 +0000 (23:55 +0000)]
Add device driver support for the Broadcom BCM570x family of gigabit
ethernet controllers. This adds support for the 3Com 3c996-T, the
SysKonnect SK-9D21 and SK-9D41, and the built-in gigE NICs on
Dell PowerEdge 2550 servers. The latter configuration hauls ass:
preliminary measurements show TCP speeds of over 900Mbps using
only normal size frames.

TCP/IP checksum offload, jumbo frames and VLAN tag insertion/stripping
are supported, as well as interrupt moderation.

Still need to fix autonegotiation support for 1000baseSX NICs, but
beyond that, driver is pretty solid.

22 years agoTwo main changes here:
luigi [Thu, 27 Sep 2001 23:44:27 +0000 (23:44 +0000)]
Two main changes here:
 + implement "limit" rules, which permit to limit the number of sessions
   between certain host pairs (according to masks). These are a special
   type of stateful rules, which might be of interest in some cases.
   See the ipfw manpage for details.

 + merge the list pointers and ipfw rule descriptors in the kernel, so
   the code is smaller, faster and more readable. This patch basically
   consists in replacing "foo->rule->bar" with "rule->bar" all over
   the place.
   I have been willing to do this for ages!

MFC after: 1 week

22 years agoMake nfsm_dissect() have an obvious return value.
peter [Thu, 27 Sep 2001 22:40:38 +0000 (22:40 +0000)]
Make nfsm_dissect() have an obvious return value.

22 years agoAdd the new ng_gif, ng_gif_demux, and ng_ip_input nodes to NOTES so they
brooks [Thu, 27 Sep 2001 22:11:37 +0000 (22:11 +0000)]
Add the new ng_gif, ng_gif_demux, and ng_ip_input nodes to NOTES so they
get compiled with LINT.

22 years agoBorrow Peter's peril-sensitive sunglasses and add a short parody quoted in
jhb [Thu, 27 Sep 2001 22:04:42 +0000 (22:04 +0000)]
Borrow Peter's peril-sensitive sunglasses and add a short parody quoted in
the unnamed IRC channel.

22 years agoAdd ng_ip_input. A new netgraph node for queuing IP packets into the
brooks [Thu, 27 Sep 2001 21:54:27 +0000 (21:54 +0000)]
Add ng_ip_input.  A new netgraph node for queuing IP packets into the
main IP input processing code.

22 years agoFix a manlint nit with the aac.4 manpage.
scottl [Thu, 27 Sep 2001 21:52:42 +0000 (21:52 +0000)]
Fix a manlint nit with the aac.4 manpage.

Submitted by: Brooks Davis <brooks@one-eyed-alien.net>

22 years agoAdd an apparently working entry for the BayStack 660, 2mbps direct
brooks [Thu, 27 Sep 2001 21:38:02 +0000 (21:38 +0000)]
Add an apparently working entry for the BayStack 660, 2mbps direct
sequence wireless card.

Approved by: imp (in principle)

22 years ago- Fix some minor whitespace nits.
jhb [Thu, 27 Sep 2001 21:04:13 +0000 (21:04 +0000)]
- Fix some minor whitespace nits.
- Move the SPECIAL_FLAG #define up next to the NOHOLDER #define and fix a
  little nit that caused it to be defined as -(sizeof (struct thread) + 1)
  instead of -2.

22 years agoUpdate list of urio devices supported.
bmah [Thu, 27 Sep 2001 20:51:07 +0000 (20:51 +0000)]
Update list of urio devices supported.

22 years agoRFC2349 (http://www.hypermail.org/rfcs/rfc2349.html) adds support
obrien [Thu, 27 Sep 2001 20:50:14 +0000 (20:50 +0000)]
RFC2349 (http://www.hypermail.org/rfcs/rfc2349.html) adds support
for negotiation of timeout and file size to the tftp protocol.  This
is required by some firmware like EFI boot managers (at least on
HP i2000 Itanium servers) in order to boot an image using tftp.  The
attached patch implements the RFC, and in doing so also implements
RFC2347; a generic tftp option extension.

PR: 30710
Submitted by: Espen Skoglund <esk@ira.uka.de>

22 years agoRestore this file to style(9). Mostly consists of whitespace fixes in the
jhb [Thu, 27 Sep 2001 20:39:52 +0000 (20:39 +0000)]
Restore this file to style(9).  Mostly consists of whitespace fixes in the
structure definitions.  There were some older whitespace bogons as well.

22 years agoFix a whitespace style nit.
jhb [Thu, 27 Sep 2001 20:33:15 +0000 (20:33 +0000)]
Fix a whitespace style nit.

22 years agoDisable the check in icu_setup() to see if a handler was already used as
jhb [Thu, 27 Sep 2001 19:03:52 +0000 (19:03 +0000)]
Disable the check in icu_setup() to see if a handler was already used as
the current interrupt thread routines will guarantee the condition this is
checking for at a higher level but inthand_add() and inthand_remove() as
they currently exist don't satisfy this condition.  (Which does need to be
fixed but which will take a bit more work.)  This fixes shared interrupts.

22 years agoModify a "You don't exist" message, pretty rude for transient YP failures.
green [Thu, 27 Sep 2001 18:54:42 +0000 (18:54 +0000)]
Modify a "You don't exist" message, pretty rude for transient YP failures.

22 years agoMFCs noted: ancontrol(8) -M, nl(1).
bmah [Thu, 27 Sep 2001 18:06:22 +0000 (18:06 +0000)]
MFCs noted:  ancontrol(8) -M, nl(1).

22 years agoFix typo: BGGPHY -> BRGPHY in one of the #defines I added the other day.
wpaul [Thu, 27 Sep 2001 17:32:49 +0000 (17:32 +0000)]
Fix typo: BGGPHY -> BRGPHY in one of the #defines I added the other day.

22 years agoBasically rewrite the sortq() routine which is used by 'lpc clean' and
gad [Thu, 27 Sep 2001 17:16:53 +0000 (17:16 +0000)]
Basically rewrite the sortq() routine which is used by 'lpc clean' and
'lpc tclean'.  In some obscure cases, the previous version could cause a
valid user job to be removed (by 'clean'), due to invalid assumptions in
the sort routine.  This was a rare problem, unless ctlinfo.c is compiled
with 'LEAVE_TMPCF_FILES' turned on (to check what that rtn was doing).

Reviewed by: Lack of outcry on -audit and freebsd-print@bostonradio.org
MFC after: 10 days

22 years agoWe need to build ``.depend'' early in the "build-tools" for the GCC
obrien [Thu, 27 Sep 2001 17:14:33 +0000 (17:14 +0000)]
We need to build ``.depend'' early in the "build-tools" for the GCC
"build-tools".  If we do not do this, the "depend" stage of
"buildworld" will build ``.depend'' and it will record the wrong
library and header dependencies (DESTDIR=${WORLDTMP}).  Even worse,
the "all" stage may clobber build-architecture-format build tools
built in the "build-tools" stage with target-architecture-format ones.

Submitted by: ru

22 years agoGate low level console output on mtx_lock_spin(&sio_lock), if the
jlemon [Thu, 27 Sep 2001 17:00:25 +0000 (17:00 +0000)]
Gate low level console output on mtx_lock_spin(&sio_lock), if the
sio_lock has been initialized.  This prevents the low level console
output (kernel printf) from clobbering the sio settings if the system
happens to be in the middle of comstart().

22 years agoAdd entries for vmware interfaces.
luigi [Thu, 27 Sep 2001 16:48:13 +0000 (16:48 +0000)]
Add entries for vmware interfaces.

22 years agoEnable the use of wildcards in the #ethertable section of
luigi [Thu, 27 Sep 2001 16:47:45 +0000 (16:47 +0000)]
Enable the use of wildcards in the #ethertable section of
/etc/hosts to map MAC addresses to hostnames.

Main use is to get addresses for vmware interfaces.

22 years agoAdd note about buildworld being fixed.
imp [Thu, 27 Sep 2001 15:43:04 +0000 (15:43 +0000)]
Add note about buildworld being fixed.

22 years agoFix typo in a comment.
luigi [Thu, 27 Sep 2001 12:01:57 +0000 (12:01 +0000)]
Fix typo in a comment.

MFC-after: 3 days

22 years agoRemove unused (and duplicate) struct ip_opts which is never used,
luigi [Thu, 27 Sep 2001 11:53:22 +0000 (11:53 +0000)]
Remove unused (and duplicate) struct ip_opts which is never used,
not referenced in Stevens, and does not compile with g++.
There is an equivalent structure, struct ipoption in ip_var.h
which is actually used in various parts of the kernel, and also referenced
in Stevens.

Bill Fenner also says:
... if you want the trivia, struct ip_opts was introduced
in in.h SCCS revision 7.9, on 6/28/1990, by Mike Karels.
struct ipoption was introduced in ip_var.h SCCS revision 6.5,
on 9/16/1985, by... Mike Karels.

MFC-after: 3 days

22 years agoUpdate a comment to reflect the param.c -> subr_param.c move.
murray [Thu, 27 Sep 2001 09:58:30 +0000 (09:58 +0000)]
Update a comment to reflect the param.c -> subr_param.c move.

PR: kern/30766
Submitted by: Kevin Way <kevin.way@overtone.org>

22 years agoQuick hack to print out the non-standard pppoe used by 3com
julian [Thu, 27 Sep 2001 08:02:27 +0000 (08:02 +0000)]
Quick hack to print out the non-standard pppoe used by 3com

22 years agoBe consistent with the way we talk about sysctl values.
murray [Thu, 27 Sep 2001 07:26:16 +0000 (07:26 +0000)]
Be consistent with the way we talk about sysctl values.

PR: docs/30343
Submitted by: Giorgos Keramidas <charon@labs.gr>

22 years agoThis driver can talk to the Rio600 as well, make it happen.
alfred [Thu, 27 Sep 2001 06:01:20 +0000 (06:01 +0000)]
This driver can talk to the Rio600 as well, make it happen.

Hardware (and patience) provided by: Andrew J Caines <A.J.Caines@halplant.com>

22 years agoNULL commit due to misunderstanding "cvs commit -m <blah>". The
brooks [Thu, 27 Sep 2001 03:14:17 +0000 (03:14 +0000)]
NULL commit due to misunderstanding "cvs commit -m <blah>".  The
previous log message "/home/brooks/ng_gif.message" should have read:

Add a pair of new netgraph nodes.  The ng_gif node is like ng_ether
except that it works on gif interfaces.  The ng_gif_demux node attaches
to an ng_gif node to allow separate processing or discarding of
different types of encapsulated traffic.

22 years agoReturn EINVAL if the passed intr is out of bounds.
jlemon [Thu, 27 Sep 2001 02:46:47 +0000 (02:46 +0000)]
Return EINVAL if the passed intr is out of bounds.

PR: 30857
Submitted by: David Xu <davidx@viasoft.com.cn>
MFC: 1 week

22 years agoTidy up nfsm_build usage. This is only partially finished.
peter [Thu, 27 Sep 2001 02:33:36 +0000 (02:33 +0000)]
Tidy up nfsm_build usage.  This is only partially finished.

22 years agoTip Correction : s/seconds/minutes/
murray [Thu, 27 Sep 2001 00:43:28 +0000 (00:43 +0000)]
Tip Correction : s/seconds/minutes/

PR: docs/30844
Submitted by: Andrew <andrew@ugh.net.au>

22 years agoThe initial commit contained an error in the license, this is the
brooks [Thu, 27 Sep 2001 00:04:29 +0000 (00:04 +0000)]
The initial commit contained an error in the license, this is the
correct one.

22 years agoOops, forgot to rm this last time.
peter [Wed, 26 Sep 2001 23:57:25 +0000 (23:57 +0000)]
Oops, forgot to rm this last time.

22 years ago/home/brooks/ng_gif.message
brooks [Wed, 26 Sep 2001 23:50:17 +0000 (23:50 +0000)]
/home/brooks/ng_gif.message

22 years agoUse LIST_ macros instead of TAILQ_ macros to be more like NetBSD.
brooks [Wed, 26 Sep 2001 23:37:15 +0000 (23:37 +0000)]
Use LIST_ macros instead of TAILQ_ macros to be more like NetBSD.

Obtained from: NetBSD

22 years agoThe number of ccd(4) devices is no longer set at compile time so stop
brooks [Wed, 26 Sep 2001 22:41:02 +0000 (22:41 +0000)]
The number of ccd(4) devices is no longer set at compile time so stop
trying to do it in the examples and config files.

22 years agoCall securelevel_gt with a credential. Also, s/p/td->td_proc/.
brooks [Wed, 26 Sep 2001 22:02:01 +0000 (22:02 +0000)]
Call securelevel_gt with a credential.  Also, s/p/td->td_proc/.

Submitted by: LINT

22 years agoInclude sys/proc.h for the definition of securelevel_ge().
brooks [Wed, 26 Sep 2001 21:53:20 +0000 (21:53 +0000)]
Include sys/proc.h for the definition of securelevel_ge().

Submitted by: LINT

22 years agoUnconditionally use basename.c source vs. only doing this if the libc we
obrien [Wed, 26 Sep 2001 20:51:51 +0000 (20:51 +0000)]
Unconditionally use basename.c source vs. only doing this if the libc we
are linking against does not have basename().  There is a buffer overflow
bug in lib/libc/gen/basename.c rev 1.1.  There is no way for us to test
what revision of basename() we have in libc, thus this change.

Requested by: ru

22 years agoo Re-enable support of system file flags in jail() by adding back the
rwatson [Wed, 26 Sep 2001 20:44:41 +0000 (20:44 +0000)]
o Re-enable support of system file flags in jail() by adding back the
  PRISON_ROOT to the suser_xxx() check.  Since securelevels may now
  be raised in specific jails, use of system flags can still be
  restricted in jail(), but in a more configurable way.
o Users of jail() expecting system flags (such as schg) to restrict
  jail()'s should be sure to set the securelevel appropriately in
  jail()'s.
o This fixes activities involving automated system flag removal in
  jail(), including installkernel and friends.

Obtained from: TrustedBSD Project

22 years agoo When performing a securelevel check as part of securelevel_ge() or
rwatson [Wed, 26 Sep 2001 20:41:48 +0000 (20:41 +0000)]
o When performing a securelevel check as part of securelevel_ge() or
  securelevel_gt(), determine first if a local securelevel exists --
  if so, perform the check based on imax(local, global).  Otherwise,
  simply use the global value.
o Note: even though local securelevels might lag below the global one,
  if the global value is updated to higher than local values, maximum
  will still be used, making the global dominant even if there is local
  lag.

Obtained from: TrustedBSD Project

22 years agoo Modify kern.securelevel MIB entry to return a local securelevel, if
rwatson [Wed, 26 Sep 2001 20:39:48 +0000 (20:39 +0000)]
o Modify kern.securelevel MIB entry to return a local securelevel, if
  one is present in the current jail, otherwise, to return the global
  securelevel.
o If the securelevel is being updated, require that it be greater than
  the maximum of local and global, if a local securelevel exists,
  otherwise, just maximum of the global.  If there is a local
  securelevel, update the local one instead of the global one.
o Note: this does allow local securelevels to lag behind the global one
  as long as the local one is not updated following a global increase.

Obtained from: TrustedBSD Project

22 years agoo Initialize per-jail securelevel from global securelevel as part of
rwatson [Wed, 26 Sep 2001 20:37:15 +0000 (20:37 +0000)]
o Initialize per-jail securelevel from global securelevel as part of
  jail creation.

Obtained from: TrustedBSD Project

22 years agoo Introduce pr_securelevel, which holds a per-jail securelevel.
rwatson [Wed, 26 Sep 2001 20:36:08 +0000 (20:36 +0000)]
o Introduce pr_securelevel, which holds a per-jail securelevel.

Obtained from: TrustedBSD Project

22 years agoo Modify ufs_setattr() so that it uses securelevel_gt() instead of
rwatson [Wed, 26 Sep 2001 20:31:37 +0000 (20:31 +0000)]
o Modify ufs_setattr() so that it uses securelevel_gt() instead of
  direct variable access.

Obtained from: TrustedBSD Project

22 years agoo Modify access control checks in mmap() to use securelevel_gt() instead
rwatson [Wed, 26 Sep 2001 20:29:39 +0000 (20:29 +0000)]
o Modify access control checks in mmap() to use securelevel_gt() instead
  of direct variable access.

Obtained from: TrustedBSD Project

22 years agoo securelevel_gt() patches came from pre-KSE alpha -- this revision
rwatson [Wed, 26 Sep 2001 20:27:23 +0000 (20:27 +0000)]
o securelevel_gt() patches came from pre-KSE alpha -- this revision
  fixes the compile and uses td->td_proc instead of p.

Obtained from: TrustedBSD Project

22 years agoo Modify pc98 syscons code to use securelevel_gt() instead of
rwatson [Wed, 26 Sep 2001 20:26:32 +0000 (20:26 +0000)]
o Modify pc98 syscons code to use securelevel_gt() instead of
  direct variable checks.  (Yet another API to perform direct hardware I/O).

Obtained from: TrustedBSD Project

22 years agoo Modify the access control checks for the ia64 /dev/mem (and friends)
rwatson [Wed, 26 Sep 2001 20:24:23 +0000 (20:24 +0000)]
o Modify the access control checks for the ia64 /dev/mem (and friends)
  to use securelevel_gt() instead of direct variable checks.

Obtained from: TrustedBSD Project

22 years agoAdd ERRORS section.
asmodai [Wed, 26 Sep 2001 20:22:44 +0000 (20:22 +0000)]
Add ERRORS section.
Mention thread safety and async-cancel safety status [not].
Add standards compliancy references.
Note strtol() is preferred over atoi().

MFC after: 2 weeks

22 years agoo Modify access control checks in linux_iopl() to use securelevel_gt()
rwatson [Wed, 26 Sep 2001 20:22:38 +0000 (20:22 +0000)]
o Modify access control checks in linux_iopl() to use securelevel_gt()
  rather than direct variable checks.  (Yet another API to perform
  direct hardware I/O.)

Obtained from: TrustedBSD Project

22 years agoo Modify pcvt ioctl() security checks to use securelevel_gt() instead
rwatson [Wed, 26 Sep 2001 20:21:28 +0000 (20:21 +0000)]
o Modify pcvt ioctl() security checks to use securelevel_gt() instead
  of direct securelevel variable checks.  (Yet another API to perform
  direct hardware I/O using KDENABIO.)

Obtained from: TrustedBSD Project

22 years agoo Modify spigot_open() to use securelevel_gt() instead of direct
rwatson [Wed, 26 Sep 2001 20:20:05 +0000 (20:20 +0000)]
o Modify spigot_open() to use securelevel_gt() instead of direct
  securelevel variable checks.

Obtained from: TrustedBSD Project

22 years agoo Modify generic specfs device open access control checks to use
rwatson [Wed, 26 Sep 2001 20:18:26 +0000 (20:18 +0000)]
o Modify generic specfs device open access control checks to use
  securelevel_ge() instead of direct securelevel variable checks.

Obtained from: TrustedBSD Project

22 years agoo Modify syscons ioctl securelevel checks to use securelevel_gt() (oh look,
rwatson [Wed, 26 Sep 2001 20:17:15 +0000 (20:17 +0000)]
o Modify syscons ioctl securelevel checks to use securelevel_gt() (oh look,
  yet another API to do direct hardware I/O access.)

Obtained from: TrustedBSD Project

22 years agoo Modify open() and close() for /dev/random to use securelevel_gt() instead
rwatson [Wed, 26 Sep 2001 20:15:42 +0000 (20:15 +0000)]
o Modify open() and close() for /dev/random to use securelevel_gt() instead
  of direct securelevel variable checks.

Obtained from: TrustedBSD Project

22 years agoo Modify access control code for /dev/pci device to use securelevel_gt()
rwatson [Wed, 26 Sep 2001 20:14:03 +0000 (20:14 +0000)]
o Modify access control code for /dev/pci device to use securelevel_gt()
  instead of direct securelevel variable test.

Obtained from: TrustedBSD Project

22 years agoo Modify access control code for the CAM SCSI pass-through device to
rwatson [Wed, 26 Sep 2001 20:13:16 +0000 (20:13 +0000)]
o Modify access control code for the CAM SCSI pass-through device to
  use securelevel_gt() instead of direct securelevel variable test.

Obtained from: TrustedBSD Project

22 years agoBe explicit about the POSIX version it conforms to [in this case 1990].
asmodai [Wed, 26 Sep 2001 20:10:10 +0000 (20:10 +0000)]
Be explicit about the POSIX version it conforms to [in this case 1990].
Put the error comment under the more appropriate ERRORS section.

22 years agoo Modify i386_set_ioperm() to use securelevel_gt() instead of
rwatson [Wed, 26 Sep 2001 20:08:15 +0000 (20:08 +0000)]
o Modify i386_set_ioperm() to use securelevel_gt() instead of
  direct securelevel variable checks.

Obtained from: TrustedBSD Project

22 years agoo Modify device open access control for /dev/mem and friends to use
rwatson [Wed, 26 Sep 2001 20:08:02 +0000 (20:08 +0000)]
o Modify device open access control for /dev/mem and friends to use
  securelevel_gt() instead of direct securelevel variable checks.

Obtained from: TrustedBSD Project

22 years agoo Modify IPFW and DUMMYNET administrative setsockopt() calls to use
rwatson [Wed, 26 Sep 2001 19:58:29 +0000 (19:58 +0000)]
o Modify IPFW and DUMMYNET administrative setsockopt() calls to use
  securelevel_gt() to check the securelevel, rather than direct access
  to the securelevel variable.

Obtained from: TrustedBSD Project

22 years agoo Modify static settime() to accept the proc * for the process requesting
rwatson [Wed, 26 Sep 2001 19:53:57 +0000 (19:53 +0000)]
o Modify static settime() to accept the proc * for the process requesting
  a time change, and callers so that they provide td->td_proc.
o Modify settime() to use securevel_gt() for securelevel checking.

Obtained from: TrustedBSD Project

22 years agoo Modify sysctl access control check to use securelevel_gt(), and
rwatson [Wed, 26 Sep 2001 19:51:25 +0000 (19:51 +0000)]
o Modify sysctl access control check to use securelevel_gt(), and
  clarify sysctl access control logic.

Obtained from: TrustedBSD Project

22 years agoChange standards compliancy order so that C and POSIX are grouped.
asmodai [Wed, 26 Sep 2001 19:42:39 +0000 (19:42 +0000)]
Change standards compliancy order so that C and POSIX are grouped.

22 years agoEnable vmiodirenable by default. Remove incorrect comment from sysctl.conf.
dillon [Wed, 26 Sep 2001 19:35:04 +0000 (19:35 +0000)]
Enable vmiodirenable by default.  Remove incorrect comment from sysctl.conf.

MFC after: 1 week

22 years agoRedo patch in 1.22 such that the header printing is reset when the
guido [Wed, 26 Sep 2001 19:35:03 +0000 (19:35 +0000)]
Redo patch in 1.22 such that the header printing is reset when the
process gets a SIGCONT

Reviewed by: kris@freebs.org
MFC after: 2 weeks

22 years agoTidy up and fix a runtime warning.
dfr [Wed, 26 Sep 2001 16:15:20 +0000 (16:15 +0000)]
Tidy up and fix a runtime warning.

22 years agoWARNSify.
ru [Wed, 26 Sep 2001 11:34:14 +0000 (11:34 +0000)]
WARNSify.

22 years agoThe "cat - -" feature was broken by the last commit.
ru [Wed, 26 Sep 2001 11:32:23 +0000 (11:32 +0000)]
The "cat - -" feature was broken by the last commit.
Restore the code that avoided closing and reopening
stdin.  This is also required by POSIX.  As a bonus,
enable multiple stdin reads with the -benstv flags,
by resetting the EOF condition on stdin.

22 years agoMake uio_yield() a global. Call uio_yield() between chunks
dillon [Wed, 26 Sep 2001 06:54:32 +0000 (06:54 +0000)]
Make uio_yield() a global.  Call uio_yield() between chunks
in vn_rdwr_inchunks(), allowing other processes to gain an exclusive
lock on the vnode.  Specifically: directory scanning, to avoid a race to the
root directory, and multiple child processes coring simultaniously so they
can figure out that some other core'ing child has an exclusive adv lock and
just exit instead.

This completely fixes performance problems when large programs core.  You
can have hundreds of copies (forked children) of the same binary core all
at once and not notice.

MFC after: 3 days

22 years agoGive people a chance to do things before fsck is run.
phk [Wed, 26 Sep 2001 06:17:25 +0000 (06:17 +0000)]
Give people a chance to do things before fsck is run.

MFC after: 2 weeks

22 years agoRun rc.devfs a little bit earlier.
obrien [Wed, 26 Sep 2001 06:01:40 +0000 (06:01 +0000)]
Run rc.devfs a little bit earlier.
Many people like to use generic devices in rc.syscons, etc..
So rc.devfs needs to run before those rc files.

Requested by: Jos Backus <josb@cncdsl.com>

22 years agoThe arg parameter is passed by value in Linux, but not in FreeBSD.
marcel [Wed, 26 Sep 2001 05:39:59 +0000 (05:39 +0000)]
The arg parameter is passed by value in Linux, but not in FreeBSD.
We still have to account for a copyin. Make sure the copyin will
succeed by passing the FreeBSD syscall a pointer to userspace,
albeit one that's automagically mapped into kernel space.

Reported by: mr, Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Tested by: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>

22 years agoLock the vnode while truncating the corefile. This fixes a panic
ps [Wed, 26 Sep 2001 01:24:07 +0000 (01:24 +0000)]
Lock the vnode while truncating the corefile.  This fixes a panic
with softupdates dangling deps.

Submitted by: peter
MFC: ASAP :)

22 years agoAdd a standard hack in the spirit of PCI_ENABLE_IO_MODES to allow systems
brooks [Wed, 26 Sep 2001 01:11:33 +0000 (01:11 +0000)]
Add a standard hack in the spirit of PCI_ENABLE_IO_MODES to allow systems
with weird PCI-PCI bridge configurations to work.  Defining
PCI_ALLOW_UNSUPPORTED_IO_RANGE causes the sanity checks to pass even
with out of range values.

Reviewed by: msmith

22 years agoFix (typo? pasteo?): panic("ffs_mountroot..." -> panic("ntfs_mountroot...")
fenner [Wed, 26 Sep 2001 00:36:33 +0000 (00:36 +0000)]
Fix (typo? pasteo?): panic("ffs_mountroot..." -> panic("ntfs_mountroot...")

22 years agoMake this 'make obj' safe
peter [Wed, 26 Sep 2001 00:13:08 +0000 (00:13 +0000)]
Make this 'make obj' safe

22 years agoRemove superflous parens after de-macroizing.
jhb [Wed, 26 Sep 2001 00:05:18 +0000 (00:05 +0000)]
Remove superflous parens after de-macroizing.

22 years agoInclude sys/ktr.h before sys/_lock.h to ensure LOCK_DEBUG is set to its
jhb [Tue, 25 Sep 2001 23:52:30 +0000 (23:52 +0000)]
Include sys/ktr.h before sys/_lock.h to ensure LOCK_DEBUG is set to its
proper value.

22 years agoMove the definition of LOCK_DEBUG from sys/lock.h to sys/_lock.h.
jhb [Tue, 25 Sep 2001 23:51:54 +0000 (23:51 +0000)]
Move the definition of LOCK_DEBUG from sys/lock.h to sys/_lock.h.

22 years agoClarify how to determine the firmware version.
scottl [Tue, 25 Sep 2001 22:33:53 +0000 (22:33 +0000)]
Clarify how to determine the firmware version.

Submitted by: Anders Andersson <anders@codefactory.se>
MFC after: 3 days

22 years agoo So, when <dd> e-mailed me and said that the comment was inverted
rwatson [Tue, 25 Sep 2001 21:08:33 +0000 (21:08 +0000)]
o So, when <dd> e-mailed me and said that the comment was inverted
  for securelevel_ge() and securelevel_gt(), I was a little surprised,
  but fixed it.  Turns out that it was the code that was inverted, during
  a whitespace cleanup in my commit tree.  This commit inverts the
  checks, and restores the comment.