]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoTeach UFS to respond to pathconf() tests for _POSIX_ACL_EXTENDED and
rwatson [Sun, 20 Oct 2002 21:49:41 +0000 (21:49 +0000)]
Teach UFS to respond to pathconf() tests for _POSIX_ACL_EXTENDED and
_POSIX_MAC_PRESENT based on available mount flags, if the services are
available.

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

21 years agoCorrect mis-spelling in pathconf constant _POSIX_ACL_CAP_PRESENT to
rwatson [Sun, 20 Oct 2002 21:45:07 +0000 (21:45 +0000)]
Correct mis-spelling in pathconf constant _POSIX_ACL_CAP_PRESENT to
be the more correct _POSIX_CAP_PRESENT.

21 years agoSplit out most of the logic from in_pcbbind() into a new function
iedowse [Sun, 20 Oct 2002 21:44:31 +0000 (21:44 +0000)]
Split out most of the logic from in_pcbbind() into a new function
called in_pcbbind_setup() that does everything except commit the
changes to the PCB. There should be no functional change here, but
in_pcbbind_setup() will be used by the soon-to-appear IP_SENDSRCADDR
control message implementation to check or allocate the source
address and port.

Discussed on: -net
Approved by: re

21 years agoGDB 5.2.1 doesn't build on sparc64 right now.
obrien [Sun, 20 Oct 2002 21:42:55 +0000 (21:42 +0000)]
GDB 5.2.1 doesn't build on sparc64 right now.

21 years agoRemove extern declarations of stuff which is static in nfs_node.c
phk [Sun, 20 Oct 2002 21:40:55 +0000 (21:40 +0000)]
Remove extern declarations of stuff which is static in nfs_node.c
Move related macro to nfs_node.c

Spotted by: FlexeLint

21 years ago - Replace two instances of vm_page_sleep_busy() with the page queue
alc [Sun, 20 Oct 2002 21:40:17 +0000 (21:40 +0000)]
 - Replace two instances of vm_page_sleep_busy() with the page queue
   mutex-friendly vm_page_sleep_if_busy().
 - Introduce page queue locking in pmap_page_lookup() and
   pmap_release_free_page().
 - Simplify the invalidation of the pmap's ptphint in
   pmap_release_free_page().  (MFi386 pmap.c revision 1.362.)

21 years ago'&' not used for pointers to functions.
phk [Sun, 20 Oct 2002 21:31:16 +0000 (21:31 +0000)]
'&' not used for pointers to functions.

Spotted by: FlexeLint

21 years agoRemove even more '&' from pointers to functions.
phk [Sun, 20 Oct 2002 21:30:02 +0000 (21:30 +0000)]
Remove even more '&' from pointers to functions.

Spotted by: FlexeLint

21 years agoAdd an actual implementation of kse_wakeup()
julian [Sun, 20 Oct 2002 21:08:47 +0000 (21:08 +0000)]
Add an actual implementation of kse_wakeup()
Submitted by: Davidxu

21 years agoStamping out more Danglish.
phk [Sun, 20 Oct 2002 20:59:10 +0000 (20:59 +0000)]
Stamping out more Danglish.

21 years agogive alpha a bus_space_subregion() so that ahd_pci compiles and moves
gallatin [Sun, 20 Oct 2002 20:55:37 +0000 (20:55 +0000)]
give alpha a bus_space_subregion() so that ahd_pci compiles and moves
LINT one file further on.  Only 999,999 or so more files to go..

21 years agoDon't us an array[1], it just hides where '&' isn't used right.
phk [Sun, 20 Oct 2002 20:53:42 +0000 (20:53 +0000)]
Don't us an array[1], it just hides where '&' isn't used right.

Be consistent about functions being static.

Verified by: md5 hash of generated .o file.

21 years agoUse ENOSPC error return, not ENOMEM.
phk [Sun, 20 Oct 2002 20:50:31 +0000 (20:50 +0000)]
Use ENOSPC error return, not ENOMEM.

Use %jd rather than %lld.

