]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoopt_mac.h is no longer required for any of these modules, remove from
Robert Watson [Tue, 22 Oct 2002 17:10:15 +0000 (17:10 +0000)]
opt_mac.h is no longer required for any of these modules, remove from
the dependencies.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoAdd Sun type 6 USB keyboard and mouse to supported device list.
Bruce A. Mah [Tue, 22 Oct 2002 17:09:23 +0000 (17:09 +0000)]
Add Sun type 6 USB keyboard and mouse to supported device list.

PR: 43974
Submitted by: Hendrik Scholz <hendrik@scholz.net>

21 years agoNew release notes: devctl, gbde(8), RAIDframe/raid(4), devd(8),
Bruce A. Mah [Tue, 22 Oct 2002 17:05:36 +0000 (17:05 +0000)]
New release notes:  devctl, gbde(8), RAIDframe/raid(4), devd(8),
removal of many (but not all) games.

21 years agoDon't enforce MAC Biba policy for socket visibility if Biba is not
Robert Watson [Tue, 22 Oct 2002 17:02:42 +0000 (17:02 +0000)]
Don't enforce MAC Biba policy for socket visibility if Biba is not
explicitly enabled.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoReserve a major number for NVIDIA.
Matthew N. Dodd [Tue, 22 Oct 2002 16:42:16 +0000 (16:42 +0000)]
Reserve a major number for NVIDIA.

21 years agoExplain to users that they may want to kldload aio.
Alfred Perlstein [Tue, 22 Oct 2002 16:12:27 +0000 (16:12 +0000)]
Explain to users that they may want to kldload aio.
Move Xref sections.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>

21 years agoChange the `mutex_prof' structure to use three variables contained
Robert Drehmel [Tue, 22 Oct 2002 16:06:28 +0000 (16:06 +0000)]
Change the `mutex_prof' structure to use three variables contained
in an anonymous structure as counters, instead of an array with
preprocessor-defined names for indices.  Remove the associated XXX-
comment.

21 years agoInvoke mac_check_vnode_mmap() during mmap operations on vnodes,
Robert Watson [Tue, 22 Oct 2002 15:56:44 +0000 (15:56 +0000)]
Invoke mac_check_vnode_mmap() during mmap operations on vnodes,
permitting policies to restrict access to memory mapping based on
the credential requesting the mapping, the target vnode, the
requested rights, or other policy considerations.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoIntroduce MAC_CHECK_VNODE_SWAPON, which permits MAC policies to
Robert Watson [Tue, 22 Oct 2002 15:53:43 +0000 (15:53 +0000)]
Introduce MAC_CHECK_VNODE_SWAPON, which permits MAC policies to
perform authorization checks during swapon() events; policies
might choose to enforce protections based on the credential
requesting the swap configuration, the target of the swap operation,
or other factors such as internal policy state.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoMissed in previous merge: export sizeof(struct oldmac) rather than
Robert Watson [Tue, 22 Oct 2002 15:33:33 +0000 (15:33 +0000)]
Missed in previous merge: export sizeof(struct oldmac) rather than
sizeof(struct mac).

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoMFi386: revision 1.543.
Yoshihiro Takahashi [Tue, 22 Oct 2002 15:25:25 +0000 (15:25 +0000)]
MFi386: revision 1.543.

21 years agoRemove more private MAKEDEV kludges.
Poul-Henning Kamp [Tue, 22 Oct 2002 15:25:19 +0000 (15:25 +0000)]
Remove more private MAKEDEV kludges.

21 years agoList some of the Compact Flash readers known to work with this driver.
Luigi Rizzo [Tue, 22 Oct 2002 15:23:13 +0000 (15:23 +0000)]
List some of the Compact Flash readers known to work with this driver.

MFC after: 3 days

21 years agoMerged from sys/isa/syscons_isa.c revision 1.20.
Yoshihiro Takahashi [Tue, 22 Oct 2002 15:22:49 +0000 (15:22 +0000)]
Merged from sys/isa/syscons_isa.c revision 1.20.

21 years agoNo longer needed.
Poul-Henning Kamp [Tue, 22 Oct 2002 15:22:36 +0000 (15:22 +0000)]
No longer needed.

