]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
24 years agoFixed the `mysterious blank lines' problem. This was due to unconditional
ru [Thu, 21 Sep 2000 17:02:15 +0000 (17:02 +0000)]
Fixed the `mysterious blank lines' problem.  This was due to unconditional
use of the .ne requests.  groff(1) apparently inserts some virtual trap at
the end of each page, and this was causing the .ne request to output extra
lines.  Solution is to only use them in troff mode.

Also fixed a related bug in .It macros, where it would insert a page break
in the middle of a sentence.

Removed the end of page trap in nroff mode, as this causes .sp requests to
sometimes eat the space due to the nearby trap.

Removed blank line that appeared as the first line on each nroff-formatted
manual page.

Obtained from: NetBSD

24 years agoremove unneeded includes
mjacob [Thu, 21 Sep 2000 16:32:38 +0000 (16:32 +0000)]
remove unneeded includes
(obtained from phk@freebsd.org)

24 years agocomment vfs_export functions, requested by: eivind
alfred [Thu, 21 Sep 2000 15:55:55 +0000 (15:55 +0000)]
comment vfs_export functions, requested by: eivind

24 years agoadd ``check free resource rage code''
sanpei [Thu, 21 Sep 2000 13:13:00 +0000 (13:13 +0000)]
add ``check free resource rage code''
for PC-Card which has no address in cis.

24 years agoFix LINT breakage by options ACPI_NO_OSDFUNC_INLINE.
iwasaki [Thu, 21 Sep 2000 13:01:19 +0000 (13:01 +0000)]
Fix LINT breakage by options ACPI_NO_OSDFUNC_INLINE.
Also space/tab-fix in NOTE.
Grrr, my bad.

Pointed-out by: eivind

24 years agoRemove unneeded #include that was a remnant of an earlier version of
truckman [Thu, 21 Sep 2000 09:04:17 +0000 (09:04 +0000)]
Remove unneeded #include that was a remnant of an earlier version of
my uidinfo patch.

Found by: phk

24 years agoThe final entry should be `required', not `sufficient'.
ru [Thu, 21 Sep 2000 07:47:36 +0000 (07:47 +0000)]
The final entry should be `required', not `sufficient'.

24 years agoAdd in and document two new debugging options used in the mutex code:
jhb [Thu, 21 Sep 2000 06:56:11 +0000 (06:56 +0000)]
Add in and document two new debugging options used in the mutex code:
SMP_DEBUG and WITNESS.

24 years agoFixed the calculations with UDP header length field.
ru [Thu, 21 Sep 2000 06:52:59 +0000 (06:52 +0000)]
Fixed the calculations with UDP header length field.
The field is in network byte order and contains the
size of the header.

Reviewed by: brian

24 years agoAdd in documentation and examples of the KTR kernel config options.
jhb [Thu, 21 Sep 2000 06:50:02 +0000 (06:50 +0000)]
Add in documentation and examples of the KTR kernel config options.

Prompted by: phk's kernel include script

24 years agoRemove unneeded includes.
markm [Thu, 21 Sep 2000 06:23:16 +0000 (06:23 +0000)]
Remove unneeded includes.

Submitted by: phk

24 years agoFix PR #21245: handle wep keys correctly and pretty print hex keys
wpaul [Thu, 21 Sep 2000 00:25:07 +0000 (00:25 +0000)]
Fix PR #21245: handle wep keys correctly and pretty print hex keys
as appropriate. Nick: this sort of does what your changes did, except
the hex/text printing is done automatically using isprint().

24 years agoFix buffer overflow when DISPLAY is longer than 43 characters. This
imp [Wed, 20 Sep 2000 23:07:04 +0000 (23:07 +0000)]
Fix buffer overflow when DISPLAY is longer than 43 characters.  This
is not exploitable because telnet doesn't run with elevated privs.

Didn't fix all the other potential buffer overflows.  Would be a good
task for someone who has lots of time to carefully study each case
because cut and paste solutions are dangerous for this code base.

Added $FreeBSD$ in the same way that command.c did it.

