]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoReturn EINVAL if the passed intr is out of bounds.
jlemon [Thu, 27 Sep 2001 02:46:47 +0000 (02:46 +0000)]
Return EINVAL if the passed intr is out of bounds.

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

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

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

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

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

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

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

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

Obtained from: NetBSD

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

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

Submitted by: LINT

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

Submitted by: LINT

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

Requested by: ru

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

MFC after: 2 weeks

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

Obtained from: TrustedBSD Project

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

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

MFC after: 1 week

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

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

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

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

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

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

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

MFC after: 3 days

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

MFC after: 2 weeks

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

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

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

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

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

Submitted by: peter
MFC: ASAP :)

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

Reviewed by: msmith

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

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

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

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

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

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

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

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

22 years agoRFC2132 is not clear about whether the "Maximum DHCP Message Size"
iedowse [Tue, 25 Sep 2001 21:02:10 +0000 (21:02 +0000)]
RFC2132 is not clear about whether the "Maximum DHCP Message Size"
refers to the size of the whole ethernet packet, just the DHCP
message within the UDP payload, or something else. bootpd interpreted
it as a maximum UDP payload size, so it could end up sending
fragmented packets to clients (such as some versions of Etherboot)
that used different interpretations of the maximum message size.

Switch to the most conservative interpretation: ensure that the
ethernet packet containing the response is no larger than the
specified maximum message size. This matches the behaviour of
the ISC dhcpd.

MFC after: 1 week

22 years agoThe -A option (beep when packets are dropped) didn't work quite
iedowse [Tue, 25 Sep 2001 20:22:33 +0000 (20:22 +0000)]
The -A option (beep when packets are dropped) didn't work quite
right; after a single packet was dropped it beeped after every
transmission.

Change its implementation to only output a bell when there is an
increase in the maximum value of the number of packets that were
sent but not yet received. This has the benefit that even for very
long round-trip times, ping -A will do roughly the right thing
after a few inital false-positives.

Reviewed by: ru

22 years agoCalculate the valid flag for ITRs and DTRs correctly. Also fix a couple
dfr [Tue, 25 Sep 2001 19:44:19 +0000 (19:44 +0000)]
Calculate the valid flag for ITRs and DTRs correctly. Also fix a couple
of minor problems and remove some debugging code.

22 years agoNew release notes: aac(4) update, Yahoo! coredump patch, touch(1) -h.
bmah [Tue, 25 Sep 2001 19:09:24 +0000 (19:09 +0000)]
New release notes:  aac(4) update, Yahoo! coredump patch, touch(1) -h.

22 years agoThe faith(4) device is no longer a count device so don't specify a count.
brooks [Tue, 25 Sep 2001 18:56:40 +0000 (18:56 +0000)]
The faith(4) device is no longer a count device so don't specify a count.

22 years agoClarify that it is the SRM console that disables onboard USB on DS10.
wilko [Tue, 25 Sep 2001 18:44:31 +0000 (18:44 +0000)]
Clarify that it is the SRM console that disables onboard USB on DS10.
Applies to newer SRM versions only. Verified by checking various SRM
revs.

22 years agoMake faith loadable, unloadable, and clonable.
brooks [Tue, 25 Sep 2001 18:40:52 +0000 (18:40 +0000)]
Make faith loadable, unloadable, and clonable.

22 years agomdoc(7) police: fixed markup.
ru [Tue, 25 Sep 2001 18:10:18 +0000 (18:10 +0000)]
mdoc(7) police: fixed markup.

22 years agoAdd a fix for the VIA82C686B data corruption bug.
sos [Tue, 25 Sep 2001 17:10:39 +0000 (17:10 +0000)]
Add a fix for the VIA82C686B data corruption bug.
This fixed the problem on the 3 platforms I've been able to test on.

I'm still of the oppinion that the BIOS should take care of this,
however some board makers only apply this when they spot a
SBLive! soundcard, but the problem exists even without a SBLive!.

This fix should probably go somewhere else, but for now I'll
keep it here since we havn't got a central place to put
such things.

22 years agoYet another turn of workaround for psm/ACPI/PnP BIOS
yokota [Tue, 25 Sep 2001 16:59:28 +0000 (16:59 +0000)]
Yet another turn of workaround for psm/ACPI/PnP BIOS
problems currently experienced in -CURRENT.

This should fix the problem that the PS/2 mouse is detected
twice if the acpi module is not loaded on some systems.

22 years agoAdd some definitions for the DSP programming registers in the BCM5400
wpaul [Tue, 25 Sep 2001 16:41:56 +0000 (16:41 +0000)]
Add some definitions for the DSP programming registers in the BCM5400
and BCM5401 PHYs.

22 years ago- Only use sig_atomic_t objects in signal handlers.
ru [Tue, 25 Sep 2001 13:45:46 +0000 (13:45 +0000)]
- Only use sig_atomic_t objects in signal handlers.
- Use getopt() to parse command line.
- Add usage().
- WARNSify.
- Convert manpage to mdoc(7).

