]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoIntroduce support for Mandatory Access Control and extensible kernel
rwatson [Tue, 30 Jul 2002 22:39:28 +0000 (22:39 +0000)]
Introduce support for Mandatory Access Control and extensible kernel
access control.

Label socket IPC objects, permitting security features to be maintained
at the granularity of the socket.  Two labels are stored for each
socket: the label of the socket itself, and a cached peer label
permitting interogation of the remote endpoint.  Since socket locking
is not yet present in the base tree, these objects are not locked,
but are assumed to follow the same semantics as other modifiable
entries in the socket structure.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoIntroduce support for Mandatory Access Control and extensible
rwatson [Tue, 30 Jul 2002 22:33:28 +0000 (22:33 +0000)]
Introduce support for Mandatory Access Control and extensible
kernel access control.

Label pipe IPC objects, permitting security information to be
maintained at the granularity of the pipe object.  The label is
shared between the two pipe endpoints in the style of the
pipe mutex, and is maintained using similar conventions.  The
label is protected by the pipe mutex.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoFix path to other files.<arch> files.
imp [Tue, 30 Jul 2002 22:28:43 +0000 (22:28 +0000)]
Fix path to other files.<arch> files.
Fix disordering of libkern/crc32.c entry.

MFC after: 1 day

22 years agoIntroduce support for Mandatory Access Control and extensible kernel
rwatson [Tue, 30 Jul 2002 22:28:28 +0000 (22:28 +0000)]
Introduce support for Mandatory Access Control and extensible kernel
access control.

Label process credentials, permitting security information to be
maintained at the granularity of processes and cached credential
objects.  cr_label follows the semantics of other entries in struct
ucred: when a credential is exclusively referenced, it may be
modified.  Otherwise, it must be treated as immutable.  As with
other interesting entries in struct ucred, failing to use the
documented credential management APIs (such as crcopy, crdup, ...)
can result in data corruption or incorrect behavior.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoBegin committing support for Mandatory Access Control and extensible
rwatson [Tue, 30 Jul 2002 22:22:35 +0000 (22:22 +0000)]
Begin committing support for Mandatory Access Control and extensible
kernel access control.  The MAC framework permits loadable kernel
modules to link to the kernel at compile-time, boot-time, or run-time,
and augment the system security policy.  This commit includes the
initial kernel implementation, although the interface with the userland
components of the oeprating system is still under work, and not all
kernel subsystems are supported.  Later in this commit sequence,
documentation of which kernel subsystems will not work correctly with
a kernel compiled with MAC support will be added.

Label file system mount points, permitting security information to be
maintained at the granularity of the file system.  Two labels are
currently maintained: a security label for the mount itself, and
a default label for objects in the file system (in particular, for
file systems not supporting per-vnode labeling directly).

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoBegin committing support for Mandatory Access Control and extensible
rwatson [Tue, 30 Jul 2002 22:15:09 +0000 (22:15 +0000)]
Begin committing support for Mandatory Access Control and extensible
kernel access control.  The MAC framework permits loadable kernel
modules to link to the kernel at compile-time, boot-time, or run-time,
and augment the system security policy.  This commit includes the
initial kernel implementation, although the interface with the userland
components of the operating system is still under work, and not all
kernel subsystems are supported.  Later in this commit sequence,
documentation of which kernel subsystems will not work correctly with
a kernel compiled with MAC support will be added.

Introduce two node vnode operations required to support MAC.  First,
VOP_REFRESHLABEL(), which will be invoked by callers requiring that
vp->v_label be sufficiently "fresh" for access control purposes.
Second, VOP_SETLABEL(), which be invoked by callers requiring that
the passed label contents be updated.  The file system is responsible
for updating v_label if appropriate in coordination with the MAC
framework, as well as committing to disk.  File systems that are
not MAC-aware need not implement these VOPs, as the MAC framework
will default to maintaining a single label for all vnodes based
on the label on the file system mount point.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoBegin committing support for Mandatory Access Control and extensible
rwatson [Tue, 30 Jul 2002 22:08:12 +0000 (22:08 +0000)]
Begin committing support for Mandatory Access Control and extensible
kernel access control.  The MAC framework permits loadable kernel
modules to link to the kernel at compile-time, boot-time, or run-time,
and augment the system security policy.  This commit includes the
initial kernel implementation, although the interface with the userland
components of the oeprating system is still under work, and not all
kernel subsystems are supported.  Later in this commit sequence,
documentation of which kernel subsystems will not work correctly with
a kernel compiled with MAC support will be added.