21 years agoMFi386: revisions 1.189 and 1.190.
Yoshihiro Takahashi [Tue, 22 Oct 2002 15:19:46 +0000 (15:19 +0000)]
MFi386: revisions 1.189 and 1.190.

21 years agoRename the libc signal trampoline to __sigtramp to match netbsd. This
Jake Burkholder [Tue, 22 Oct 2002 15:15:39 +0000 (15:15 +0000)]
Rename the libc signal trampoline to __sigtramp to match netbsd.  This
should allow gdb to detect when we're executing in a signal trampoline.

21 years agoRemove the last traces of bogus MAKEDEV functionality.
Poul-Henning Kamp [Tue, 22 Oct 2002 15:07:50 +0000 (15:07 +0000)]
Remove the last traces of bogus MAKEDEV functionality.

21 years agoGive a real error on failure to mount DEVFS.
Poul-Henning Kamp [Tue, 22 Oct 2002 15:07:17 +0000 (15:07 +0000)]
Give a real error on failure to mount DEVFS.

21 years agoDon't use NO_MAKEDEV* option, its the default now.
Poul-Henning Kamp [Tue, 22 Oct 2002 15:04:32 +0000 (15:04 +0000)]
Don't use NO_MAKEDEV* option, its the default now.

21 years agoFix example, we do not need NO_MAKEDEV_RUN any more.
Poul-Henning Kamp [Tue, 22 Oct 2002 15:03:51 +0000 (15:03 +0000)]
Fix example, we do not need NO_MAKEDEV_RUN any more.

XXX: this example should be updated with a good example of devfs(8) rules.

21 years agoChange to match NO_MAKEDEV* -> MAKEDEV*.
Poul-Henning Kamp [Tue, 22 Oct 2002 15:02:53 +0000 (15:02 +0000)]
Change to match NO_MAKEDEV* -> MAKEDEV*.

21 years agoInvert the logic of the NO_MAKEDEV options to match the 5.0-R default install.
Poul-Henning Kamp [Tue, 22 Oct 2002 15:01:50 +0000 (15:01 +0000)]
Invert the logic of the NO_MAKEDEV options to match the 5.0-R default install.

21 years agoHook up a sample mac.conf to the install. The sample basically
Robert Watson [Tue, 22 Oct 2002 14:38:49 +0000 (14:38 +0000)]
Hook up a sample mac.conf to the install.  The sample basically
tells applications to print labels for all of the TrustedBSD-
generated policies, if they are present.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoReflect MAC kernel/user API changes into the libc MAC implementation.
Robert Watson [Tue, 22 Oct 2002 14:36:11 +0000 (14:36 +0000)]
Reflect MAC kernel/user API changes into the libc MAC implementation.
This removes a lot of complexity, since we basically just reserve
space on a retrieval of a label, and pass around strings.  Two new
elements: (1) consumers of the API must now declare what label
elements they are interested in retrieving, or (2) rely on the default
provided in a new configuration file, mac.conf.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoMove the label initialized flag into _label.h: it's no longer
Robert Watson [Tue, 22 Oct 2002 14:32:54 +0000 (14:32 +0000)]
Move the label initialized flag into _label.h: it's no longer
exported to userspace.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoAdapt MAC policies for the new user API changes; teach policies how
Robert Watson [Tue, 22 Oct 2002 14:31:34 +0000 (14:31 +0000)]
Adapt MAC policies for the new user API changes; teach policies how
to parse their own label elements (some cleanup to occur here in the
future to use the newly added kernel strsep()).  Policies now
entirely encapsulate their notion of label in the policy module.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years ago- Check that a process isn't a new process (p_state == PRS_NEW) before
John Baldwin [Tue, 22 Oct 2002 14:31:32 +0000 (14:31 +0000)]
- Check that a process isn't a new process (p_state == PRS_NEW) before
  trying to acquire it's proc lock since the proc lock may not have been
  constructed yet.
- Split up the one big comment at the top of the loop and put the pieces
  in the right order above the various checks.

Reported by: kris (1)