PR: bin/30641
Submitted by: Andrey Simonenko <simon@simon.org.ua>, ru
MFC after: 1 week

22 years agoClean up my source tree to avoid getting hit too badly by the next KSE or
des [Tue, 25 Sep 2001 13:25:30 +0000 (13:25 +0000)]
Clean up my source tree to avoid getting hit too badly by the next KSE or
whatever mega-commit.  This goes some way towards adding support for
writeable files (needed by procfs).

22 years agoClean up my source tree to avoid getting hit too badly by the next KSE or
des [Tue, 25 Sep 2001 13:24:24 +0000 (13:24 +0000)]
Clean up my source tree to avoid getting hit too badly by the next KSE or
whatever mega-commit.  No real functional changes, just some experiments /
work in progress.

22 years agoRemoved touch(1) from the list of installworld tools that
ru [Tue, 25 Sep 2001 12:17:52 +0000 (12:17 +0000)]
Removed touch(1) from the list of installworld tools that
was added in previous revision for no apparent reason.

Submitted by: bde

22 years agoo Further clarify comment: ad Udo's request, re-insert the 'if'
rwatson [Tue, 25 Sep 2001 12:02:44 +0000 (12:02 +0000)]
o Further clarify comment: ad Udo's request, re-insert the 'if'
  refering to securelevels; also, update the unprivileged process text
  to better indicate the scope of actions permittable when any system
  flags are already set (limited).

Submitted by: Udo Schweigert <udo.schweigert@siemens.com>

22 years ago1) Back out ~/.login_conf disable
ache [Tue, 25 Sep 2001 11:07:26 +0000 (11:07 +0000)]
1) Back out ~/.login_conf disable
2) Pick only "me" class from ~/.login_conf as documented

23 years agoA process name may contain whitespace and unprintable characters,
mike [Tue, 25 Sep 2001 04:42:40 +0000 (04:42 +0000)]
A process name may contain whitespace and unprintable characters,
so convert those characters to octal notation.  Also convert
backslashes to octal notation to avoid confusion.

Reviewed by: des
MFC after: 1 week

23 years agoImprove the description on how to construct ~ftp/pub. Specifically,
mikeh [Tue, 25 Sep 2001 02:43:45 +0000 (02:43 +0000)]
Improve the description on how to construct ~ftp/pub. Specifically,
don't instruct users to set the directory mode 777.

PR: 30690
Obtained from: NetBSD (with modification)
MFC after: 2 weeks

23 years agoo Parallelize the comment on the relationship between privileged un-jailed
rwatson [Tue, 25 Sep 2001 02:26:10 +0000 (02:26 +0000)]
o Parallelize the comment on the relationship between privileged un-jailed
  processes and the actual securelevel check: make the comment use '> 0'
  instead of inverted '<= 0'.

23 years agos/securelvel/securelevel/
rwatson [Tue, 25 Sep 2001 02:15:00 +0000 (02:15 +0000)]
s/securelvel/securelevel/

23 years agoLet people know when a startup script is skipped because it is not
obrien [Tue, 25 Sep 2001 01:55:21 +0000 (01:55 +0000)]
Let people know when a startup script is skipped because it is not
executable.

Suggested by: gad

23 years agoBack out rev 1.74. This functionality causes a panic on 4.4-RELEASE
murray [Tue, 25 Sep 2001 00:28:26 +0000 (00:28 +0000)]
Back out rev 1.74.  This functionality causes a panic on 4.4-RELEASE
floppies if you try to actually use it.  This code will work fine if
you build and use sysinstall on a running system, since you have the
benefit of an installed termcap file.  However, this code does not
work on an MFSROOT, where you must set the TERMCAP environment
variable properly.  Unfortunately the quick fix of setting the TERMCAP
variable doesn't seem to fix the problem either.  olgeni will add this
functionality back once it's been fully implemented (hopefully using
the working code in termcap.c).

PR: bin/30739
Submitted by: Alexey V. Neyman <alex.neyman@auriga.ru>
Discussed with / Pointy hat to:  olgeni
MFC after: 3 days

23 years agoAdd a missing dereference level. This caused nfsm_postop_attr_xx()
iedowse [Tue, 25 Sep 2001 00:00:33 +0000 (00:00 +0000)]
Add a missing dereference level. This caused nfsm_postop_attr_xx()
to try and extract node attributes from an RPC reply even if none
were present.

Reviewed by: peter

23 years agoUse b6 instead of b1 - b1 is supposed to be preserved and b6 is scratch.
dfr [Mon, 24 Sep 2001 22:50:20 +0000 (22:50 +0000)]
Use b6 instead of b1 - b1 is supposed to be preserved and b6 is scratch.

23 years agoMake the Alternate {I,D} TLB vector code actually work for virtual
dfr [Mon, 24 Sep 2001 22:49:20 +0000 (22:49 +0000)]
Make the Alternate {I,D} TLB vector code actually work for virtual
addresses greater than 256M (the page size for region 6 and 7).