Label vnodes, permitting security information to maintained at the
granularity of the individual file, directory (et al).  This data is
protected by the vnode lock and may be read only when holding a shared
lock, or modified only when holding an exclusive lock.  Label
information may be considered either the primary copy, or a cached
copy.  Individual file systems or kernel services may use the
VCACHEDLABEL flag for accounting purposes to determine which it is.
New VOPs will be introduced to refresh this label on demand, or to
set the label value.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoBegin committing support for Mandatory Access Control and extensible
rwatson [Tue, 30 Jul 2002 22:03:57 +0000 (22:03 +0000)]
Begin committing support for Mandatory Access Control and extensible
kernel access control.  The MAC framework permits loadable kernel
modules to link to the kernel at compile-time, boot-time, or run-time,
and augment the system security policy.  This commit includes the
initial kernel implementation, although the interface with the userland
components of the oeprating system is still under work, and not all
kernel subsystems are supported.  Later in this commit sequence,
documentation of which kernel subsystems will not work correctly with
a kernel compiled with MAC support will be added.

Label mbuf's with packet header data, permitting in-flight datagrams
to be labeled in the TrustedBSD MAC implementation.  Add a questionable
recursive #include of sys/mac.h to maintain the current API for
applications and kernel code including mbuf.h to get 'struct mbuf'
definition.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoCall bpf_mtap() on output, to catch outgoing packets for e.g. tcpdump .
fenner [Tue, 30 Jul 2002 21:47:14 +0000 (21:47 +0000)]
Call bpf_mtap() on output, to catch outgoing packets for e.g. tcpdump .

22 years agoBegin committing support for Mandatory Access Control and extensible
rwatson [Tue, 30 Jul 2002 21:36:05 +0000 (21:36 +0000)]
Begin committing support for Mandatory Access Control and extensible
kernel access control.  The MAC framework permits loadable kernel
modules to link to the kernel at compile-time, boot-time, or run-time,
and augment the system security policy.  This commit includes the
initial kernel implementation, although the interface with the userland
components of the oeprating system is still under work, and not all
kernel subsystems are supported.  Later in this commit sequence,
documentation of which kernel subsystems will not work correctly with
a kernel compiled with MAC support will be added.

kern_mac.c contains the body of the MAC framework.  Kernel and
user APIs defined in mac.h are implemented here, providing a front end
to loaded security modules.  This code implements a module registration
service, state (label) management, security configuration and policy
composition.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoBegin committing support for Mandatory Access Control and extensible
rwatson [Tue, 30 Jul 2002 21:32:34 +0000 (21:32 +0000)]
Begin committing support for Mandatory Access Control and extensible
kernel access control.  The MAC framework permits loadable kernel
modules to link to the kernel at compile-time, boot-time, or run-time,
and augment the system security policy.  This commit includes the
initial kernel implementation, although the interface with the userland
components of the oeprating system is still under work, and not all
kernel subsystems are supported.  Later in this commit sequence,
documentation of which kernel subsystems will not work correctly with
a kernel compiled with MAC support will be added.

Include files to declare MAC userland interface (mac.h), MAC subsystem
entry points (mac.h), and MAC policy entry points (mac_policy.h).  These
files define the interface between the kernel and the MAC framework,
and between the MAC framework and each registered policy module.  These
APIs and ABIs may not be assumed to be stable until following FreeBSD
5.1-RELEASE.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoCorrect URLs to Handbook & FAQ's pages
blackend [Tue, 30 Jul 2002 21:14:15 +0000 (21:14 +0000)]
Correct URLs to Handbook & FAQ's pages

MFC after: 1 week

22 years agoDon't need to hold schedlock specifically for stop() ans it calls wakeup()
julian [Tue, 30 Jul 2002 21:13:48 +0000 (21:13 +0000)]
Don't need to hold schedlock specifically for stop() ans it calls wakeup()
that locks it anyhow.

Reviewed by: jhb@freebsd.org

22 years agoMake reference counting for mbuf clusters [only] work like in RELENG_4.
bmilekic [Tue, 30 Jul 2002 21:06:27 +0000 (21:06 +0000)]
Make reference counting for mbuf clusters [only] work like in RELENG_4.
While I don't think this is the best solution, it certainly is the
fastest and in trying to find bottlenecks in network related code
I want this out of the way, so that I don't have to think about it.
What this means, for mbuf clusters anyway is:
- one less malloc() to do for every cluster allocation (replaced with
  a relatively quick calculation + assignment)