21 years agoSupport the new MAC user API in kernel: modify existing system calls
Robert Watson [Tue, 22 Oct 2002 14:29:47 +0000 (14:29 +0000)]
Support the new MAC user API in kernel: modify existing system calls
to use a modified notion of 'struct mac', and flesh out the new variation
system calls (almost identical to existing ones except that they permit
a pid to be specified for process label retrieval, and don't follow
symlinks).  This generalizes the label API so that the framework is
now almost entirely policy-agnostic.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRevised APIs for user process label management; the existing APIs relied
Robert Watson [Tue, 22 Oct 2002 14:27:44 +0000 (14:27 +0000)]
Revised APIs for user process label management; the existing APIs relied
on all label parsing occuring in userland, and knowledge of the loaded
policies in the user libraries.  This revision of the API pushes that
parsing into the kernel, avoiding the need for shared library support
of policies in userland, permitting statically linked binaries (such
as ls, ps, and ifconfig) to use MAC labels.  In these API revisions,
high level parsing of the MAC label is done in the MAC Framework,
and interpretation of label elements is delegated to the MAC policy
modules.  This permits modules to export zero or more label elements
to user space if desired, and support them in the manner they want
and with the semantics they want.  This is believed to be the final
revision of this interface: from the perspective of user applications,
the API has actually not changed, although the ABI has.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRegen.
Robert Watson [Tue, 22 Oct 2002 14:23:52 +0000 (14:23 +0000)]
Regen.

21 years agoFlesh out prototypes for __mac_get_pid, __mac_get_link, and
Robert Watson [Tue, 22 Oct 2002 14:22:24 +0000 (14:22 +0000)]
Flesh out prototypes for __mac_get_pid, __mac_get_link, and
__mac_set_link, based on __mac_get_proc() except with a pid,
and __mac_get_file(), __mac_set_file() except that they do
not follow symlinks.  First in a series of commits to flesh
out the user API.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoNote that id_t can also hold a gid_t. Realign comments.
Mike Barcroft [Tue, 22 Oct 2002 13:26:35 +0000 (13:26 +0000)]
Note that id_t can also hold a gid_t.  Realign comments.

21 years agoFix typo in comments (misspelled "necessary").
Sheldon Hearn [Tue, 22 Oct 2002 12:10:27 +0000 (12:10 +0000)]
Fix typo in comments (misspelled "necessary").

21 years agoLive with it: I had hoped to find a neat way to deal with all the magic
Poul-Henning Kamp [Tue, 22 Oct 2002 11:55:27 +0000 (11:55 +0000)]
Live with it:  I had hoped to find a neat way to deal with all the magic
numbers, but so far havn't come up with anything:  Add an #ifdef PC98.

21 years agoTypo: loose -> lose.
Giorgos Keramidas [Tue, 22 Oct 2002 11:46:06 +0000 (11:46 +0000)]
Typo: loose -> lose.

Submitted by: trevor

21 years agoChunk functions in libdisk take an extra arguement for all archs to accomodate
Poul-Henning Kamp [Tue, 22 Oct 2002 10:52:53 +0000 (10:52 +0000)]
Chunk functions in libdisk take an extra arguement for all archs to accomodate
PC98 with less ifdef madness.

21 years agoAvoid a lot of #ifdef PC98 code by giving a couple of the Chunk functions
Poul-Henning Kamp [Tue, 22 Oct 2002 10:51:58 +0000 (10:51 +0000)]
Avoid a lot of #ifdef PC98 code by giving a couple of the Chunk functions
an extra argument for all archs.

21 years agoUpdate for BSD.include.dist r1.60 (addition of include/dev/ofw).
Thomas Moestl [Tue, 22 Oct 2002 10:37:07 +0000 (10:37 +0000)]
Update for BSD.include.dist r1.60 (addition of include/dev/ofw).

Forgotten by: tmm
Prodded by: ru

21 years agoAdd back the typedefs for in_addr_t and in_port_t; some broken autoconf
Tim J. Robbins [Tue, 22 Oct 2002 09:57:34 +0000 (09:57 +0000)]
Add back the typedefs for in_addr_t and in_port_t; some broken autoconf
scripts expect <sys/types.h> to define them.

21 years agoPick up a prototyp from libdisk.h instead of having our own.
Poul-Henning Kamp [Tue, 22 Oct 2002 09:13:27 +0000 (09:13 +0000)]
Pick up a prototyp from libdisk.h instead of having our own.

21 years agoSwing the weed-whacker around libdisk:
Poul-Henning Kamp [Tue, 22 Oct 2002 09:13:02 +0000 (09:13 +0000)]
Swing the weed-whacker around libdisk:

Constify some things.
Staticize some things.
Remove some unused things.
Prototype some things.
Don't install a gazillion man-pages links.
Drop support for ON-TRACK disk-manager.

21 years ago_games is gone in rev. 1.305.
Ruslan Ermilov [Tue, 22 Oct 2002 08:30:31 +0000 (08:30 +0000)]
_games is gone in rev. 1.305.

21 years agoStart tick at the correct time (cpu_init_clocks), instead of cpu_startup.
Jake Burkholder [Tue, 22 Oct 2002 07:10:15 +0000 (07:10 +0000)]
Start tick at the correct time (cpu_init_clocks), instead of cpu_startup.

21 years agoAdd some magic bits necessary to turn the transmitter on for some
Mike Silbersack [Tue, 22 Oct 2002 02:33:50 +0000 (02:33 +0000)]
Add some magic bits necessary to turn the transmitter on for some
(newer) 556B chips.

Requested & tested by: Dinesh Nambisan <dinesh@nambisan.net>
Magic bits found by: Dave Dribin & Donald Becker

MFC After: 3 days

21 years agodetect idle kse correctly.
David Xu [Tue, 22 Oct 2002 02:27:19 +0000 (02:27 +0000)]
detect idle kse correctly.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r105672,
Assar Westerlund [Tue, 22 Oct 2002 02:13:32 +0000 (02:13 +0000)]
This commit was generated by cvs2svn to compensate for changes in r105672,
which included commits to RCS files with non-trunk default branches.

21 years agoimport 1.27 to fix buffer overflow:
Assar Westerlund [Tue, 22 Oct 2002 02:13:32 +0000 (02:13 +0000)]
import 1.27 to fix buffer overflow:

check size of rlen

Obtained from: Heimdal CVS

21 years ago.Xr mac.3 and posix1e.3 to mac.9. Point at sys/mac.h in posix1e.3.
Robert Watson [Tue, 22 Oct 2002 01:52:53 +0000 (01:52 +0000)]
.Xr mac.3 and posix1e.3 to mac.9.  Point at sys/mac.h in posix1e.3.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoThis update further fine tunes the locking of snapshot vnodes in
Kirk McKusick [Tue, 22 Oct 2002 01:23:00 +0000 (01:23 +0000)]
This update further fine tunes the locking of snapshot vnodes in
the ffs_copyonwrite routine to avoid a deadlock between the syncer
daemon trying to sync out a snapshot vnode and the bufdaemon
trying to write out a buffer containing the snapshot inode.
With any luck this will be the last snapshot race condition.

Sponsored by: DARPA & NAI Labs.

21 years agoThis update is a performance improvement when allocating blocks on
Kirk McKusick [Tue, 22 Oct 2002 01:14:25 +0000 (01:14 +0000)]
This update is a performance improvement when allocating blocks on
a full filesystem. Previously, if the allocation failed, we had to
fsync the file before rolling back any partial allocation of indirect
blocks. Most block allocation requests only need to allocate a single
data block and if that allocation fails, there is nothing to unroll.
So, before doing the fsync, we check to see if any rollback will
really be necessary. If none is necessary, then we simply return.
This update eliminates the flurry of disk activity that got triggered
whenever a filesystem would run out of space.

Sponsored by: DARPA & NAI Labs.

21 years agoThis update removes a race between unmount and lookup. The lookup
Kirk McKusick [Tue, 22 Oct 2002 01:06:44 +0000 (01:06 +0000)]
This update removes a race between unmount and lookup. The lookup
locks the mount point directory while waiting for vfs_busy to clear.
Meanwhile the unmount which holds the vfs_busy lock tried to lock
the mount point vnode. The fix is to observe that it is safe for the
unmount to remove the vnode from the mount point without locking it.
The lookup will wait for the unmount to complete, then recheck the
mount point when the vfs_busy lock clears.

Sponsored by: DARPA & NAI Labs.

21 years agoThis checkin reimplements the io-request priority hack in a way
Kirk McKusick [Tue, 22 Oct 2002 00:59:49 +0000 (00:59 +0000)]
This checkin reimplements the io-request priority hack in a way
that works in the new threaded kernel. It was commented out of
the disksort routine earlier this year for the reasons given in
kern/subr_disklabel.c (which is where this code used to reside
before it moved to kern/subr_disk.c):