24 years agoAdd new function in AML interpreter; aml_invoke_method().
iwasaki [Wed, 20 Sep 2000 22:53:39 +0000 (22:53 +0000)]
Add new function in AML interpreter; aml_invoke_method().
Also remove unneeded includes in aml_obj.c and aml_parse.c.

This new function takes 'struct aml_name *' as a argument rather than
'char *' where aml_invoke_method_by_name() does.  It's worth to have
these two interfaces in many cases.

24 years agoo Remove 9 unnecessary includes.
imp [Wed, 20 Sep 2000 20:02:49 +0000 (20:02 +0000)]
o Remove 9 unnecessary includes.
o Add Vpp power at 5.0V rather than 0. Setting it to zero violates
  the pccard spec.  Most pcic devices in use today don't let us
  violate the spec, but some older ones do.  Bill Paul sent this to
  me a long time ago and I thought I'd commit it before now.
o Add some debug stuff hidden behind bootverbose.

24 years agoFix a typo
brian [Wed, 20 Sep 2000 19:59:44 +0000 (19:59 +0000)]
Fix a typo

Spotted by: Manfred Antar <null@pozo.com>

24 years agoNo need to generate opt_compat_oldisa.h
imp [Wed, 20 Sep 2000 19:52:03 +0000 (19:52 +0000)]
No need to generate opt_compat_oldisa.h

24 years agoremove 5 unnecessary includes, per phk's script
imp [Wed, 20 Sep 2000 19:34:17 +0000 (19:34 +0000)]
remove 5 unnecessary includes, per phk's script

24 years agoRemove 7 unnecessary includes frmo phk's script
imp [Wed, 20 Sep 2000 19:31:37 +0000 (19:31 +0000)]
Remove 7 unnecessary includes frmo phk's script

24 years agoRemove 8 unnecessary includes from phk's script
imp [Wed, 20 Sep 2000 19:05:32 +0000 (19:05 +0000)]
Remove 8 unnecessary includes from phk's script

24 years agoIN_CLASS*() macros assume host order and s_addr is network byte
ps [Wed, 20 Sep 2000 18:16:20 +0000 (18:16 +0000)]
IN_CLASS*() macros assume host order and s_addr is network byte
order, so we must convert them to host order.

24 years agoAdd support for the "nullconsole" console type, for systems with
archie [Wed, 20 Sep 2000 18:13:36 +0000 (18:13 +0000)]
Add support for the "nullconsole" console type, for systems with
neither a video console nor a serial port. Use it if the RB_MUTE
flag is set.

Submitted by: Doug Ambrisko <ambrisko@whistle.com>
Reviewed by: jhb

24 years agoRemove one debug line that snuck in by accident.
wpaul [Wed, 20 Sep 2000 17:32:17 +0000 (17:32 +0000)]
Remove one debug line that snuck in by accident.

24 years agoAdd a new driver for the AMD PCnet/FAST, FAST+ and Home PCI adapters.
wpaul [Wed, 20 Sep 2000 17:30:22 +0000 (17:30 +0000)]
Add a new driver for the AMD PCnet/FAST, FAST+ and Home PCI adapters.
Previously, these cards were supported by the lnc driver (and they
still are, but the pcn driver will claim them first), which is fine
except the lnc driver runs them in 16-bit LANCE compatibility mode.
The pcn driver runs these chips in 32-bit mode and uses the RX alignment
feature to achieve zero-copy receive. (Which puts it in the same
class as the xl, fxp and tl chipsets.) This driver is also MI, so it
will work on the x86 and alpha platforms. (The lnc driver is still
needed to support non-PCI cards. At some point, I'll need to newbusify
it so that it too will me MI.)

The Am79c978 HomePNA adapter is also supported.

24 years agoo Add additional comment describing vaccess() behavior.
rwatson [Wed, 20 Sep 2000 17:18:12 +0000 (17:18 +0000)]
o Add additional comment describing vaccess() behavior.

Requested by: eivind
Reviewed by: eivind, adrian

24 years agoAdd a homePNA PHY driver. This is really only a stub: MII-based homePNA
wpaul [Wed, 20 Sep 2000 17:04:30 +0000 (17:04 +0000)]
Add a homePNA PHY driver. This is really only a stub: MII-based homePNA
PHYs tend to look like 10mbps PHYs with no autonegotiation. This allows
us to display the proper media type and link status however.