- no more free() in the cluster free case (replaced with empty space) :-)

This can offer a substantial throughput improvement, but it may not for
all cases.  Particularly noticable for larger buffer sends/recvs.
See http://people.freebsd.org/~bmilekic/code/measure2.txt for a rough
idea.

22 years agoCorrect links to Handbook's pages, old URLs does not work anymore.
blackend [Tue, 30 Jul 2002 21:04:26 +0000 (21:04 +0000)]
Correct links to Handbook's pages, old URLs does not work anymore.

MFC after: 1 week

22 years agoRemove some additional paranoia which Kirk forgot to remove from his
phk [Tue, 30 Jul 2002 20:49:29 +0000 (20:49 +0000)]
Remove some additional paranoia which Kirk forgot to remove from his
UFS2 commit.

These bits in essence made any instance of "softupdates expected
corrution", (ie blocks marked allocated but not referenced by an
inode etc) result in a exit value for fsck_ffs of 2.

2 is part of the magic and appearantly undocumented protocol between
fsck_FOO and fsck and means "dump into single user mode ASAP.

Sponsored by: DARPA & NAI Labs.

22 years ago o Replace vm_page_sleep_busy() with vm_page_sleep_if_busy()
alc [Tue, 30 Jul 2002 20:41:10 +0000 (20:41 +0000)]
 o Replace vm_page_sleep_busy() with vm_page_sleep_if_busy()
   in vfs_busy_pages().

22 years agoRemove code that removes thread from sleep queue before
julian [Tue, 30 Jul 2002 20:34:30 +0000 (20:34 +0000)]
Remove code that removes thread from sleep queue before
adding it to a condvar wait.
We do not have asleep() any more so this can not happen.

22 years agoFix some bugs in in-place editing:
fanf [Tue, 30 Jul 2002 19:42:18 +0000 (19:42 +0000)]
Fix some bugs in in-place editing:
(1) errors from freopen were not reported correctly
(2) large files were not handled correctly
(3) read-only files broke things

MFC after: 1 week

22 years agoResolve conflicts arising from the ACPI CA 20020725 import.
iwasaki [Tue, 30 Jul 2002 19:35:32 +0000 (19:35 +0000)]
Resolve conflicts arising from the ACPI CA 20020725 import.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r100966,
iwasaki [Tue, 30 Jul 2002 19:33:39 +0000 (19:33 +0000)]
This commit was generated by cvs2svn to compensate for changes in r100966,
which included commits to RCS files with non-trunk default branches.

22 years agoVendor import of the Intel ACPI CA 20020725 drop.
iwasaki [Tue, 30 Jul 2002 19:33:39 +0000 (19:33 +0000)]
Vendor import of the Intel ACPI CA 20020725 drop.

22 years ago o In do_sendfile(), replace vm_page_sleep_busy() by vm_page_sleep_if_busy()
alc [Tue, 30 Jul 2002 18:51:07 +0000 (18:51 +0000)]
 o In do_sendfile(), replace vm_page_sleep_busy() by vm_page_sleep_if_busy()
   and extend the scope of the page queues lock to cover all accesses
   to the page's flags and busy fields.

22 years agoWhen referencing nd_cnp after namei(), always pass SAVENAME into
rwatson [Tue, 30 Jul 2002 18:48:25 +0000 (18:48 +0000)]
When referencing nd_cnp after namei(), always pass SAVENAME into
NDINIT() operation flags.

Submitted by: green
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoMake M_COPY_PKTHDR() macro into a wrapper for a m_copy_pkthdr()
rwatson [Tue, 30 Jul 2002 18:28:58 +0000 (18:28 +0000)]
Make M_COPY_PKTHDR() macro into a wrapper for a m_copy_pkthdr()
function.  This permits conditionally compiled extensions to the
packet header copying semantic, such as extensions to copy MAC
labels.

Reviewed by: bmilekic
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoCommit a version of the uvisor driver for connecting Handspring
joe [Tue, 30 Jul 2002 17:44:28 +0000 (17:44 +0000)]
Commit a version of the uvisor driver for connecting Handspring
Visors via USB.

Submitted by: Chia-liang Kao <clkao@clkao.org>

22 years agoIf we get 0xffff back when reading the status register, assume the card
jhb [Tue, 30 Jul 2002 17:31:42 +0000 (17:31 +0000)]
If we get 0xffff back when reading the status register, assume the card
has gone away instead of spinning in the interrupt handler.  This stops
my machine from hanging when I eject a rl(4)-based cardbus card.