----------------------------
revision 1.65
date: 2002/04/22 06:53:20;  author: phk;  state: Exp;  lines: +5 -0
Comment out Kirks io-request priority hack until we can do this in a
civilized way which doesn't cause grief.

The problem is that it is not generally safe to cast a "struct bio
*" to a "struct buf *".  Things like ccd, vinum, ata-raid and GEOM
constructs bio's which are not entrails of a struct buf.

Also, curthread may or may not have anything to do with the I/O request
at hand.

The correct solution can either be to tag struct bio's with a
priority derived from the requesting threads nice and have disksort
act on this field, this wouldn't address the "silly-seek syndrome"
where two equal processes bang the diskheads from one edge to the
other of the disk repeatedly.

Alternatively, and probably better: a sleep should be introduced
either at the time the I/O is requested or at the time it is completed
where we can be sure to sleep in the right thread.

The sleep also needs to be in constant timeunits, 1/hz can be practicaly
any sub-second size, at high HZ the current code practically doesn't
do anything.
----------------------------

As suggested in this comment, it is no longer located in the disk sort
routine, but rather now resides in spec_strategy where the disk operations
are being queued by the thread that is associated with the process that
is really requesting the I/O. At that point, the disk queues are not
visible, so the I/O for positively niced processes is always slowed
down whether or not there is other activity on the disk.

On the issue of scaling HZ, I believe that the current scheme is
better than using a fixed quantum of time. As machines and I/O
subsystems get faster, the resolution on the clock also rises.
So, ten years from now we will be slowing things down for shorter
periods of time, but the proportional effect on the system will
be about the same as it is today. So, I view this as a feature
rather than a drawback. Hence this patch sticks with using HZ.

Sponsored by: DARPA & NAI Labs.
Reviewed by: Poul-Henning Kamp <phk@critter.freebsd.dk>

21 years agoRemove the OpenBSD comatibility stuff. Many changes to be more style(9)
Semen Ustimenko [Tue, 22 Oct 2002 00:57:51 +0000 (00:57 +0000)]
Remove the OpenBSD comatibility stuff. Many changes to be more style(9)
compilant. Split two pieces if code into separate functions to do not
exceed line length due to indentation.

21 years agoAdd mac(9), a man page providing a basic introduction to the concepts
Robert Watson [Mon, 21 Oct 2002 23:51:18 +0000 (23:51 +0000)]
Add mac(9), a man page providing a basic introduction to the concepts
associated with the TrustedBSD MAC Framework, as well as some credits
to developers and contributors.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agomac_none is a stub policy without any functional implementation.
Robert Watson [Mon, 21 Oct 2002 23:16:23 +0000 (23:16 +0000)]
mac_none is a stub policy without any functional implementation.
Various cleanups, no functional changes:

- Fix a type in an entry point stub, socket checks accept
  sockets, not vnodes.
- Trailing whitespace
- Entry point sort order

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRemove the process state PRS_WAIT.
Julian Elischer [Mon, 21 Oct 2002 22:27:36 +0000 (22:27 +0000)]
Remove the process state PRS_WAIT.
It is never used. I left it there from pre-KSE days as I didn't know
if I'd need it or not but now I know I don't.. It's functionality
is in TDI_IWAIT in the thread.

21 years agoLobotomize MakeDev(), we don't need it with devfs.
Poul-Henning Kamp [Mon, 21 Oct 2002 22:03:03 +0000 (22:03 +0000)]
Lobotomize MakeDev(), we don't need it with devfs.

21 years agoDEVFS has been nmountified, so use nmount(2) to mount it.
Poul-Henning Kamp [Mon, 21 Oct 2002 21:41:19 +0000 (21:41 +0000)]
DEVFS has been nmountified, so use nmount(2) to mount it.

21 years agoAdd support for sparc64 kernel debugging.
Mark Peek [Mon, 21 Oct 2002 21:36:36 +0000 (21:36 +0000)]
Add support for sparc64 kernel debugging.

Submitted by: tmm

21 years agopsl.h isn't referenced anywhere that I could find on the alpha, so remove
Peter Wemm [Mon, 21 Oct 2002 21:08:32 +0000 (21:08 +0000)]
psl.h isn't referenced anywhere that I could find on the alpha, so remove
this stub.

