summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Clean up the bogus pci.h file we create.phk2001-11-031-0/+2
|
* Remove PAO3 dependent part.non2001-11-0310-352/+1
| | | | This will not affect either -current nor -stable.
* No FreeBSD/vax here either.peter2001-11-032-2/+2
|
* FreeBSD/vax is quite some time away.peter2001-11-032-7/+0
|
* Add modules for lpt, plip, ppbus, ppi and pps.phk2001-11-036-0/+60
| | | | Submitted by: j mckitrick <jcm@freebsd-uk.eu.org>
* FreeBSD/tahoe is not likely for a while.peter2001-11-031-3/+0
|
* Add Id for 82801CA (ICH3?). The ich driver seems to work fine on thepeter2001-11-031-1/+5
| | | | laptop that had it.
* Add ICH3 (82801CA/CAM) and 460GXpeter2001-11-032-0/+48
|
* Add a 'reset' command. This is useful for panics really early beforepeter2001-11-031-0/+13
| | | | any symbols are loaded. Especially for unattended machines.
* Declare struct uio so consumers don't have to #include <sys/uio.h> unlessdes2001-11-031-0/+1
| | | | they intend to call proc_rwmem().
* Reduce the number of #include dependencies by declaring some of the structsdes2001-11-034-6/+19
| | | | used in pseudofs.h as opaque structs.
* allocrqg: Don't ever try to write to a NULL pointer.grog2001-11-031-1/+1
| | | | Reported by: Jeff Roberson <jeff@midstream.com>
* Revert rev 1.3 which moved us away from POSIX character classes.obrien2001-11-031-4/+4
| | | | The community feels our base AWK must handle them.
* Revert rev 1.7 which moved us away from POSIX character classes.obrien2001-11-031-15/+18
| | | | The community feels our base AWK must handle them.
* Implement i386/i386/pmap.c 1.292 for alpha, ia64 (avoid freedillon2001-11-032-2/+34
| | | | page exhaustion / kernel panic for certain madvise() scenarios)
* We have a _SIG_VALID() macro, so use it instead of duplicating the test alldes2001-11-021-7/+5
| | | | | | over the place. Also replace a printf() + panic() with a KASSERT(). Reviewed by: jhb
* Add the as-yet-unused S_ALLSTOPS which I forgot in previous commit.des2001-11-021-0/+1
|
* Arrgh. A clean pc98 build failed due to bogons on my part :-(.imp2001-11-022-0/+4
| | | | | | | | Fix it by putting back the link of machine to sys/i386/include rather than ../../include (aka sys/pc98/include). I had a stale machine link on my first test. Not sure what the "right" fix is, but this unbreaks things.
* Factor the common parts of the Makefile.foo files. This introduces twoimp2001-11-028-1791/+343
| | | | | | | | | | | new files: kern.pre.mk, which contains most of the definitions, and kern.post.mk, which contains most of the rules. I've tested this on i386 and pc98. I have had feedback on the sparc64 port, but no reports from anybody on alpha, ia64 or powerpc. I appologize in advance if I've broken you. Reviewed by: jake, jhb, arch@
* Better error messages for the cases where device_add_child fails. Weimp2001-11-021-2/+8
| | | | | | | | should also whine if the old pccardd is used, but that's a little harder than it sounds. This also has the effect of fixing a typo that was in the last version I committed.
* o Remove (struct proc *p = td->td_proc) indirection in ipcperm(),rwatson2001-11-021-5/+3
| | | | | | | | | as suser_td(td) works as well as suser_xxx(NULL, p->p_ucred, 0); This simplifies upcoming changes to suser(), and causes this code to use the right credential (well, largely) once the td->td_ucred changes are complete. There remains some redundancy and oddness in this code, which should be rethought after the next batch of suser and credential changes.
* Back out the -w, option strict and our($...). They don't work for me andimp2001-11-021-3/+3
| | | | have broken the kernel build.
* o Remove the local temporary variable "struct proc *p" from vfs_mount()rwatson2001-11-022-14/+14
| | | | | | | | | in vfs_syscalls.c. Although it did save some indirection, many of those savings will be obscured with the impending commit of suser() changes, and the result is increased code complexity. Also, once p->p_ucred and td->td_ucred are distinguished, this will make vfs_mount() use the correct thread credential, rather than the process credential.
* Remove an extra " that crept into a string.silby2001-11-021-1/+1
|
* Argh!phk2001-11-022-42/+0
| | | | | | patch added the nmount at the bottom first time around. Take 3!
* o Introduce group subset test, which limits the ability of a process torwatson2001-11-021-8/+36
| | | | | | | | | | | | | | | | | | | debug another process based on their respective {effective,additional, saved,real} gid's. p1 is only permitted to debug p2 if its effective gids (egid + additional groups) are a strict superset of the gids of p2. This implements properly the security test previously incorrectly implemented in kern_ktrace.c, and is consistent with the kernel security policy (although might be slightly confusing for those more familiar with the userland policy). o Restructure p_candebug() logic so that various results are generated comparing uids, gids, credential changes, and then composed in a single check before testing for privilege. These tests encapsulate the "BSD" inter-process debugging policy. Other non-BSD checks remain seperate. Additional comments are added. Submitted by: tmm, rwatson Obtained from: TrustedBSD Project Reviewed by: petef, tmm, rwatson
* Add empty shell for nmount syscall (take 2!)phk2001-11-022-0/+42
|
* o Add new header <sys/stdint.h>.mike2001-11-0225-26/+2660
| | | | | | | | | | | | | | | | | | | | | o Make <stdint.h> a symbolic link to <sys/stdint.h>. o Move most of <sys/inttypes.h> into <sys/stdint.h>, as per C99. o Remove <sys/inttypes.h>. o Adjust includes in sys/types.h and boot/efi/include/ia64/efibind.h to reflect new location of integer types in <sys/stdint.h>. o Remove previously symbolicly linked <inttypes.h>, instead create a new file. o Add MD headers <machine/_inttypes.h> from NetBSD. o Include <sys/stdint.h> in <inttypes.h>, as required by C99; and include <machine/_inttypes.h> in <inttypes.h>, to fill in the remaining requirements for <inttypes.h>. o Add additional integer types in <machine/ansi.h> and <machine/limits.h> which are included via <sys/stdint.h>. Partially obtain from: NetBSD Tested on: alpha, i386 Discussed on: freebsd-standards@bostonradio.org Reviewed by: bde, fenner, obrien, wollman
* Add nmount() stub function and regenerate the syscall-glue which shouldphk2001-11-027-7/+59
| | | | not need to check in generated files.
* Reserve 378 for the new mount syscall Maxime Henrion <mux@qualys.com>phk2001-11-021-0/+3
| | | | is working on. (This is to get us more than 32 mountoptions).
* Rather than just change the arguments to suser() change the function tomike2001-11-021-1/+1
| | | | | | suser_xxx() as well. Pointy hat to: rwatson
* Don't hide the failure to allocate device behind boot verbose. It isimp2001-11-021-3/+2
| | | | | | | still telling us of real problems so should remain until it stops doing that. Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org>
* Print a warning when device_add_child returns NULL. This used to beimp2001-11-021-0/+5
| | | | | | impossible at this point, but now it apparently is. Grump. Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org>
* + Fix another possible vn_close race, in the same fashion as r1.95.jlemon2001-11-021-5/+6
| | | | | + Check that the cached vnode type != VBAD before calling devsw(), this can happen if the vnode has been revoked.
* o Add a comment to p_candebug() noting that the P_INEXEC check shouldrwatson2001-11-021-1/+6
| | | | | | | | | | | | really be moved elsewhere: p_candebug() encapsulates the security policy decision, whereas the P_INEXEC check has to do with "correctness" regarding race conditions, rather than security policy. Example: even if no security protections were enforced (the "uids are advisory" model), removing P_INEXEC could result in incorrect operation due to races on credential evaluation and modification during execve(). Obtained from: TrustedBSD Project
* The sound drivers live in sound/driver, not sound/driversimp2001-11-022-2/+2
| | | | submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
* Merge from POSIX.1e Capabilities development tree:rwatson2001-11-021-2/+17
| | | | | | | | | | | o Reorder and synchronize #include's, including moving "opt_cap.h" to above system includes. o Introduce #ifdef'd kern.security.capabilities sysctl tree, including kern.security.capabilities.enabled, which defaults to 0. The rest of the file remains stubs for the time being. Obtained from: TrustedBSD Project
* Merge from POSIX.1e Capabilities development tree:rwatson2001-11-021-6/+17
| | | | | | | | | o POSIX.1e capabilities authorize overriding of VEXEC for VDIR based on CAP_DAC_READ_SEARCH, but of !VDIR based on CAP_DAC_EXECUTE. Add appropriate conditionals to vaccess() to take that into account. o Synchronization cap_check_xxx() -> cap_check() change. Obtained from: TrustedBSD Project
* Fixed sioreg.h path.nyan2001-11-021-1/+1
|
* o Capabilities cap_check() interface revised to remove _xxx, so renamerwatson2001-11-021-1/+1
| | | | | | in p_cansched(). Also, replace '0' with 'NULL' for the ucred * pointer. Obtained from: TrustedBSD Project
* o Since kern_acl.c uses #ifdef CAPABILITIES to controlrwatson2001-11-023-0/+6
| | | | | | capability-specific semantics, #include "opt_cap.h". Obtained from: TrustedBSD Project
* o Merge recent changes from the POSIX.1e capability tree:rwatson2001-11-021-0/+17
| | | | | | | | | | | | | - Introduce cap_check_td() to reflect suser_td() - Introduce non-portable cap_from_text2_np(), which converts a text-form capability to an internal form relative to an existing capability, and non-portable cap_to_text2_np(), which accepts a flag argument specifying more about the text output format. - Introduce CTT_* flags controlling the behavior of cap_to_text2_np(). Submitted by: tmm Obtained from: TrustedBSD Project
* Call ast() from exception_restore when we are restoring to user mode.dfr2001-11-022-16/+24
|
* Use static storage for the unwind state so that we can still get backtracesdfr2001-11-021-4/+22
| | | | when the VM system is hosed.
* #ifdef KTRACE a variable to silence a warning.phk2001-11-021-0/+2
| | | | Submitted by: Maxime "mux" Henrion <mux@qualys.com>
* Turn the symlinks around, instead of ad0s1 -> ad0s1c, make it ad0s1c -> ad0s1.phk2001-11-021-13/+23
| | | | Requested by: peter
* Remember to actually free the pv_entry in pmap_remove_entry().dfr2001-11-021-0/+1
|
* Emit a warning if the mbuf or mbuf cluster allocation failed.jlemon2001-11-021-0/+4
| | | | Requested by: Mike Barcroft
* argh! cut/paste typo. :-(peter2001-11-021-1/+1
| | | | (committed on a different machine to what I was testing it on)
* "Fix" a problem that got copied from alpha to ia64 and broke there.peter2001-11-022-2/+6
| | | | | | | | | | When we truncate the msgbuf size because the last chunk is too small, correctly terminate the phys_avail[] array - the VM system tests the *end* for zero, not the start. This leads the VM startup to attempt to recreate a duplicate set of pages for all physical memory. XXX the msgbuf handling is suspiciously different on i386 vs alpha/ia64...
OpenPOWER on IntegriCloud