Reviewed by: imp

22 years agoRegen.
rwatson [Tue, 30 Jul 2002 16:52:22 +0000 (16:52 +0000)]
Regen.

22 years agoIntroduce a mac_policy() system call that will provide MAC policies
rwatson [Tue, 30 Jul 2002 16:50:25 +0000 (16:50 +0000)]
Introduce a mac_policy() system call that will provide MAC policies
with a general purpose front end entry point for user applications
to invoke.  The MAC framework will route the system call to the
appropriate policy by name.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoAdd support for controlling line1 mixer device, which on some cards represents
sobomax [Tue, 30 Jul 2002 16:24:00 +0000 (16:24 +0000)]
Add support for controlling line1 mixer device, which on some cards represents
onboard FM tuner.

MFC after: 2 weeks

22 years agoFor processes which are set-user-ID or set-group-ID, the kernel performs a few
nectar [Tue, 30 Jul 2002 15:38:29 +0000 (15:38 +0000)]
For processes which are set-user-ID or set-group-ID, the kernel performs a few
special actions for safety.  One of these is to make sure that file descriptors
0..2 are in use, by opening /dev/null for those that are not already open.
Another is to close any file descriptors 0..2 that reference procfs.  However,
these checks were made out of order, so that it was still possible for a
set-user-ID or set-group-ID process to be started with some of the file
descriptors 0..2 unused.

Submitted by: Georgi Guninski <guninski@guninski.com>

22 years agoUpdate list of installed manual pages after regenerating them.
nectar [Tue, 30 Jul 2002 14:47:24 +0000 (14:47 +0000)]
Update list of installed manual pages after regenerating them.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r100946,
nectar [Tue, 30 Jul 2002 14:34:51 +0000 (14:34 +0000)]
This commit was generated by cvs2svn to compensate for changes in r100946,
which included commits to RCS files with non-trunk default branches.

22 years agoImport the regenerated OpenSSL man pages after import of OpenSSL 0.9.6e.
nectar [Tue, 30 Jul 2002 14:34:51 +0000 (14:34 +0000)]
Import the regenerated OpenSSL man pages after import of OpenSSL 0.9.6e.

22 years agoCorrect links to Handbook's pages:
blackend [Tue, 30 Jul 2002 14:08:16 +0000 (14:08 +0000)]
Correct links to Handbook's pages:
http://www.freebsd.org/handbook/mirrors.html is not working anymore,
http://www.freebsd.org/doc/handbook/mirrors.html is the new link

MFC after: 1 week

22 years agoIgnore leading semicolons on commands; required by SUSv3.
tjr [Tue, 30 Jul 2002 14:07:30 +0000 (14:07 +0000)]
Ignore leading semicolons on commands; required by SUSv3.

Obtained from: NetBSD (kleink, Aymeric Vincent)

22 years agoResolve conflicts after import of OpenSSL 0.9.6e.
nectar [Tue, 30 Jul 2002 13:58:53 +0000 (13:58 +0000)]
Resolve conflicts after import of OpenSSL 0.9.6e.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r100936,
nectar [Tue, 30 Jul 2002 13:38:06 +0000 (13:38 +0000)]
This commit was generated by cvs2svn to compensate for changes in r100936,
which included commits to RCS files with non-trunk default branches.

22 years agoImport of OpenSSL 0.9.6e.
nectar [Tue, 30 Jul 2002 13:38:06 +0000 (13:38 +0000)]
Import of OpenSSL 0.9.6e.

22 years agoWarning cleanup.
phk [Tue, 30 Jul 2002 13:01:25 +0000 (13:01 +0000)]
Warning cleanup.

Format changes by peter

22 years agoThis man page has not been referenced by anything for a while,
nectar [Tue, 30 Jul 2002 12:54:03 +0000 (12:54 +0000)]
This man page has not been referenced by anything for a while,
and is not part of the OpenSSL distribution.  Remove it.