21 years agoIntroduce mac_biba_copy() and mac_mls_copy(), which conditionally
Robert Watson [Mon, 21 Oct 2002 20:55:39 +0000 (20:55 +0000)]
Introduce mac_biba_copy() and mac_mls_copy(), which conditionally
copy elements of one Biba or MLS label to another based on the flags
on the source label element.  Use this instead of
mac_{biba,mls}_{single,range}() to simplify the existing code, as
well as support partial label updates (we don't update if none is
requested).

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoGrrr, s/PBP/BPB/ here as well.
John Baldwin [Mon, 21 Oct 2002 20:52:51 +0000 (20:52 +0000)]
Grrr, s/PBP/BPB/ here as well.

Noticed by: peter

21 years agoAdd the ability to specify a strict C99 environment with the
Mike Barcroft [Mon, 21 Oct 2002 20:50:30 +0000 (20:50 +0000)]
Add the ability to specify a strict C99 environment with the
_C99_SOURCE constant, which should be defined before including any
standard headers.

21 years agoSigh, d_ntracks, not d_nheads.
Poul-Henning Kamp [Mon, 21 Oct 2002 20:42:20 +0000 (20:42 +0000)]
Sigh, d_ntracks, not d_nheads.

21 years agoImplement a new IP_SENDSRCADDR ancillary message type that permits
Ian Dowse [Mon, 21 Oct 2002 20:40:02 +0000 (20:40 +0000)]
Implement a new IP_SENDSRCADDR ancillary message type that permits
a server process bound to a wildcard UDP socket to select the IP
address from which outgoing packets are sent on a per-datagram
basis. When combined with IP_RECVDSTADDR, such a server process can
guarantee to reply to an incoming request using the same source IP
address as the destination IP address of the request, without having
to open one socket per server IP address.

Discussed on: -net
Approved by: re

21 years agoAdd id_t, a new type capable of representing a pid_t or a uid_t. Move
Mike Barcroft [Mon, 21 Oct 2002 20:35:29 +0000 (20:35 +0000)]
Add id_t, a new type capable of representing a pid_t or a uid_t.  Move
the definition of rlim_t to <sys/_types.h> so that it can be shared.

21 years agoRemove the "temporary connection" hack in udp_output(). In order
Ian Dowse [Mon, 21 Oct 2002 20:10:05 +0000 (20:10 +0000)]
Remove the "temporary connection" hack in udp_output(). In order
to send datagrams from an unconnected socket, we used to first block
input, then connect the socket to the sendmsg/sendto destination,
send the datagram, and finally disconnect the socket and unblock
input.

We now use in_pcbconnect_setup() to check if a connect() would have
succeeded, but we never record the connection in the PCB (local
anonymous port allocation is still recorded, though). The result
from in_pcbconnect_setup() authorises the sending of the datagram
and selects the local address and port to use, so we just construct
the header and call ip_output().

Discussed on: -net
Approved by: re

21 years agoGEOM does not (and shall not) propagate flags like D_MEMDISK, so we will
Poul-Henning Kamp [Mon, 21 Oct 2002 20:09:59 +0000 (20:09 +0000)]
GEOM does not (and shall not) propagate flags like D_MEMDISK, so we will
revert to checking the name to determine if our root device is a ramdisk,
md(4) specifically to determine if we should attempt the root-mount RW

Sponsored by: DARPA & NAI Labs.

21 years agoWe want /dev/md0 for ramdisk roots, not /dev/md0c.
Poul-Henning Kamp [Mon, 21 Oct 2002 20:08:28 +0000 (20:08 +0000)]
We want /dev/md0 for ramdisk roots, not /dev/md0c.

Sponsored by: DARPA & NAI Labs

21 years agofwheads and fwsectors got swapped underway.
Poul-Henning Kamp [Mon, 21 Oct 2002 19:44:07 +0000 (19:44 +0000)]
fwheads and fwsectors got swapped underway.

Approved by: sam

21 years agoSpell the BPB member of the 7.10 bootsector as bsBPB rather than bsPBP to
John Baldwin [Mon, 21 Oct 2002 19:00:50 +0000 (19:00 +0000)]
Spell the BPB member of the 7.10 bootsector as bsBPB rather than bsPBP to
be like all the other bootsectors.  Apple has done the same it seems.