24 years agoregenerate
wpaul [Wed, 20 Sep 2000 17:02:32 +0000 (17:02 +0000)]
regenerate

24 years agoAdd the ID for the built-in homePNA PHY in the AMD 79C798 controller.
wpaul [Wed, 20 Sep 2000 17:02:16 +0000 (17:02 +0000)]
Add the ID for the built-in homePNA PHY in the AMD 79C798 controller.

24 years agoNull commit to force an update after clearing the "-ko" keyword
jdp [Wed, 20 Sep 2000 15:54:44 +0000 (15:54 +0000)]
Null commit to force an update after clearing the "-ko" keyword
expansion, which somehow accidentally became set.

24 years agofix previous PIOCSRESOURCE code in assign_card_index
sanpei [Wed, 20 Sep 2000 14:54:21 +0000 (14:54 +0000)]
fix previous PIOCSRESOURCE code in assign_card_index

24 years agoClean up the VIA id's a bit and add the K[TX]133 chipsets
sos [Wed, 20 Sep 2000 07:05:44 +0000 (07:05 +0000)]
Clean up the VIA id's a bit and add the K[TX]133 chipsets

24 years agoRemove unneeded includes
sos [Wed, 20 Sep 2000 07:00:24 +0000 (07:00 +0000)]
Remove unneeded includes

Pointed out by: phk

24 years agoOops, un-spam this file - the last commit was an accident.
brian [Wed, 20 Sep 2000 06:16:23 +0000 (06:16 +0000)]
Oops, un-spam this file - the last commit was an accident.

Pointed out by: phk

24 years agoRemove the last two uses of ahc->unit in the FreeBSD version of the driver.
gibbs [Wed, 20 Sep 2000 04:46:15 +0000 (04:46 +0000)]
Remove the last two uses of ahc->unit in the FreeBSD version of the driver.
ahc->unit is depricated and will be going away as soon as the Linux
driver catches up.  In the FreeBSD case, it is always initialized to 0
and this caused some strangeness in registering multiple ahc controllers
with CAM.

Noticed by: Tor.Egge@fast.no

24 years agoOnly realloc() environ if we're sure that we know where it came from.
brian [Wed, 20 Sep 2000 03:05:37 +0000 (03:05 +0000)]
Only realloc() environ if we're sure that we know where it came from.