22 years agoUpdate to match reality (i.e. reference libcrypto headers and
nectar [Tue, 30 Jul 2002 12:53:15 +0000 (12:53 +0000)]
Update to match reality (i.e. reference libcrypto headers and
libraries, not the no-longer-existent libdes).

22 years agoRemove many obsolete files. The majority of these are simply no
nectar [Tue, 30 Jul 2002 12:51:09 +0000 (12:51 +0000)]
Remove many obsolete files.  The majority of these are simply no
longer included as part of the OpenSSL distribution.  However, a few
we just don't need and are explicitly excluded in FREEBSD-Xlist.

22 years agoResolve conflicts after import of OpenSSL 0.9.6d.
nectar [Tue, 30 Jul 2002 12:46:49 +0000 (12:46 +0000)]
Resolve conflicts after import of OpenSSL 0.9.6d.

22 years agoImport of OpenSSL 0.9.6d.
nectar [Tue, 30 Jul 2002 12:44:15 +0000 (12:44 +0000)]
Import of OpenSSL 0.9.6d.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r100928,
nectar [Tue, 30 Jul 2002 12:44:15 +0000 (12:44 +0000)]
This commit was generated by cvs2svn to compensate for changes in r100928,
which included commits to RCS files with non-trunk default branches.

22 years agoUpdate list of files to remove prior to import of OpenSSL 0.9.6d
nectar [Tue, 30 Jul 2002 12:38:41 +0000 (12:38 +0000)]
Update list of files to remove prior to import of OpenSSL 0.9.6d

22 years agoFix braino in last commit.
phk [Tue, 30 Jul 2002 12:02:41 +0000 (12:02 +0000)]
Fix braino in last commit.

22 years agoMove ffs_isfreeblock() to ffs_alloc.c and make it static.
phk [Tue, 30 Jul 2002 11:54:48 +0000 (11:54 +0000)]
Move ffs_isfreeblock() to ffs_alloc.c and make it static.

Sponsored by: DARPA & NAI Labs.

22 years agoRegen after usbdevs rev.1.95.
sobomax [Tue, 30 Jul 2002 11:03:50 +0000 (11:03 +0000)]
Regen after usbdevs rev.1.95.

22 years agoAdd ID for Luwen EasyDisk USB flash memory drive.
sobomax [Tue, 30 Jul 2002 11:02:35 +0000 (11:02 +0000)]
Add ID for Luwen EasyDisk USB flash memory drive.

PR: 41081
Submitted by: demon
MFC after: 5 days

22 years agoAdd a quick check that device actually has sound capabilities. The problem
sobomax [Tue, 30 Jul 2002 10:54:19 +0000 (10:54 +0000)]
Add a quick check that device actually has sound capabilities. The problem
is that some cards built around fm801 chip have the same device ID, only
have radio tuner onboard, but no sound capabilities. Therefore, with such
card inserted and `device pcm' in kernel the user has a big problem, as
the fm801 driver effectively hangs the machine when trying to initialise
nonexistent ac97 codecs (it does 500 retries with 1 second interval!).
It would be better if MediaForte's engeneers were smart enough to put
different device ID into such cards, but it isn't an option.

MFC after: 2 weeks

22 years agoIn endtsleep() and cv_timedwait_end(), a thread marked TDF_TIMEOUT may
tanimura [Tue, 30 Jul 2002 10:12:11 +0000 (10:12 +0000)]
In endtsleep() and cv_timedwait_end(), a thread marked TDF_TIMEOUT may
be swapped out.  Do not put such the thread directly back to the run
queue.

Spotted by: David Xu <davidx@viasoft.com.cn>

While I am here, s/PS_TIMEOUT/TDF_TIMEOUT/.

22 years ago - Add vfs_badlock_{print,panic} support to the remaining VOP_ASSERT_*
jeff [Tue, 30 Jul 2002 09:57:37 +0000 (09:57 +0000)]
 - Add vfs_badlock_{print,panic} support to the remaining VOP_ASSERT_*
   macros.

22 years ago - Add automatic post vop debug checks. These work in both the success and
jeff [Tue, 30 Jul 2002 08:52:00 +0000 (08:52 +0000)]
 - Add automatic post vop debug checks.  These work in both the success and
   failure cases.

22 years ago - Acknowledge recursive vnode locks in the vop_unlock specification. The
jeff [Tue, 30 Jul 2002 08:50:52 +0000 (08:50 +0000)]
 - Acknowledge recursive vnode locks in the vop_unlock specification.  The
   vnode may not be unlocked even if the operation succeeded.

22 years agoSince pam_get_authtok(3) doesn't know about our options structure, setting
des [Tue, 30 Jul 2002 08:32:03 +0000 (08:32 +0000)]
Since pam_get_authtok(3) doesn't know about our options structure, setting
the PAM_ECHO_PASS option on-the-fly is a NOP (though it wasn't with the
old pam_get_pass(3) code).  Instead, call pam_prompt(3) directly.  This
actually simplifies the code a bit.

MFC after: 3 days

22 years agoDo a case insensitive comparison when comparing the ms-chap response
brian [Tue, 30 Jul 2002 08:09:26 +0000 (08:09 +0000)]
Do a case insensitive comparison when comparing the ms-chap response
string.

22 years ago o In vm_object_madvise() and vm_object_page_remove() replace
alc [Tue, 30 Jul 2002 07:23:04 +0000 (07:23 +0000)]
 o In vm_object_madvise() and vm_object_page_remove() replace
   vm_page_sleep_busy() with vm_page_sleep_if_busy().  At the same time,
   increase the scope of the page queues lock.  (This should significantly
   reduce the locking overhead in vm_object_page_remove().)
 o Apply some style fixes.

22 years agoAdd a bunch more cards that are known to work.
imp [Tue, 30 Jul 2002 06:58:27 +0000 (06:58 +0000)]
Add a bunch more cards that are known to work.
Add a warning about the Symbol LA-4100 series of cards.  You gotta
load special firmware, and the wi driver in the tree doesn't support
that yet.

22 years ago- Optimize wakeup() and its friends; if a thread waken up is being
tanimura [Tue, 30 Jul 2002 06:54:05 +0000 (06:54 +0000)]
- Optimize wakeup() and its friends; if a thread waken up is being
  swapped in, we do not have to ask for the scheduler thread to do
  that.

- Assert that a process is not swapped out in runq functions and
  swapout().

- Introduce thread_safetoswapout() for readability.

- In swapout_procs(), perform a test that may block (check of a
  thread working on its vm map) first.  This lets us call swapout()
  with the sched_lock held, providing a better atomicity.

22 years ago o Lock page queue accesses by pmap_release_free_page().
alc [Tue, 30 Jul 2002 06:45:39 +0000 (06:45 +0000)]
 o Lock page queue accesses by pmap_release_free_page().

22 years agoAdd definitions for statistical and high-resolution profiling. The calling
jake [Tue, 30 Jul 2002 06:14:34 +0000 (06:14 +0000)]
Add definitions for statistical and high-resolution profiling.  The calling
conventions for _mcount and __cyg_profile_func_enter are different, so
statistical profiling kernels build and link but don't actually work.
IWBNI one could tell gcc to only generate calls to the former.

Define uintfptr_t properly for userland, but not for the kernel (I hope).

22 years agoThe data cache on UltraSPARC III is not directly mapped, so don't assert
jake [Tue, 30 Jul 2002 05:48:33 +0000 (05:48 +0000)]
The data cache on UltraSPARC III is not directly mapped, so don't assert
that.  This breaks assumptions made by some of the cache flushing code,
but UltraSPARC III has different methods for invalidating cache lines
anyway.

22 years agoUpdate docs to reflect change in count of procs reserved for root
silby [Tue, 30 Jul 2002 05:37:00 +0000 (05:37 +0000)]
Update docs to reflect change in count of procs reserved for root
from 1 to 10.

PR:             kern/40515
Submitted by:   David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after:      1 day

22 years agoUpdate docs to reflect change in count of procs reserved for root
silby [Tue, 30 Jul 2002 05:36:34 +0000 (05:36 +0000)]
Update docs to reflect change in count of procs reserved for root
from 1 to 10.

PR: kern/40515
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 1 day

22 years agoRouting socket messages are padded to sizeof(long), not just
fenner [Tue, 30 Jul 2002 04:49:13 +0000 (04:49 +0000)]
Routing socket messages are padded to sizeof(long), not just
 sizeof(u_int32_t).

22 years agoFix int/size_t mismatch for sysctl arguments. Try not to introduce more
jake [Tue, 30 Jul 2002 04:45:14 +0000 (04:45 +0000)]
Fix int/size_t mismatch for sysctl arguments.  Try not to introduce more
unsorting.

Reviewed by: bde (unsorted version)

22 years agoNew release notes: ctags(1) -T, finger(1) -4/-6 (+MFC), various sh(1)
bmah [Tue, 30 Jul 2002 04:32:14 +0000 (04:32 +0000)]
New release notes:  ctags(1) -T, finger(1) -4/-6 (+MFC), various sh(1)
built-ins (most of which were MFC-ed).

Modified release notes:  hw.pci.enable_io_modes sysctl

MFCs noted:  ls(1) -m/-p/-x, rm(1) -v (marked as historic), sh(1) -C,
split(1) -a.

22 years agoPanic if the data cache has too many virtual colors (more than 2).
jake [Tue, 30 Jul 2002 04:19:07 +0000 (04:19 +0000)]
Panic if the data cache has too many virtual colors (more than 2).

22 years agoUse fchmod() to restore the tty modes.
peter [Tue, 30 Jul 2002 03:49:27 +0000 (03:49 +0000)]
Use fchmod() to restore the tty modes.

22 years agoUse _ALIGN_DATA and _ALIGN_TEXT.
jake [Tue, 30 Jul 2002 02:27:24 +0000 (02:27 +0000)]
Use _ALIGN_DATA and _ALIGN_TEXT.

22 years agoRebuild of files generated from syscalls.master.
rwatson [Tue, 30 Jul 2002 02:09:24 +0000 (02:09 +0000)]
Rebuild of files generated from syscalls.master.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoPrototype function arguments, only with MAC-specific structures
rwatson [Tue, 30 Jul 2002 02:06:34 +0000 (02:06 +0000)]
Prototype function arguments, only with MAC-specific structures
replaced with void until we bring in the actual structure definitions.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoHook up kern_mac.c to the build.
rwatson [Tue, 30 Jul 2002 02:04:56 +0000 (02:04 +0000)]
Hook up kern_mac.c to the build.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoStubs for the TrustedBSD MAC system calls to permit TrustedBSD MAC
rwatson [Tue, 30 Jul 2002 02:04:05 +0000 (02:04 +0000)]
Stubs for the TrustedBSD MAC system calls to permit TrustedBSD MAC
userland code to operate on kernel's from the main tree.  Not much
in this file yet.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoWhen translating and -C is specified, behave as if the complemented set was
tjr [Mon, 29 Jul 2002 23:42:00 +0000 (23:42 +0000)]
When translating and -C is specified, behave as if the complemented set was
in the locale collating order as required by SUSv3.

22 years ago o Introduce vm_page_sleep_if_busy() as an eventual replacement for
alc [Mon, 29 Jul 2002 19:41:22 +0000 (19:41 +0000)]
 o Introduce vm_page_sleep_if_busy() as an eventual replacement for
   vm_page_sleep_busy().  vm_page_sleep_if_busy() uses the page
   queues lock.

22 years agoRemove a XXXKSE comment. the code is no longer a problem..
julian [Mon, 29 Jul 2002 18:47:19 +0000 (18:47 +0000)]
Remove a XXXKSE comment. the code is no longer a problem..

22 years agoCreate a new thread state to describe threads that would be ready to run
julian [Mon, 29 Jul 2002 18:33:32 +0000 (18:33 +0000)]
Create a new thread state to describe threads that would be ready to run
except for the fact tha they are presently swapped out. Also add a process
flag to indicate that the process has started the struggle to swap
back in. This will be  needed for the case where multiple threads
start the swapin action top a collision. Also add code to stop
a process fropm being swapped out if one of the threads in this
process is actually off running on another CPU.. that might hurt...

Submitted by: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>

22 years agoCreate a new header <machine/_stdint.h> for storing MD parts of
mike [Mon, 29 Jul 2002 17:41:23 +0000 (17:41 +0000)]
Create a new header <machine/_stdint.h> for storing MD parts of
<stdint.h>.  Previously, parts were defined in <machine/ansi.h> and
<machine/limits.h>.  This resulted in two problems:
  (1) Defining macros in <machine/ansi.h> gets in the way of that
      header only defining types.
  (2) Defining C99 limits in <machine/limits.h> adds pollution to
      <limits.h>.

22 years agoDon't depend on pollution in <machine/limits.h> (by way of
mike [Mon, 29 Jul 2002 17:09:21 +0000 (17:09 +0000)]
Don't depend on pollution in <machine/limits.h> (by way of
<sys/param.h>) for definition of <stdint.h> macros.

22 years agoNew release notes: tr(1) equivalence classes (+MFC), tr(1) -C.
bmah [Mon, 29 Jul 2002 16:01:09 +0000 (16:01 +0000)]
New release notes:  tr(1) equivalence classes (+MFC), tr(1) -C.

MFCs noted:  Various new flags for who(1).

22 years agoConform to RFC 959, Appendix II, when replying
yar [Mon, 29 Jul 2002 15:54:27 +0000 (15:54 +0000)]
Conform to RFC 959, Appendix II, when replying
to a successful MKD command.

MFC after: 1 week

22 years agoIf we are in hostap mode, do not go into promisc mode. This causes
imp [Mon, 29 Jul 2002 15:36:22 +0000 (15:36 +0000)]
If we are in hostap mode, do not go into promisc mode.  This causes
problems with the firmware and will result in a) poor performance and
b) the inability to associate certain types of cards (most notibly
cisco).

Idea obtained from OpenBSD, but I implemented it by clearing the
IFF_PROMISC flag rather than the refusing to honor it downstream.

22 years agoWhen translating and the -c option is specified, handle the case where the
tjr [Mon, 29 Jul 2002 14:50:54 +0000 (14:50 +0000)]
When translating and the -c option is specified, handle the case where the
second string argument is more than one character in length in the way
required by SUSv3 (and the way GNU textutils and SVR4 do it).

22 years agoDrop support for COPY, -c has been the default mode of install(1)
ru [Mon, 29 Jul 2002 09:40:17 +0000 (09:40 +0000)]
Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by: bde

22 years agoUse a common way to release locks before exit.
maxim [Mon, 29 Jul 2002 09:01:39 +0000 (09:01 +0000)]
Use a common way to release locks before exit.

Reviewed by: hsu

22 years agoIgnore -C, -p, and -S options of install(1) when used with the -d
ru [Mon, 29 Jul 2002 08:51:04 +0000 (08:51 +0000)]
Ignore -C, -p, and -S options of install(1) when used with the -d
option.  Warn about COPY being phased out.  Restore the old method
of always comparing before installing: INSTALL="install -C".

Requested by: bde

22 years ago - Add VBAD to the list of vnodes that are ignored on locking operations.
jeff [Mon, 29 Jul 2002 07:45:57 +0000 (07:45 +0000)]
 - Add VBAD to the list of vnodes that are ignored on locking operations.

22 years agoFix typo.
murray [Mon, 29 Jul 2002 07:22:26 +0000 (07:22 +0000)]
Fix typo.

PR: docs/41091
MFC after: 1 day

22 years ago - Backout the patch made in revision 1.75 of vfs_mount.c. The vputs here
jeff [Mon, 29 Jul 2002 06:26:55 +0000 (06:26 +0000)]
 - Backout the patch made in revision 1.75 of vfs_mount.c.  The vputs here
   were hiding the real problem of the missing unlock in sync_inactive.
 - Add the missing unlock in sync_inactive.

Submitted by: iedowse

22 years ago o Pass VM_ALLOC_WIRED to vm_page_grab() rather than calling vm_page_wire()
alc [Mon, 29 Jul 2002 05:42:44 +0000 (05:42 +0000)]
 o Pass VM_ALLOC_WIRED to vm_page_grab() rather than calling vm_page_wire()
   in pmap_new_thread(), pmap_pinit(), and vm_proc_new().
 o Lock page queue accesses by vm_page_free() in pmap_object_init_pt().

22 years agoNew release notes: wicontrol(8) -l/-L, traceroute 1.4a12.
bmah [Mon, 29 Jul 2002 05:06:56 +0000 (05:06 +0000)]
New release notes:  wicontrol(8) -l/-L, traceroute 1.4a12.

Updated release note:  tcsh-6.12.

22 years agoFix Makefiles to actually work.
mjacob [Mon, 29 Jul 2002 04:43:10 +0000 (04:43 +0000)]
Fix Makefiles to actually work.

22 years agoForced commit.
silby [Mon, 29 Jul 2002 04:41:30 +0000 (04:41 +0000)]
Forced commit.

Rev 1.134 actually reverts rev 1.132, NOT rev 1.131.

22 years agoRevert rev 1.131.
silby [Mon, 29 Jul 2002 04:32:35 +0000 (04:32 +0000)]
Revert rev 1.131.

1.131 is slightly broken, and I would commit the fix to that here, but it
has been reported that any deviation from the original code is causing
problems with some 82557 chips, causing them to lock hard.

Until those issues have been figured out, going back to the original
code is the best plan.

Frustrated: Silby

22 years agowhitespace commit: fix indentation in fxp_intr_body.
luigi [Mon, 29 Jul 2002 02:48:09 +0000 (02:48 +0000)]
whitespace commit: fix indentation in fxp_intr_body.
This is also done in preparation of a subsequent fix
for the handling of RNR conditions in polling mode.

22 years agoAdd routines needed for high resolution profiling.
jake [Mon, 29 Jul 2002 00:45:13 +0000 (00:45 +0000)]
Add routines needed for high resolution profiling.

22 years agoAdd a symbol for btext.
jake [Mon, 29 Jul 2002 00:42:00 +0000 (00:42 +0000)]
Add a symbol for btext.