21 years agoChange the definition of the debugging registers to be an array, so
phk [Sun, 20 Oct 2002 20:48:56 +0000 (20:48 +0000)]
Change the definition of the debugging registers to be an array, so
that we can index into it, rather than do pointer gymnastics on a
structure containing 8 elements.

Verified by: MD5 hash on the produced .o files.

21 years ago'&' is not needed to pointerize functions.
phk [Sun, 20 Oct 2002 20:42:25 +0000 (20:42 +0000)]
'&' is not needed to pointerize functions.

Spotted by: FlexeLint

21 years agoConnect ubsa module to build.
kan [Sun, 20 Oct 2002 20:35:14 +0000 (20:35 +0000)]
Connect ubsa module to build.

Forgotten by: kan

21 years agoNow that the sectorsize and mediasize are properties of the provider,
phk [Sun, 20 Oct 2002 20:28:24 +0000 (20:28 +0000)]
Now that the sectorsize and mediasize are properties of the provider,
don't take the detour over the I/O path to discover them using getattr(),
we can just pick them out directly.

Do note though, that for now they are only valid after the first open
of the underlying disk device due compatibility with the old disk_create()
API.  This will change in the future so they will always be valid.

Sponsored by:   DARPA & NAI Labs.

21 years agoThe g_id*() functions are not needed in the userland test-suite so
phk [Sun, 20 Oct 2002 20:08:44 +0000 (20:08 +0000)]
The g_id*() functions are not needed in the userland test-suite so
#ifdef _KERNEL them rather than deal with a copyin simulation.

Sponsored by: DARPA & NAI Labs