The recent problems with sshd were due to sshd reassigning
`environ' when setenv() thinks it owns it.  setenv() subsequently
realloc()s the new version of environ and *boom*

24 years agoIgnore power button and sleep button events for 5 sec.
iwasaki [Wed, 20 Sep 2000 01:53:11 +0000 (01:53 +0000)]
Ignore power button and sleep button events for 5 sec.
Wakeup event is generated by power button and/or sleep button on some
laptops but this also generates SCI interrupt, and shutdown the system
as result.  So this kind of mechanism is introduced so that acpi
driver ignore given events for certain period.

24 years agoImprove region I/O sub-routines by re-writing most of low level part
iwasaki [Wed, 20 Sep 2000 01:01:32 +0000 (01:01 +0000)]
Improve region I/O sub-routines by re-writing most of low level part
of AML interpreter.
 - Delete and cleanup a lot of almost duplicated code in kernel/userland.
 - Add new common functions for kernel/userland code.
      aml_adjust_readvalue(), aml_adjust_updatevalue(),
      aml_region_handle_alloc(), aml_region_handle_free() and
      aml_region_io().
 - Add primitive functions for both versions of kernel/userland in order to
   have shared code as much as possible.
      aml_region_read_simple(), aml_region_write_simple(),
      aml_region_prompt_read(), aml_region_prompt_write() and
      aml_region_prompt_update_value().
 - Consider update rule and access type in field flags. Also add a lot of
   definitions for the flags.
 - Fix bugs on bit manipulation for read/write operations.
 - Fix bugs on IndexField I/O part.  Also add workaround for temporary
   object corruption during StoreOp interpretation.

24 years agoIf this is a Davicom DM9102A and we're enabling the homePNA link, force
wpaul [Wed, 20 Sep 2000 00:59:17 +0000 (00:59 +0000)]
If this is a Davicom DM9102A and we're enabling the homePNA link, force
dc_link to 1 and don't activate the tick routine. Without this, dc_start()
always thinks the link is down and never transmits in homePNA mode.

24 years agoMention the AAC_COMPAT_LINUX option
msmith [Tue, 19 Sep 2000 23:56:27 +0000 (23:56 +0000)]
Mention the AAC_COMPAT_LINUX option

24 years agoFully initialize msqids[]. This could lead to ENOSPC and other strange
peter [Tue, 19 Sep 2000 22:59:22 +0000 (22:59 +0000)]
Fully initialize msqids[].  This could lead to ENOSPC and other strange
stuff.

PR: 21085
Submitted by:  Marcin Cieslak <saper@SYSTEM.PL>

24 years agoPut temporary output in ${TMPDIR:-/tmp}
brian [Tue, 19 Sep 2000 22:15:00 +0000 (22:15 +0000)]
Put temporary output in ${TMPDIR:-/tmp}
If $<basedir>_output is not set, don't redirect output

PR: 21395

24 years agoDon't clobber $? before using it.
brian [Tue, 19 Sep 2000 21:46:54 +0000 (21:46 +0000)]
Don't clobber $? before using it.

Submitted by: James Barkley <jbarkley@wgate.com>

24 years agoNGM_BPF_{G,S}ET_FILTER should be NGM_BPF_{G,S}ET_PROGRAM.
archie [Tue, 19 Sep 2000 21:34:43 +0000 (21:34 +0000)]
NGM_BPF_{G,S}ET_FILTER should be NGM_BPF_{G,S}ET_PROGRAM.

24 years agoFix unexploitable off by one error as mentioned on Bugtraq.
imp [Tue, 19 Sep 2000 21:22:20 +0000 (21:22 +0000)]
Fix unexploitable off by one error as mentioned on Bugtraq.

24 years agoo Whitespace reduction appled to FreeBSD CVS ID
rwatson [Tue, 19 Sep 2000 19:20:21 +0000 (19:20 +0000)]
o Whitespace reduction appled to FreeBSD CVS ID

Obtained from: TrustedBSD Project

24 years agoo General warning fixing commit
rwatson [Tue, 19 Sep 2000 19:14:31 +0000 (19:14 +0000)]
o General warning fixing commit
    - Include <stdlib.h> and <string.h> as needed for prototypes
    - Remove unneeded "error" variables
o Make cap_init() use cap_clear() instead of bzero()

Obtained from: TrustedBSD Project

24 years agoo Add cap_from_text(3) and cap_to_text(3) man pages.
rwatson [Tue, 19 Sep 2000 19:04:47 +0000 (19:04 +0000)]
o Add cap_from_text(3) and cap_to_text(3) man pages.
o Implementations will remain in the seperately distributed capability
  patch until the cap_t type changes are synchronized.

Obtained from: TrustedBSD Project

24 years agoo EACCES is not a possible error for acl_from_text(), so fix
rwatson [Tue, 19 Sep 2000 18:58:28 +0000 (18:58 +0000)]
o EACCES is not a possible error for acl_from_text(), so fix
  acl_from_text.3
o Minor whitespace cleanups relative to the TrustedBSD tree to reduce
  content-free differences.

Obtained from: TrustedBSD Project

24 years agoAdd thread-safe wrapper for fpathconf(2) syscall.
sobomax [Tue, 19 Sep 2000 18:01:03 +0000 (18:01 +0000)]
Add thread-safe wrapper for fpathconf(2) syscall.

Reviewed by: jlemon

24 years agoUse .Cm macro where appropriate.
ru [Tue, 19 Sep 2000 16:15:54 +0000 (16:15 +0000)]
Use .Cm macro where appropriate.

24 years agoAdd card_if.h
imp [Tue, 19 Sep 2000 14:24:55 +0000 (14:24 +0000)]
Add card_if.h

24 years agoPass the reinstallkernel target through from Makefile to Makefile.inc1.
markm [Tue, 19 Sep 2000 11:15:40 +0000 (11:15 +0000)]
Pass the reinstallkernel target through from Makefile to Makefile.inc1.

24 years agoAdd support for tagged queuing on ATA drives. There is only support for
sos [Tue, 19 Sep 2000 11:08:39 +0000 (11:08 +0000)]
Add support for tagged queuing on ATA drives. There is only support for
IBM's DPTA and DTLA series of drives (no other disk vendors are known
to support this) on non-Promise controllers (promise controllers lockup
when given the tagged queuing specific commands).
It gives especially master/slave comboes about 5% better performance.

Add support for the Promise ATA100 OEM chip (pdc20265)

Add support for the Cyrix 5530

Change the way status is read from the drives, use the alternate
status reg when possible.

Better support for DEVFS, the acdXtY devices are now created when needed.

Lots of little cleanups.

24 years agoBetter error message when booting an SMP kernel on an UP system.
eivind [Tue, 19 Sep 2000 10:40:52 +0000 (10:40 +0000)]
Better error message when booting an SMP kernel on an UP system.

24 years agoDocument ENABLE_VFS_IOOPT
eivind [Tue, 19 Sep 2000 10:36:19 +0000 (10:36 +0000)]
Document ENABLE_VFS_IOOPT

24 years agoRename lminor() to dev2unit(). This function gives a linear unit number
phk [Tue, 19 Sep 2000 10:28:44 +0000 (10:28 +0000)]
Rename lminor() to dev2unit().  This function gives a linear unit number
which hides the 'hole' in the minor bits.

Introduce unit2minor() to do the reverse operation.

Fix some some make_dev() calls which didn't use UID_* or GID_* macros.

Kill the v_hashchain alias macro, it hides the real relationship.

Introduce experimental SI_CHEAPCLONE flag set it on cloned bpfs.

24 years agoGC some LFS lint.
phk [Tue, 19 Sep 2000 10:25:01 +0000 (10:25 +0000)]
GC some LFS lint.

24 years agoFix horrendous abuse of the Nm and Pa mdoc macros, and remove troff
sheldonh [Tue, 19 Sep 2000 09:46:01 +0000 (09:46 +0000)]
Fix horrendous abuse of the Nm and Pa mdoc macros, and remove troff
bold markers \fB and \fR.

24 years agoWhen sending a packet back to a network interface to simulate an arrived
julian [Tue, 19 Sep 2000 08:35:44 +0000 (08:35 +0000)]
When sending a packet back to a network interface to simulate an arrived
packet, make sure that the packet has the interface marked in the first mbuf,
the same a truely arrived packets would have.

24 years agoSimplify the ftp directory search code a little and eliminate a warning.
jkh [Tue, 19 Sep 2000 07:45:08 +0000 (07:45 +0000)]
Simplify the ftp directory search code a little and eliminate a warning.

24 years agoImplement indirection in the pccard probe/attach. This should make it
imp [Tue, 19 Sep 2000 04:39:20 +0000 (04:39 +0000)]
Implement indirection in the pccard probe/attach.  This should make it
possible to have different probe/attach semantics between the two
systems and yet still use the same driver for both.

Compatibility methods for OLDCARD drivers.  We use these routines to make
it possible to call the OLDCARD driver's probe routine in the context that
it expects.  For OLDCARD these are implemented as pass throughs to the
device_{probe,attach} routines.  For NEWCARD they are implemented such
such that probe becomes strictly a matching routine and attach does both
the old probe and old attach.

compat devices should use the following:

/* Device interface */
DEVMETHOD(device_probe), pccard_compat_probe),
DEVMETHOD(device_attach), pccard_compat_attach),
/* Card interface */
DEVMETHOD(card_compat_match, foo_match), /* newly written */
DEVMETHOD(card_compat_probe, foo_probe), /* old probe */
DEVMETHOD(card_compat_attach, foo_attach), /* old attach */

This will allow a single driver binary image to be used for both
OLDCARD and NEWCARD.

Drivers wishing to not retain OLDCARD compatibility needn't do this.

ep driver minorly updated.

sn driver updated more than minorly.  Add module dependencies to allow
module to load.  Also change name to if_sn.  Add some debugging code.
attempt to fix the cannot allocate memory problem I'd been seeing.
Minor formatting nits.

24 years agoDocument RTLD_DEFAULT and the search algorithm used for resolving
jdp [Tue, 19 Sep 2000 04:28:34 +0000 (04:28 +0000)]
Document RTLD_DEFAULT and the search algorithm used for resolving
undefined symbols.

24 years agoAdd support for dlsym(RTLD_DEFAULT, ...).
jdp [Tue, 19 Sep 2000 04:27:16 +0000 (04:27 +0000)]
Add support for dlsym(RTLD_DEFAULT, ...).

24 years agoAdd a definition for RTLD_DEFAULT.
jdp [Tue, 19 Sep 2000 04:24:50 +0000 (04:24 +0000)]
Add a definition for RTLD_DEFAULT.

24 years agoMake a somewhat unsatisfactory attempt to describe the effects of
jdp [Tue, 19 Sep 2000 04:02:05 +0000 (04:02 +0000)]
Make a somewhat unsatisfactory attempt to describe the effects of
the RTLD_GLOBAL and RTLD_LOCAL flags which can be passed to dlopen().

24 years agoAllow the user to make direct BIOS intcalls (via vm86 system) if they
jlemon [Tue, 19 Sep 2000 03:27:31 +0000 (03:27 +0000)]
Allow the user to make direct BIOS intcalls (via vm86 system) if they
successfully authenticate as root via the suser() call.

24 years agoRename "struct session" to "struct sess_con" to avoid conflict with
archie [Tue, 19 Sep 2000 03:22:06 +0000 (03:22 +0000)]
Rename "struct session" to "struct sess_con" to avoid conflict with
upcoming "struct session" in proc.h.

Requested by: jasone

24 years agoInclude <sys/proc.h> so that we can dereference something in the proc
msmith [Tue, 19 Sep 2000 00:35:03 +0000 (00:35 +0000)]
Include <sys/proc.h> so that we can dereference something in the proc
structure.  Looks like someone removed a nested include somewhere else.

Submitted by: gallatin, dg

24 years agoo cap_set_flag() was not correctly clearing capabilities when value
rwatson [Tue, 19 Sep 2000 00:10:39 +0000 (00:10 +0000)]
o cap_set_flag() was not correctly clearing capabilities when value
  was CAP_CLEAR.

Obtained from: TrustedBSD Project

24 years agoAdded missing .It macros
marko [Mon, 18 Sep 2000 23:00:15 +0000 (23:00 +0000)]
Added missing .It macros

PR: 21215
Submitted by: Osamu MIHARA

24 years agoCheck for the correct minimum version required by the current code.
dcs [Mon, 18 Sep 2000 22:42:54 +0000 (22:42 +0000)]
Check for the correct minimum version required by the current code.

I hope I got this right... :-)

24 years agoRemoved NetBSD support, which bit-rotted long ago.
dg [Mon, 18 Sep 2000 21:12:19 +0000 (21:12 +0000)]
Removed NetBSD support, which bit-rotted long ago.
Changed new SMP locking macros given the new situation.

24 years agoInclude <sys/proc.h> to silence suser() compiler warning.
rwatson [Mon, 18 Sep 2000 20:42:04 +0000 (20:42 +0000)]
Include <sys/proc.h> to silence suser() compiler warning.

Approved by: markm

24 years agoUpdate the prototype for "r_brk" to correspond with the change in
jdp [Mon, 18 Sep 2000 20:40:32 +0000 (20:40 +0000)]
Update the prototype for "r_brk" to correspond with the change in
"src/libexec/rtld-elf/rtld.c" revision 1.48.  This eliminates a
warning when building the dynamic linker, and it doesn't seem to
hurt anything else.

24 years agoSort the output of mount
brian [Mon, 18 Sep 2000 18:35:07 +0000 (18:35 +0000)]
Sort the output of mount
Requested by: des

Remove a redundant sed

24 years agoo Disallow privileged processes in jail() from directly accessing
rwatson [Mon, 18 Sep 2000 18:10:13 +0000 (18:10 +0000)]
o Disallow privileged processes in jail() from directly accessing
  system namespace extended attributes.
o Document privilege/jail() interaction relating to extended
  attributes.

Obtained from: TrustedBSD Project

24 years agoo Allow privileged processes in jail() to override sticky bit behavior
rwatson [Mon, 18 Sep 2000 18:03:49 +0000 (18:03 +0000)]
o Allow privileged processes in jail() to override sticky bit behavior
  on directories.
o Allow privileged processes in jail() to create inodes with the
  setgid bit set even if they are not a member of the group denoted
  by the file creation gid.  This occurs due to inherited gid's from
  parent directories on file creation, allowing a user to create a
  file with a gid that is not in the creating process's credentials.

Obtained from: TrustedBSD Project

24 years agoo Add a comment clarifying interaction between jail(), privileged processes,
rwatson [Mon, 18 Sep 2000 17:58:15 +0000 (17:58 +0000)]
o Add a comment clarifying interaction between jail(), privileged processes,
  and UFS file flags.  Here's what the comment says, for reference:

Privileged processes in jail() are permitted to modify
arbitrary user flags on files, but are not permitted
to modify system flags.

  In other words, privilege does allow a process in jail to modify user
  flags for objects that the process does not own, but privilege will
  not permit the setting of system flags on the file.

Obtained from: TrustedBSD Project

24 years agoo Add missing PRISON_ROOT allowing a privileged process in a jail() to not
rwatson [Mon, 18 Sep 2000 17:53:22 +0000 (17:53 +0000)]
o Add missing PRISON_ROOT allowing a privileged process in a jail() to not
  remove the setuid/setgid bits by virtue of a change to a file with those
  bits set, even if the process doesn't own the file, or isn't a group
  member of the file's gid.

Obtained from: TrustedBSD Project

24 years agoFix cut'n'paste bogon.
des [Mon, 18 Sep 2000 17:46:01 +0000 (17:46 +0000)]
Fix cut'n'paste bogon.

Submitted by: Jim Pirzyk <Jim.Pirzyk@disney.com>

24 years agoAdd new line character to debugging printf's.
ps [Mon, 18 Sep 2000 17:03:03 +0000 (17:03 +0000)]
Add new line character to debugging printf's.

24 years agoo Substitute suser() calls for direct credential checks, which is now
rwatson [Mon, 18 Sep 2000 16:13:02 +0000 (16:13 +0000)]
o Substitute suser() calls for direct credential checks, which is now
  safe as suser() no longer sets ASU.
o Note that in some cases, the PRISON_ROOT flag is used even though no
  process structure is passed, to indicate that if a process structure
  (and hence jail) was available, it would be ok.  In the long run,
  the jail identifier should probably be moved to ucred, as the uidinfo
  information was.
o Some uid 0 checks remain relating to the quota code, which I'll leave
  for another day.

Reviewed by: phk, eivind
Obtained from: TrustedBSD Project

24 years agoOnly read to the end of the select track.
sos [Mon, 18 Sep 2000 12:13:32 +0000 (12:13 +0000)]
Only read to the end of the select track.

24 years agoFixed the printing of header for IPv4 routing table without -l option.
ru [Mon, 18 Sep 2000 11:14:40 +0000 (11:14 +0000)]
Fixed the printing of header for IPv4 routing table without -l option.
Broken in rev 1.44.

24 years agoSince the unit number of a midi/sequencer device is expressed in 4
tanimura [Mon, 18 Sep 2000 10:17:38 +0000 (10:17 +0000)]
Since the unit number of a midi/sequencer device is expressed in 4
bits, we can configure only up to 16 units.

24 years agoIgnore attempts to set flags to zero. This quenches a syslog warning
phk [Mon, 18 Sep 2000 09:40:01 +0000 (09:40 +0000)]
Ignore attempts to set flags to zero.  This quenches a syslog warning
from login(1).

24 years agoSteal 512KB more from system memory for heap instead of 256KB. We died
mjacob [Mon, 18 Sep 2000 08:19:04 +0000 (08:19 +0000)]
Steal 512KB more from system memory for heap instead of 256KB. We died
without the extra space. What a pity.

24 years agoRun SECONDARY_LOAD_ADDRESS down to 0x2000a000- this still leaves
mjacob [Mon, 18 Sep 2000 08:17:57 +0000 (08:17 +0000)]
Run SECONDARY_LOAD_ADDRESS down to 0x2000a000- this still leaves
(barely) enough room for boot1 and gives us 8KB more to play with
in the loader.

24 years agoMake the stack 12K- we seem to need a bit more.
mjacob [Mon, 18 Sep 2000 08:16:38 +0000 (08:16 +0000)]
Make the stack 12K- we seem to need a bit more.
Rename 'stack' to 'stackbase' as this variable
more correctly denotes what it is.

24 years agoCorrect a few typos, including a mis-represented option (-s instead of
sheldonh [Mon, 18 Sep 2000 07:45:47 +0000 (07:45 +0000)]
Correct a few typos, including a mis-represented option (-s instead of
-h for NIS host).

Submitted by: Peter Avalos <pavalos@theshell.com>

24 years agoFix symlink-to-a-dir handling in pkg_delete.
sobomax [Mon, 18 Sep 2000 07:41:48 +0000 (07:41 +0000)]
Fix symlink-to-a-dir handling in pkg_delete.

Reviewed by: -ports
Tested by: bento

24 years agoAdd two new features to chio(1):
ken [Mon, 18 Sep 2000 06:09:11 +0000 (06:09 +0000)]
Add two new features to chio(1):
 - The ability to specify elements by volume tag instead of their actual
   physical location.  e.g., instead of:
chio move slot 3 slot 4
   you would now use:
chio move voltag FOO slot 4

 - The ability to return an element to its previous location, as specified
   by the source element.  e.g., instead of:
chio move drive 0 slot 4
   you would now use:
chio return drive 0
   or
chio return voltag FOO

These features will obviously only work with changers that support volume
tags and/or source element IDs.  chio(1) should fail gracefully if the user
attempts to use these new features and the source element ID or volume tag
are not found.

PR: bin/21178
Submitted by: "C. Stephen Gunn" <csg@waterspout.com>
Reviewed by: ken

24 years agoThis is really gross.
gibbs [Mon, 18 Sep 2000 03:35:49 +0000 (03:35 +0000)]
This is really gross.

If a user decides to forego a make depend during "make buildkernel",
they should get what they deserve if no previous make depend has
been run for that kernel.  Instead, the build process includes
special instructions to unconditionally rebuild aicasm.  When aicasm
moved to its own directory, this hack broke.

Correct the hack until a get buy off on killing it.

24 years agoInitialize 'hints_loaded' to 0.
mdodd [Sun, 17 Sep 2000 23:57:52 +0000 (23:57 +0000)]
Initialize 'hints_loaded' to 0.

This allows static hints to work properly.

24 years agodynamify- probe codec for supported channels
cg [Sun, 17 Sep 2000 23:51:00 +0000 (23:51 +0000)]
dynamify- probe codec for supported channels
add channel mappings for mixer

24 years agofix warnings
cg [Sun, 17 Sep 2000 23:46:32 +0000 (23:46 +0000)]
fix warnings

24 years agoAdded a couple more missing FXP_SPLVAR()'s.
dg [Sun, 17 Sep 2000 23:23:22 +0000 (23:23 +0000)]
Added a couple more missing FXP_SPLVAR()'s.

24 years agoAs a minor optimization, do suspended checking more like it was originally
dg [Sun, 17 Sep 2000 23:04:57 +0000 (23:04 +0000)]
As a minor optimization, do suspended checking more like it was originally
in the PR - before the while loop.

24 years agoAdded missing FXP_SPLVAR() to fxp_intr().
dg [Sun, 17 Sep 2000 22:59:58 +0000 (22:59 +0000)]
Added missing FXP_SPLVAR() to fxp_intr().

24 years agoAttempt to replicate the new fxp SMP locking in the changes committed
dg [Sun, 17 Sep 2000 22:20:33 +0000 (22:20 +0000)]
Attempt to replicate the new fxp SMP locking in the changes committed
in the previous (APM suspend/resume) commit.