23 years agoghostscript6 has been replaced by ghostscript-gnu in the Ports
bmah [Mon, 24 Sep 2001 20:15:04 +0000 (20:15 +0000)]
ghostscript6 has been replaced by ghostscript-gnu in the Ports
Collection, so we need to change the ports we need for a release.

23 years agoDon't try to access external files from SKI unless we are actually running
dfr [Mon, 24 Sep 2001 20:01:29 +0000 (20:01 +0000)]
Don't try to access external files from SKI unless we are actually running
in SKI.

23 years agoIncrease the number of bootstrap PVs.
dfr [Mon, 24 Sep 2001 20:00:20 +0000 (20:00 +0000)]
Increase the number of bootstrap PVs.

23 years agoInclude <machine/pte.h> instead of <machine/pmap.h>
dfr [Mon, 24 Sep 2001 19:58:15 +0000 (19:58 +0000)]
Include <machine/pte.h> instead of <machine/pmap.h>

23 years agoWe need different call stubs for static and stacked calling conventions.
dfr [Mon, 24 Sep 2001 19:41:16 +0000 (19:41 +0000)]
We need different call stubs for static and stacked calling conventions.

23 years agoAdd commands to dump the itrs and dtrs.
dfr [Mon, 24 Sep 2001 19:39:34 +0000 (19:39 +0000)]
Add commands to dump the itrs and dtrs.

23 years agoReturn the mapkey which EFI gave us when we read the memory map - we need
dfr [Mon, 24 Sep 2001 19:37:44 +0000 (19:37 +0000)]
Return the mapkey which EFI gave us when we read the memory map - we need
it to call ExitBootServices.

23 years agoTidy up a little - don't try to print anything or enable interrupts after
dfr [Mon, 24 Sep 2001 19:36:45 +0000 (19:36 +0000)]
Tidy up a little - don't try to print anything or enable interrupts after
we start changing translation registers. Also, call ExitBootServices
before we jump into the kernel.

23 years agoPick up pal.s from the kernel sources.
dfr [Mon, 24 Sep 2001 19:31:44 +0000 (19:31 +0000)]
Pick up pal.s from the kernel sources.

23 years agoFactor out PTE and related definitions from pmap.h - they are useful in
dfr [Mon, 24 Sep 2001 19:27:38 +0000 (19:27 +0000)]
Factor out PTE and related definitions from pmap.h - they are useful in
the loader.

23 years agoThe addition of i_dirhash to struct inode pushed RELENG_4's
iedowse [Mon, 24 Sep 2001 18:29:20 +0000 (18:29 +0000)]
The addition of i_dirhash to struct inode pushed RELENG_4's
sizeof(struct inode) into a new malloc bucket on the i386. This
didn't happen in -current due to the removal of i_lock, but it does
no harm to apply the workaround to -current first.

Reduce the size of the i_spare[] array in struct inode from 4 to
3 entries, and change ext2fs to use i_din.di_spare[1] so that it
does not need i_spare[3].

Reviewed by: bde
MFC after: 3 days

23 years agoBack out rev 1.274. The previous behavior was documented in rc.8 and
obrien [Mon, 24 Sep 2001 18:17:11 +0000 (18:17 +0000)]
Back out rev 1.274.  The previous behavior was documented in rc.8 and
the original commit of local_startup depended on the scripts being
executable; so there is too much precedence to change it now.  About all
anyone could agree on is that rev 1.274 broke POLA and before rev 1.274
also broke POLA.

23 years agoClarify that -h implies -c.
obrien [Mon, 24 Sep 2001 17:42:37 +0000 (17:42 +0000)]
Clarify that -h implies -c.

23 years agoFix a few comment typos from the last commit.
dfr [Mon, 24 Sep 2001 17:38:58 +0000 (17:38 +0000)]
Fix a few comment typos from the last commit.

23 years agoAdd some code which can be used to change to/from physical mode when
dfr [Mon, 24 Sep 2001 17:07:23 +0000 (17:07 +0000)]
Add some code which can be used to change to/from physical mode when
calling various firmware functions.

23 years agoOnly compile with strtofflags.c from libc if bootstrapping.
ru [Mon, 24 Sep 2001 15:38:38 +0000 (15:38 +0000)]
Only compile with strtofflags.c from libc if bootstrapping.

23 years agoo Reduce userland inclusion of kernel headers -- remove unneeded include
rwatson [Mon, 24 Sep 2001 15:00:16 +0000 (15:00 +0000)]
o Reduce userland inclusion of kernel headers -- remove unneeded include
  of <sys/mbuf.h>.

Reviewed by: jlemon

23 years agoo Reduce userland inclusion of kernel headers -- remove unneeded include
rwatson [Mon, 24 Sep 2001 14:43:35 +0000 (14:43 +0000)]
o Reduce userland inclusion of kernel headers -- remove unneeded include
  of <sys/mbuf.h>.

Reviewed by: jlemon

23 years agoFix typo.
hrs [Mon, 24 Sep 2001 12:56:52 +0000 (12:56 +0000)]
Fix typo.