21 years ago o Reinline vm_page_undirty(), reducing the kernel size. (This reverts
alc [Sun, 20 Oct 2002 19:57:55 +0000 (19:57 +0000)]
 o Reinline vm_page_undirty(), reducing the kernel size.  (This reverts
   a part of vm_page.h revision 1.87 and vm_page.c revision 1.167.)

21 years agoAdd checks for DIGIT set consistency to prevent common misinterpretation
ache [Sun, 20 Oct 2002 19:56:15 +0000 (19:56 +0000)]
Add checks for DIGIT set consistency to prevent common misinterpretation
automatically.
Remove output file on error.
Staticize functions declared as static.

21 years agoStick .Os between .Dd and .Dt
chris [Sun, 20 Oct 2002 19:45:39 +0000 (19:45 +0000)]
Stick .Os between .Dd and .Dt

21 years agoMove .Os to its proper location in the document.
chris [Sun, 20 Oct 2002 19:44:36 +0000 (19:44 +0000)]
Move .Os to its proper location in the document.

21 years agoUse microuptime() instead of microtime() to bound the flush wait to
tmm [Sun, 20 Oct 2002 19:41:21 +0000 (19:41 +0000)]
Use microuptime() instead of microtime() to bound the flush wait to
avoid hiccups in case of system time adjustment.

21 years agoo Spelling, punctuation and markup fixes.
chris [Sun, 20 Oct 2002 19:38:28 +0000 (19:38 +0000)]
o Spelling, punctuation and markup fixes.
o Correctly use the "No chain is stronger than its weakest link" adage.

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

21 years agoo Use .Cm for 'attach', 'detach', 'init', 'setkey', and 'destroy' commands
chris [Sun, 20 Oct 2002 19:20:26 +0000 (19:20 +0000)]
o Use .Cm for 'attach', 'detach', 'init', 'setkey', and 'destroy' commands
o Fix some punctuation and wording
o Wording consistency in command-line option documentation
o Make use of mdoc's markup a bit more (quoting and the like)

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

21 years agoMake the sectorsize a property of providers so we can include it in the XML
phk [Sun, 20 Oct 2002 19:18:07 +0000 (19:18 +0000)]
Make the sectorsize a property of providers so we can include it in the XML
output.

Sponsored by: DARPA & NAI Labs

21 years agos/dettach/detach/g etc.
phk [Sun, 20 Oct 2002 19:08:56 +0000 (19:08 +0000)]
s/dettach/detach/g etc.

Pointed out by: chris

21 years agoUse %jd instead of %lld now that we have it.
phk [Sun, 20 Oct 2002 18:48:12 +0000 (18:48 +0000)]
Use %jd instead of %lld now that we have it.

21 years agoIt makes more sense for the fwheads and fwsectors properties to be in
phk [Sun, 20 Oct 2002 18:46:25 +0000 (18:46 +0000)]
It makes more sense for the fwheads and fwsectors properties to be in
the provider stanza rather than the geom stanza.

21 years agoFix data corruption caused by last byte in oddly sized transfers being read
tegge [Sun, 20 Oct 2002 18:43:11 +0000 (18:43 +0000)]
Fix data corruption caused by last byte in oddly sized transfers being read
to wrong location in RxBuf and written from wrong location in TxBuf.

21 years agoInclude fwsectors and gfwheads in the XML output for the disks we know.
phk [Sun, 20 Oct 2002 18:09:01 +0000 (18:09 +0000)]
Include fwsectors and gfwheads in the XML output for the disks we know.

Sponsored by: DARPA & NAI Labs.

21 years agoRemove a boatload of '&' which are surplus to the requirements.
phk [Sun, 20 Oct 2002 18:02:46 +0000 (18:02 +0000)]
Remove a boatload of '&' which are surplus to the requirements.

Validated by: md5 hash is unchanged.

21 years agoRevert last commit, there actually was a -1 waaaaay down in pcireg_cfgread().
phk [Sun, 20 Oct 2002 17:54:17 +0000 (17:54 +0000)]
Revert last commit, there actually was a -1 waaaaay down in pcireg_cfgread().

21 years agoHide inline assembly if lint is defined.
phk [Sun, 20 Oct 2002 17:30:30 +0000 (17:30 +0000)]
Hide inline assembly if lint is defined.

21 years ago"id" is never going to be -1 when it is unsigned.
phk [Sun, 20 Oct 2002 17:21:43 +0000 (17:21 +0000)]
"id" is never going to be -1 when it is unsigned.

Spotted by: FlexeLint

21 years agoAdapt to handle the new sparc64 core dump format correctly.
tmm [Sun, 20 Oct 2002 17:06:50 +0000 (17:06 +0000)]
Adapt to handle the new sparc64 core dump format correctly.

Reviewed by: jake

21 years agoAdd kernel dump support, based on the ia64 version (which was committed
tmm [Sun, 20 Oct 2002 17:03:15 +0000 (17:03 +0000)]
Add kernel dump support, based on the ia64 version (which was committed
as sparc64/sparc64/dump_machdep.c a while back).
Other than ia64 (which uses ELF), sparc64 uses a homegrown format for
the dumps (headers are required because the physical address and size of
the tsb must be noted, and because physical memory may be discontiguous);
ELF would not offer any advantages here.

Reviewed by: jake

21 years agoDon't declare mb_statpcpu, it is static in subr_mbuf.c
phk [Sun, 20 Oct 2002 16:55:52 +0000 (16:55 +0000)]
Don't declare mb_statpcpu, it is static in subr_mbuf.c

Spotted by: FlexeLint

21 years agoNuke pccard.conf from FreeBSD/i386 mfsroot (no longer needed).
matusita [Sun, 20 Oct 2002 16:27:11 +0000 (16:27 +0000)]
Nuke pccard.conf from FreeBSD/i386 mfsroot (no longer needed).

Suggested by: nyan

21 years agoFix mis-indentation.
phk [Sun, 20 Oct 2002 16:00:43 +0000 (16:00 +0000)]
Fix mis-indentation.

Approved by: scottl

21 years agoRemove the slattach command from the mfsroot floppies.
nyan [Sun, 20 Oct 2002 15:40:09 +0000 (15:40 +0000)]
Remove the slattach command from the mfsroot floppies.

21 years ago- Remove the UFS_ACL option from the boot floppies.
nyan [Sun, 20 Oct 2002 15:37:32 +0000 (15:37 +0000)]
- Remove the UFS_ACL option from the boot floppies.
- Remove duplicate entries.

21 years agoCorrect various typos.
ceri [Sun, 20 Oct 2002 15:27:32 +0000 (15:27 +0000)]
Correct various typos.

PR: docs/44302
Submitted by: Christian Brueffer <chris@unixpages.org>
Approved by: phk

21 years agoRemove quotes to make an example of kernel configuration valid.
ceri [Sun, 20 Oct 2002 15:19:40 +0000 (15:19 +0000)]
Remove quotes to make an example of kernel configuration valid.

PR: docs/44306
Submitted by: Dmitry Dyomin <old@old.com.ua>
MFC after: 3 days

21 years agoUse .PATH instead of VPATH.
phk [Sun, 20 Oct 2002 15:02:26 +0000 (15:02 +0000)]
Use .PATH instead of VPATH.

Fix typo in man-page: man-section is 8.

21 years agoBe consistent about functions being static.
phk [Sun, 20 Oct 2002 14:30:28 +0000 (14:30 +0000)]
Be consistent about functions being static.

Spotted by: FlexeLint

21 years agoImprove the way base64 mode is enabled based on the program name,
fanf [Sun, 20 Oct 2002 14:18:25 +0000 (14:18 +0000)]
Improve the way base64 mode is enabled based on the program name,
so that it works when the path to b64encode is used to run it.

21 years agoMinor grammatical correction
tom [Sun, 20 Oct 2002 13:41:44 +0000 (13:41 +0000)]
Minor grammatical correction

21 years agoAdd my birthday.
arved [Sun, 20 Oct 2002 13:33:45 +0000 (13:33 +0000)]
Add my birthday.

Approved by: kris (mentor)

21 years agoDo not build the majority of the games. Remaining are the
markm [Sun, 20 Oct 2002 11:18:56 +0000 (11:18 +0000)]
Do not build the majority of the games. Remaining are the
"utility-like" games and everyone's favourite, fortune(6).

21 years agoSince NEWCARD is the default for i386, undef PCCARD_ARCH.
matusita [Sun, 20 Oct 2002 11:16:41 +0000 (11:16 +0000)]
Since NEWCARD is the default for i386, undef PCCARD_ARCH.
pccard.c is no longer needed for i386 also.

OKed by: imp, nyan

21 years agoComplete the Geom Based Disk Encryption: Add the OAM utility.
phk [Sun, 20 Oct 2002 11:16:13 +0000 (11:16 +0000)]
Complete the Geom Based Disk Encryption:  Add the OAM utility.

Sponsored by: DARPA and NAI Labs

21 years agoConstify input to the arc4 seed function.
phk [Sun, 20 Oct 2002 11:09:58 +0000 (11:09 +0000)]
Constify input to the arc4 seed function.
Implement the lockfile hunting in sector zero.

Sponsored by: DARPA & NAI Labs.

21 years agoWhen recycling a cached connection, increment the reference count so that
tjr [Sun, 20 Oct 2002 10:36:27 +0000 (10:36 +0000)]
When recycling a cached connection, increment the reference count so that
the heap block does not get freed and reused. This should fix the
pkg_add -r crashes that have been happening for months.

21 years agoMFbed: hardware/common/dev.sgml 1.108 -> 1.110
ue [Sun, 20 Oct 2002 10:11:01 +0000 (10:11 +0000)]
MFbed: hardware/common/dev.sgml 1.108 -> 1.110
relnotes/common/new.sgml 1.433 -> 1.437

21 years ago#unifdef the code for checking blessed lock collisions until we need it.
phk [Sun, 20 Oct 2002 08:48:39 +0000 (08:48 +0000)]
#unifdef the code for checking blessed lock collisions until we need it.

Spotted by: DARPA & NAI Labs.

21 years agoFix mis-indentation.
phk [Sun, 20 Oct 2002 08:46:56 +0000 (08:46 +0000)]
Fix mis-indentation.

Spotted by: FlexeLint

21 years agoDon't track bio allocation in debug output.
phk [Sun, 20 Oct 2002 08:45:17 +0000 (08:45 +0000)]
Don't track bio allocation in debug output.

Sponsored by: DARPA & NAI Labs.

21 years agoStyle(9) and english(9) fixes.
phk [Sun, 20 Oct 2002 08:43:56 +0000 (08:43 +0000)]
Style(9) and english(9) fixes.

Submitted by: schweikh

21 years agoMake it possible to specify also via geom_t ID in the geom.ctl config ioctl.
phk [Sun, 20 Oct 2002 08:42:18 +0000 (08:42 +0000)]
Make it possible to specify also via geom_t ID in the geom.ctl config ioctl.

Sponsored by: DARPA & NAI Labs.

21 years agoAfter much delay and anticipation, welcome RAIDFrame into the FreeBSD
scottl [Sun, 20 Oct 2002 08:17:39 +0000 (08:17 +0000)]
After much delay and anticipation, welcome RAIDFrame into the FreeBSD
world.  This should be considered highly experimental.

Approved-by: re

21 years agoWe HAVE_STPCPY now.
obrien [Sun, 20 Oct 2002 07:50:20 +0000 (07:50 +0000)]
We HAVE_STPCPY now.

21 years ago - Lock page queue accesses in pmap_release().
alc [Sun, 20 Oct 2002 07:19:25 +0000 (07:19 +0000)]
 - Lock page queue accesses in pmap_release().

21 years agoRemove the special casing for IP addresses that are within the IVT
marcel [Sun, 20 Oct 2002 06:03:05 +0000 (06:03 +0000)]
Remove the special casing for IP addresses that are within the IVT
or the do_syscall() function. We have unwind directives to stop the
unwinder.

21 years agoDefine IVT_ENTRY and IVT_END as special versions of ENTRY and END
marcel [Sun, 20 Oct 2002 06:00:09 +0000 (06:00 +0000)]
Define IVT_ENTRY and IVT_END as special versions of ENTRY and END
for defining vectors. As a result, each vector will be a global
function with unwind directives to notify the unwinder that we're
in an interrupt handler. In the debugger this will show up something
like:

Debugger(0xe000000000a211d8, 0xe000000000748960) at Debugger+0x31
panic(0xe000000000a36858, 0xe0000000021d32d0, 0xe000000000ae42e8, ...
trap(0x14, 0x100000, 0xe0000000021d32d0, 0x0, 0xa0000000002095f0, ...
ivt_Data_TLB(0x14, 0x100000, 0xe0000000021d32d0) at ivt_Data_TLB+0x1f0

21 years agoCross-reference fmtcheck(3).
tjr [Sun, 20 Oct 2002 03:56:37 +0000 (03:56 +0000)]
Cross-reference fmtcheck(3).

21 years agoIf MAC_MAX_POLICIES isn't defined, don't try to define it, just let the
rwatson [Sun, 20 Oct 2002 03:41:09 +0000 (03:41 +0000)]
If MAC_MAX_POLICIES isn't defined, don't try to define it, just let the
compile fail.  MAC_MAX_POLICIES should always be defined, or we have
bigger problems at hand.

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

21 years agoSort by date.
grog [Sun, 20 Oct 2002 02:20:31 +0000 (02:20 +0000)]
Sort by date.

21 years agoClarify holidays which apply only to the USA
grog [Sun, 20 Oct 2002 02:12:46 +0000 (02:12 +0000)]
Clarify holidays which apply only to the USA

Clarify that the USSR no longer exists, but some of the holidays are
celebrated anyway.

Reviewed in part by: ru

Remove Jewish and most Muslim holidays.  They're all wrong, since they
don't apply to the Western calendar.  The much more complete Jewish
holidays are in calendar.judaic.  The Muslim holidays need to be
collected into a file, but there's not much point in having the wrong
date.

Remove many Fiji holidays.  They change every year by Government
decree, and some were duplicated as a result.

Remove some duplicates.

There's still a lot to be done; in particular, I think the Japanese
and British holidays are very inaccurate.  This file needs checking by
people who know the details.

21 years agoNew sections translated
gioria [Sat, 19 Oct 2002 23:27:32 +0000 (23:27 +0000)]
New sections translated

21 years agoChange the symbol lookup order to search RTLD_GLOBAL objects
kan [Sat, 19 Oct 2002 23:03:35 +0000 (23:03 +0000)]
Change the symbol lookup order to search RTLD_GLOBAL objects
before referencing object's DAG. This makes it possible for
C++ exceptions to work across shared libraries and brings
us closer to the search order used by Solaris/Linux.

Reviewed by: jdp
Approved by: obrien
MFC after: 1 month

21 years agoGive in on the __sF stuff. I have a better fix in mind that is future
peter [Sat, 19 Oct 2002 22:28:07 +0000 (22:28 +0000)]
Give in on the __sF stuff.  I have a better fix in mind that is future
proof, but this should buy me some time for now.

21 years agoStake a claim on 418 (__xstat), 419 (__xfstat), 420 (__xlstat)
peter [Sat, 19 Oct 2002 22:25:31 +0000 (22:25 +0000)]
Stake a claim on 418 (__xstat), 419 (__xfstat), 420 (__xlstat)

21 years agoPut back NORMAL_C_NOWERROR, it was actually used.
mux [Sat, 19 Oct 2002 22:24:43 +0000 (22:24 +0000)]
Put back NORMAL_C_NOWERROR, it was actually used.

Pointy hat to: mux

21 years agoumap_sync is empty and is identical to vfs_stdsync. Remove it and
kan [Sat, 19 Oct 2002 22:22:42 +0000 (22:22 +0000)]
umap_sync is empty and is identical to vfs_stdsync. Remove it and
use generic function instead.

Approved by: obrien

21 years agostyle(9)
kan [Sat, 19 Oct 2002 22:12:19 +0000 (22:12 +0000)]
style(9)

Approved by: obrien

21 years agoGrab 416/417 real estate before I get burned while testing again.
peter [Sat, 19 Oct 2002 22:09:23 +0000 (22:09 +0000)]
Grab 416/417 real estate before I get burned while testing again.
This is for the not-quite-ready signal/fpu abi stuff.  It may not see
the light of day, but I'm certainly not going to be able to validate it
when getting shot in the foot due to syscall number conflicts.

21 years agoWhitespace fixes per style(9)
kan [Sat, 19 Oct 2002 21:58:11 +0000 (21:58 +0000)]
Whitespace fixes per style(9)

Approved by: obrien

21 years agoNew translations
gioria [Sat, 19 Oct 2002 21:49:09 +0000 (21:49 +0000)]
New translations

21 years agoAdd the manual page which explains how gbde works and which bits it is
phk [Sat, 19 Oct 2002 21:44:57 +0000 (21:44 +0000)]
Add the manual page which explains how gbde works and which bits it is
composed off.

Sponsored by: DARPA & NAI Labs.

21 years agoFix the path to the make.conf example file.
blackend [Sat, 19 Oct 2002 21:34:50 +0000 (21:34 +0000)]
Fix the path to the make.conf example file.

PR: docs/44278
Submitted by: Chris Pepper <pepper@rockefeller.edu>

21 years agoSet the NOMACCHECK flag for namei()'s generated by the NFS server code.
rwatson [Sat, 19 Oct 2002 21:27:40 +0000 (21:27 +0000)]
Set the NOMACCHECK flag for namei()'s generated by the NFS server code.
We currently don't enforce protections on NFS-originated VOP's.

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

21 years agoNew translation
gioria [Sat, 19 Oct 2002 21:27:09 +0000 (21:27 +0000)]
New translation

21 years agoAdd a new 'NOMACCHECK' flag to namei() NDINIT flags, which permits the
rwatson [Sat, 19 Oct 2002 21:25:51 +0000 (21:25 +0000)]
Add a new 'NOMACCHECK' flag to namei() NDINIT flags, which permits the
caller to indicate that MAC checks are not required for the lookup.
Similar to IO_NOMACCHECK for vn_rdwr(), this indicates that the caller
has already performed all required protections and that this is an
internally generated operation.  This will be used by the NFS server
code, as we don't currently enforce MAC protections against requests
delivered via NFS.

While here, add NOCROSSMOUNT to PARAMASK; apparently this was used at
one point for name lookup flag checking, but isn't any longer or it
would have triggered from the NFS server code passing it to indicate
that mountpoints shouldn't be crossed in lookups.

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

21 years agoRegen from addition of execve_mac placeholder.
rwatson [Sat, 19 Oct 2002 21:15:10 +0000 (21:15 +0000)]
Regen from addition of execve_mac placeholder.

21 years agoImplement the CDROMREADAUDIO ioctl.
marcel [Sat, 19 Oct 2002 21:11:43 +0000 (21:11 +0000)]
Implement the CDROMREADAUDIO ioctl.

21 years agoAdd a placeholder for the execve_mac() system call, similar to SELinux's
rwatson [Sat, 19 Oct 2002 21:06:57 +0000 (21:06 +0000)]
Add a placeholder for the execve_mac() system call, similar to SELinux's
execve_secure() system call, which permits a process to pass in a label
for a label change during exec.  This permits SELinux to change the
label for the resulting exec without a race following a manual label
change on the process.  Because this interface uses our general purpose
MAC label abstraction, we call it execve_mac(), and wrap our port of
SELinux's execve_secure() around it with appropriate sid mappings.

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

21 years agoDrop in the MAC check for file creation as part of open().
rwatson [Sat, 19 Oct 2002 20:56:44 +0000 (20:56 +0000)]
Drop in the MAC check for file creation as part of open().

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

21 years agoMake sure to clear the 'registered' flag for MAC policies when they
rwatson [Sat, 19 Oct 2002 20:30:12 +0000 (20:30 +0000)]
Make sure to clear the 'registered' flag for MAC policies when they
unregister.  Under some obscure (perhaps demented) circumstances,
this can result in a panic if a policy is unregistered, and then someone
foolishly unregisters it again.

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

21 years agoHook up most of the MAC entry points relating to file/directory/node
rwatson [Sat, 19 Oct 2002 20:25:57 +0000 (20:25 +0000)]
Hook up most of the MAC entry points relating to file/directory/node
creation, deletion, and rename.  There are one or two other stray
cases I'll catch in follow-up commits (such as unix domain socket
creation); this permits MAC policy modules to limit the ability to
perform these operations based on existing UNIX credential / vnode
attributes, extended attributes, and security labels.  In the rename
case using MAC, we now have to lock the from directory and file
vnodes for the MAC check, but this is done only in the MAC case,
and the locks are immediately released so that the remainder of the
rename implementation remains the same.  Because the create check
takes a vattr to know object type information, we now initialize
additional fields in the VATTR passed to VOP_SYMLINK() in the MAC
case.

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

21 years agoSGML-ise accents
gioria [Sat, 19 Oct 2002 20:07:01 +0000 (20:07 +0000)]
SGML-ise accents

21 years agoRemove the _ia64_unwind_start and _ia64_unwind_end symbols. We now
marcel [Sat, 19 Oct 2002 19:32:21 +0000 (19:32 +0000)]
Remove the _ia64_unwind_start and _ia64_unwind_end symbols. We now
find the unwind table through the ELF program headers.

21 years agoUpdate the unwind information when modules are loaded and unloaded
marcel [Sat, 19 Oct 2002 19:30:38 +0000 (19:30 +0000)]
Update the unwind information when modules are loaded and unloaded
by using the linker hooks. Since these hooks are called for the
kernel as well, we don't need to deal with that with a special
SYSINIT. The initialization implicitly performed on the first
update of the unwind information is made explicit with a SYSINIT.
We now don't need the _ia64_unwind_{start|end} symbols.

21 years agoAdd two hooks to signal module load and module unload to MD code.
marcel [Sat, 19 Oct 2002 19:16:03 +0000 (19:16 +0000)]
Add two hooks to signal module load and module unload to MD code.
The primary reason for this is to allow MD code to process machine
specific attributes, segments or sections in the ELF file and
update machine specific state accordingly. An immediate use of this
is in the ia64 port where unwind information is updated to allow
debugging and tracing in/across modules. Note that this commit
does not add the functionality to the ia64 port. See revision 1.9
of ia64/ia64/elf_machdep.c.

Validated on: alpha, i386, ia64

21 years agoReduce code duplication by moving the common actions in
marcel [Sat, 19 Oct 2002 18:59:33 +0000 (18:59 +0000)]
Reduce code duplication by moving the common actions in
link_elf_init(), link_elf_link_preload_finish() and
link_elf_load_file() to link_elf_link_common_finish().
Since link_elf_init() did initializations as a side-effect
of doing the common actions, keep the initialization in
that function. Consequently, link_elf_add_gdb() is now also
called to insert the very first link_map() (ie the kernel).

21 years agoNon-functional change in preparation of the next commit:
marcel [Sat, 19 Oct 2002 18:43:37 +0000 (18:43 +0000)]
Non-functional change in preparation of the next commit:
Move link_elf_add_gdb(), link_elf_delete_gdb() and link_elf_error()
near the top of the file. The *_gdb() functions are moved inside
the #ifdef DDB already present there.

21 years agoComplete the page queues locking needed for the page-based copy-
alc [Sat, 19 Oct 2002 18:34:39 +0000 (18:34 +0000)]
Complete the page queues locking needed for the page-based copy-
on-write (COW) mechanism.  (This mechanism is used by the zero-copy
TCP/IP implementation.)
 - Extend the scope of the page queues lock in vm_fault()
   to cover vm_page_cowfault().
 - Modify vm_page_cowfault() to release the page queues lock
   if it sleeps.

21 years agoFix a missing initialization.
phk [Sat, 19 Oct 2002 17:19:41 +0000 (17:19 +0000)]
Fix a missing initialization.

21 years agoAdd Geom Based Disk Encryption to the tree.
phk [Sat, 19 Oct 2002 17:02:17 +0000 (17:02 +0000)]
Add Geom Based Disk Encryption to the tree.

This is an encryption module designed for to secure denial of access
to the contents of "cold disks" with or without destruction activation.

Major features:

   * Based on AES, MD5 and ARC4 algorithms.
   * Four cryptographic barriers:
        1) Pass-phrase encrypts the master key.
        2) Pass-phrase + Lock data locates master key.
        3) 128 bit key derived from 2048 bit master key protects sector key.
        3) 128 bit random single-use sector keys protect data payload.
   * Up to four different changeable pass-phrases.
   * Blackening feature for provable destruction of master key material.
   * Isotropic disk contents offers no information about sector contents.
   * Configurable destination sector range allows steganographic deployment.

This commit adds the kernel part, separate commits will follow for the
userland utility and documentation.

This software was developed for the FreeBSD Project by Poul-Henning Kamp and
NAI Labs, the Security Research Division of Network Associates, Inc.  under
DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS
research program.

Many thanks to Robert Watson, CBOSS Principal Investigator for making this
possible.

Sponsored by:   DARPA & NAI Labs.

21 years agoPermits UFS ACLs to be used with the GENERIC kernel. Due to recent
rwatson [Sat, 19 Oct 2002 16:54:15 +0000 (16:54 +0000)]
Permits UFS ACLs to be used with the GENERIC kernel.  Due to recent
ACL configuration changes, this shouldn't result in different code paths
for file systems not explicitly configured for ACLs by the system
administrator.  For UFS1, administrators must still recompile their
kernel to add support for extended attributes; for UFS2, it's sufficient
to enable ACLs using tunefs or at mount-time (tunefs preferred for
reliability reasons).  UFS2, for a variety of reasons, including
performance and reliability, is the preferred file system for use with
ACLs.

Approved by: re