21 years agoReduce the overhead of the mutex statistics gathering code, try to produce
Dag-Erling Smørgrav [Mon, 21 Oct 2002 18:48:28 +0000 (18:48 +0000)]
Reduce the overhead of the mutex statistics gathering code, try to produce
shorter lines in the report, and clean up some minor style issues.

21 years agoAdd compartment support to Biba and MLS policies. The logic of the
Robert Watson [Mon, 21 Oct 2002 18:42:01 +0000 (18:42 +0000)]
Add compartment support to Biba and MLS policies.  The logic of the
policies remains the same: subjects and objects are labeled for
integrity or sensitivity, and a dominance operator determines whether
or not subject/object accesses are permitted to limit inappropriate
information flow.  Compartments are a non-hierarchal component to
the label, so add a bitfield to the label element for each, and a
set check as part of the dominance operator.  This permits the
implementation of "need to know" elements of MLS.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoOne #include <sys/sysctl.h> should be enough.
Olivier Houchard [Mon, 21 Oct 2002 18:40:40 +0000 (18:40 +0000)]
One #include <sys/sysctl.h> should be enough.

Approved by: mux (mentor)

21 years agoAdd a flag needed for recovery of excess allocated KSEs.
Julian Elischer [Mon, 21 Oct 2002 18:37:34 +0000 (18:37 +0000)]
Add a flag needed for recovery of excess allocated KSEs.
(not used in non KSE processes).

Submitted by: davidxu

21 years agoMore in the way of minor consistency improvements: trim 'mac_mls_'
Robert Watson [Mon, 21 Oct 2002 18:14:30 +0000 (18:14 +0000)]
More in the way of minor consistency improvements: trim 'mac_mls_'
from another variable to line this up with mac_biba.c

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoDemote sockets to single-label objects rather than maintaining a
Robert Watson [Mon, 21 Oct 2002 18:05:12 +0000 (18:05 +0000)]
Demote sockets to single-label objects rather than maintaining a
range on them, leaving process credentials as the only kernel
objects with label ranges in the Biba and MLS policies.  We
weren't using the range in any access control decisions, so this
lets us garbage collect effectively unused code.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoSynchonize variable spelling with the MAC tree: we shortened some of
Robert Watson [Mon, 21 Oct 2002 17:05:48 +0000 (17:05 +0000)]
Synchonize variable spelling with the MAC tree: we shortened some of
the names.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoWhite space nit the crept in during merge.
Robert Watson [Mon, 21 Oct 2002 17:01:30 +0000 (17:01 +0000)]
White space nit the crept in during merge.

21 years agoSince the Biba and MLS access checks are identical to the open checks,
Robert Watson [Mon, 21 Oct 2002 16:39:12 +0000 (16:39 +0000)]
Since the Biba and MLS access checks are identical to the open checks,
collapse the two cases more cleanly: rather than wrapping an access
check around open, simply provide the open implementation for the
access vector entry.  No functional change.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoCleanup of relabel authorization checks -- almost identical logic,
Robert Watson [Mon, 21 Oct 2002 16:35:54 +0000 (16:35 +0000)]
Cleanup of relabel authorization checks -- almost identical logic,
we just break out some of the tests better.  Minor change in that
we now better support incremental update of labels.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years ago- Abort all OCBs for timeout.
Hidetoshi Shimokawa [Mon, 21 Oct 2002 15:36:59 +0000 (15:36 +0000)]
- Abort all OCBs for timeout.
- Improve warning message.

21 years agoUse if_printf() instead of printf() to print diagnositic messages in the
Brooks Davis [Mon, 21 Oct 2002 14:38:28 +0000 (14:38 +0000)]
Use if_printf() instead of printf() to print diagnositic messages in the
form "rdp#: blah".

21 years agoUse if_printf(ifp, "blah") instead of
Brooks Davis [Mon, 21 Oct 2002 14:37:31 +0000 (14:37 +0000)]
Use if_printf(ifp, "blah") instead of
printf("%s%d: blah", ifp->if_name, ifp->if_unit).

21 years agoMake floppy-making part of release.9 conditional on *BOOTSIZE
Ruslan Ermilov [Mon, 21 Oct 2002 14:21:08 +0000 (14:21 +0000)]
Make floppy-making part of release.9 conditional on *BOOTSIZE
rather than on "pc98" (rev. 1.710) and "sparc64" (rev. 1.711).

21 years agoReplace in_pcbladdr() with a more generic inner subroutine for
Ian Dowse [Mon, 21 Oct 2002 13:55:50 +0000 (13:55 +0000)]
Replace in_pcbladdr() with a more generic inner subroutine for
in_pcbconnect() called in_pcbconnect_setup(). This version performs
all of the functions of in_pcbconnect() except for the final
committing of changes to the PCB. In the case of an EADDRINUSE error
it can also provide to the caller the PCB of the duplicate connection,
avoiding an extra in_pcblookup_hash() lookup in tcp_connect().

This change will allow the "temporary connect" hack in udp_output()
to be removed and is part of the preparation for adding the
IP_SENDSRCADDR control message.

Discussed on: -net
Approved by: re

21 years agoAdd a bus_space_unmap() for the puc (and possibly other) drivers.
Andrew Gallatin [Mon, 21 Oct 2002 13:48:29 +0000 (13:48 +0000)]
Add a bus_space_unmap() for the puc (and possibly other) drivers.

21 years agoAdd some documentation of FreeBSD's special synchronization quirks
Andrew Gallatin [Mon, 21 Oct 2002 12:54:13 +0000 (12:54 +0000)]
Add some documentation of FreeBSD's special synchronization quirks
which may surprise developers coming from Solaris, or other platforms
which have a similar interface, but slightly different rules.

Reviewed by: jhb, ru

21 years agoA better version of disabling SGR support in grotty(1).
Ruslan Ermilov [Mon, 21 Oct 2002 12:29:57 +0000 (12:29 +0000)]
A better version of disabling SGR support in grotty(1).

21 years agoFix LSRR option length check: it has to be less or equal remained header's
Maxim Konovalov [Mon, 21 Oct 2002 11:43:46 +0000 (11:43 +0000)]
Fix LSRR option length check: it has to be less or equal remained header's
length minus sizeof(struct ip).

MFC after: 1 week

21 years agoUpdate comment to note that the third floppy (for modules) has been
Murray Stokely [Mon, 21 Oct 2002 10:53:35 +0000 (10:53 +0000)]
Update comment to note that the third floppy (for modules) has been
implemented.  Add a note reminding developers to update drivers.conf.5
if they add new functionality here.

21 years agoNote that support for the third 'drivers floppy' has been implemented.
Murray Stokely [Mon, 21 Oct 2002 10:48:19 +0000 (10:48 +0000)]
Note that support for the third 'drivers floppy' has been implemented.
Also point to the AWK scripts instead of the older Perl ones, now that
they've been rewritten.

21 years agofix prototype of asyreqq().
Hidetoshi Shimokawa [Mon, 21 Oct 2002 10:21:49 +0000 (10:21 +0000)]
fix prototype of asyreqq().

21 years agoThese (userland) files shouldn't be here.
Hidetoshi Shimokawa [Mon, 21 Oct 2002 10:14:26 +0000 (10:14 +0000)]
These (userland) files shouldn't be here.

21 years agoRemove old build glue for removed games.
Mark Murray [Mon, 21 Oct 2002 10:05:14 +0000 (10:05 +0000)]
Remove old build glue for removed games.

21 years agoMove more games stuff to the attic.
Mark Murray [Mon, 21 Oct 2002 07:50:38 +0000 (07:50 +0000)]
Move more games stuff to the attic.

21 years agoGrammar nits.
Ruslan Ermilov [Mon, 21 Oct 2002 07:44:42 +0000 (07:44 +0000)]
Grammar nits.

Submitted by: Ken Stailey <kstailey@speakeasy.net>

21 years agoDeorbit complete. We dont build these anymore, so into the attic they go.
Mark Murray [Mon, 21 Oct 2002 07:40:27 +0000 (07:40 +0000)]
Deorbit complete. We dont build these anymore, so into the attic they go.

21 years agoTrack changed definition of the debug registers.
Poul-Henning Kamp [Mon, 21 Oct 2002 05:33:05 +0000 (05:33 +0000)]
Track changed definition of the debug registers.

Sorry for missing this the first time.