aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a detach method to allow this device to be unloaded.Warner Losh2000-08-302-0/+14
| | | | Notes: svn path=/head/; revision=65242
* Add comment about why the deletion of children is necessary in detach.Warner Losh2000-08-301-0/+8
| | | | Notes: svn path=/head/; revision=65241
* Replace strtok with strsep (strtok is not allowed in libraries)Andrey A. Chernov2000-08-301-1/+1
| | | | | | | Approved by: markm Notes: svn path=/head/; revision=65240
* fix ccd module.Poul-Henning Kamp2000-08-301-1/+1
| | | | Notes: svn path=/head/; revision=65238
* o Centralize inter-process access control, introducing:Robert Watson2000-08-3020-83/+255
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | int p_can(p1, p2, operation, privused) which allows specification of subject process, object process, inter-process operation, and an optional call-by-reference privused flag, allowing the caller to determine if privilege was required for the call to succeed. This allows jail, kern.ps_showallprocs and regular credential-based interaction checks to occur in one block of code. Possible operations are P_CAN_SEE, P_CAN_SCHED, P_CAN_KILL, and P_CAN_DEBUG. p_can currently breaks out as a wrapper to a series of static function checks in kern_prot, which should not be invoked directly. o Commented out capabilities entries are included for some checks. o Update most inter-process authorization to make use of p_can() instead of manual checks, PRISON_CHECK(), P_TRESPASS(), and kern.ps_showallprocs. o Modify suser{,_xxx} to use const arguments, as it no longer modifies process flags due to the disabling of ASU. o Modify some checks/errors in procfs so that ENOENT is returned instead of ESRCH, further improving concealment of processes that should not be visible to other processes. Also introduce new access checks to improve hiding of processes for procfs_lookup(), procfs_getattr(), procfs_readdir(). Correct a bug reported by bp concerning not handling the CREATE case in procfs_lookup(). Remove volatile flag in procfs that caused apparently spurious qualifier warnigns (approved by bde). o Add comment noting that ktrace() has not been updated, as its access control checks are different from ptrace(), whereas they should probably be the same. Further discussion should happen on this topic. Reviewed by: bde, green, phk, freebsd-security, others Approved by: bde Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=65237
* o Disable flagging of ASU in suser_xxx() authorization check. For theRobert Watson2000-08-301-2/+0
| | | | | | | | | | | | | | | time being, the ASU accounting flag will no longer be available, but may be reinstituted in the future once authorization have been redone. As it is, the kernel went through contortions in access control to avoid calling suser, which always set the flag. This will also allow suser to accept const struct *{cred, proc} arguments. Reviewed by: bde, green, phk, freebsd-security, others Approved by: bde Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=65236
* Fix ordering for real this time.Jacques Vidrine2000-08-301-1/+2
| | | | Notes: svn path=/head/; revision=65234
* Remove an extraneous setting of sb_hiwat.Brian Feldman2000-08-302-2/+0
| | | | Notes: svn path=/head/; revision=65229
* Get rid of the old version.Brian Feldman2000-08-291-60/+0
| | | | Notes: svn path=/head/; revision=65227
* Use a C version of which(1).Brian Feldman2000-08-292-8/+146
| | | | | | | | Submitted by: Dan Papasian <bugg@bugg.strangled.net> Reviewed by: jhb Notes: svn path=/head/; revision=65226
* Change the "Duplicate Wired Device entry" printout in camperiphnextunit toKenneth D. Merry2000-08-291-7/+13
| | | | | | | | | | | | also mention the peripheral name, bus, target and lun of the device we attempted to put in that slot. This gives the user a little more information about what is going on. Tested by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Discussed with: gibbs Notes: svn path=/head/; revision=65225
* Add quirk entries from Andre Albsmeier to disable the sync cache commandKenneth D. Merry2000-08-292-12/+21
| | | | | | | | | | | | | | | | | for the Quantum "MAVERICK 540S" and "LPS525S". Also, add common string variables, since we seem to have a few Quantum and Micropolis drives in here. Fix the 'quantum' variable usage in scsi_all.c that likely got broken when someone staticized things in cam_xpt.c. (That particular problem would cause Quantum Fireball ST drives to not get spun up if they were not already spinning.) Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Notes: svn path=/head/; revision=65224
* sigh, add opt_devfs.hCameron Grant2000-08-292-2/+2
| | | | Notes: svn path=/head/; revision=65223
* strtok -> strsep (no strtok allowed in libraries)Andrey A. Chernov2000-08-292-6/+8
| | | | Notes: svn path=/head/; revision=65222
* strtok -> strsep (no strtok allowed in libraries)Andrey A. Chernov2000-08-292-6/+12
| | | | | | | add unsigned char cast to ctype macro Notes: svn path=/head/; revision=65221
* strtok() -> strsep() (no strtok() in libraries allowed)Andrey A. Chernov2000-08-292-16/+26
| | | | | | | | | small cleanup in nearby area: pointer 0 -> NULL, according to manpages hardcoded constant -> sizeof(buf) Notes: svn path=/head/; revision=65220
* remove stuff accidentally left in last commitCameron Grant2000-08-291-16/+0
| | | | Notes: svn path=/head/; revision=65219
* suspend/resume for ds1 driverCameron Grant2000-08-291-9/+51
| | | | | | | | PR: misc/20891 Submitted by: Ira L. Cooper <ira@mit.edu> Notes: svn path=/head/; revision=65218
* Refine implementation of PowerResource manipulation sub-routines.Mitsuru IWASAKI2000-08-293-120/+266
| | | | | | | | | | | | | | - Add new funcions for device state stuff; acpi_get_current_device_state() and acpi_set_device_state() - Add new funcions for power resource stuff; acpi_powerres_init(), acpi_powerres_debug(), acpi_get_current_powerres_state() and acpi_set_powerres_state() These were implemented based on 7.1, 7.2, 7.2.2, 7.2.3, 7.2.4, 7.3, 7.3.3, 7.4, 7.4.1, 7.4.2, 7.4.3 and 7.5 of ACPI spec 1.0b. Notes: svn path=/head/; revision=65217
* A lot of changes on acpi driver code.Mitsuru IWASAKI2000-08-295-73/+97
| | | | | | | | | | | | | | | | | | | - The "Osd*" stuff went away from acpi driver code, use the bus_space functions directly instead. - Fix minor english bugs. acpi_registers_input -> acpi_register_input acpi_registers_output -> acpi_register_output - Remove all magic numbers for the sleeping states. We now have #defines for these. - NULL is treated the same as the return from aml_get_rootname in aml_find_from_namespace(). Suggested by: msmith Thanks mike! Notes: svn path=/head/; revision=65216
* Add /dev/acpi for ACPI.Mitsuru IWASAKI2000-08-291-0/+8
| | | | Notes: svn path=/head/; revision=65215
* Add a dependency needed when using parallel make.Jacques Vidrine2000-08-291-1/+1
| | | | | | | Approved by: markm Notes: svn path=/head/; revision=65213
* Correct LogMAXBrian Somers2000-08-291-1/+1
| | | | | | | | Broken by: me Submitted by: Mark Hannon <markhannon@one.net.au> Notes: svn path=/head/; revision=65211
* Use srandom() under OpenBSDBrian Somers2000-08-291-1/+1
| | | | | | | Submitted by: Matt Behrens <matt@megaweapon.zigg.com> Notes: svn path=/head/; revision=65210
* make the test for hwptr going backwards more picky- now it only triggers ifCameron Grant2000-08-291-1/+1
| | | | | | | 15/16 of the buffer is skipped or we go backwards by < 1/16 of buffer size. Notes: svn path=/head/; revision=65209
* Give ccd a cloning function.Poul-Henning Kamp2000-08-292-16/+64
| | | | Notes: svn path=/head/; revision=65208
* add devfs support. when devfs is enabled, sysctl hw.sndunit is used to setCameron Grant2000-08-291-1/+65
| | | | | | | | which sound unit the /dev/{dsp,mixer,dspW,audio} links point at. this can also be set from the loader. Notes: svn path=/head/; revision=65207
* activate fm801Cameron Grant2000-08-292-1/+2
| | | | Notes: svn path=/head/; revision=65206
* add driver for forte-media fm801Cameron Grant2000-08-292-0/+751
| | | | | | | | PR: conf/20698 Submitted by: dimmy the wild <diwil@dataart.com> Notes: svn path=/head/; revision=65205
* Add libusb record for .Lb macroAlexey Zelkin2000-08-291-0/+1
| | | | Notes: svn path=/head/; revision=65201
* o Restructure vaccess() so as to check for DAC permission to modify theRobert Watson2000-08-2913-91/+195
| | | | | | | | | | | | | | | | | | | object before falling back on privilege. Make vaccess() accept an additional optional argument, privused, to determine whether privilege was required for vaccess() to return 0. Add commented out capability checks for reference. Rename some variables to make it more clear which modes/uids/etc are associated with the object, and which with the access mode. o Update file system use of vaccess() to pass NULL as the optional privused argument. Once additional patches are applied, suser() will no longer set ASU, so privused will permit passing of privilege information up the stack to the caller. Reviewed by: bde, green, phk, -security, others Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=65200
* Many and sundry changes. Still alpha quality.Poul-Henning Kamp2000-08-291-136/+360
| | | | Notes: svn path=/head/; revision=65199
* Remove any possibility of hiwat-related race conditions by changingBrian Feldman2000-08-296-24/+31
| | | | | | | | | | the chgsbsize() call to use a "subject" pointer (&sb.sb_hiwat) and a u_long target to set it to. The whole thing is splnet(). This fixes a problem that jdp has been able to provoke. Notes: svn path=/head/; revision=65198
* Apply appropriate patch.Darren Reed2000-08-291-0/+1
| | | | | | | | PR: 20877 Submitted by: Frank Volf (volf@oasis.IAEhv.nl) Notes: svn path=/head/; revision=65197
* Remove a vestige of an older attempt at implementing this.Doug Rabson2000-08-291-1/+0
| | | | Notes: svn path=/head/; revision=65196
* 8859-9 fontAndrey A. Chernov2000-08-293-0/+99
| | | | | | | Submitted by: Evren Yurtesen <yurtesen@ispro.net.tr> Notes: svn path=/head/; revision=65193
* Expand information about device.hints. Add information in theWarner Losh2000-08-291-1/+17
| | | | | | | | | | | cookbook section about needing to copy GENERIC.hints to /boot/device.hints, as well as a footnote about exceptions to this rule. Partially suggested by: obrien Notes: svn path=/head/; revision=65192
* Add TI-1031 id. It doesn't work yet, but it is nice to have it.Warner Losh2000-08-294-0/+12
| | | | | | | | These were on cards that were pci pccard (not cardbus) bridges that lived in SparcUltras that picked up on ebay. Notes: svn path=/head/; revision=65191
* Add iso08 fontsAndrey A. Chernov2000-08-291-0/+1
| | | | Notes: svn path=/head/; revision=65189
* Fix Hebrew langcodeAndrey A. Chernov2000-08-291-6/+6
| | | | Notes: svn path=/head/; revision=65188
* Hebrew keyboardAndrey A. Chernov2000-08-292-0/+6
| | | | Notes: svn path=/head/; revision=65187
* Add Hebrew keyboardAndrey A. Chernov2000-08-291-0/+114
| | | | | | | | PR: 20864 Submitted by: Allow Ole <allow@darkserver.dyndns.org> Notes: svn path=/head/; revision=65185
* BDECFLAGS (with a whitespace change or two)Bill Fumerola2000-08-297-74/+77
| | | | Notes: svn path=/head/; revision=65184
* Correct typo.Greg Lehey2000-08-292-2/+2
| | | | Notes: svn path=/head/; revision=65183
* set pccard insertion beep type in install floppy.MIHIRA Sanpei Yoshiro2000-08-292-0/+18
| | | | | | | | | | | | When we use PC-Card as install media, it is a patch to tell with beep about whether we were able to recognize it well. Reviewed by: jkh, imp Tested by: Kenji Yamada <kyamada@ISI.EDU> Notes: svn path=/head/; revision=65182
* Add LogFILTER logging to log packets allowed by the dial filter andBrian Somers2000-08-285-28/+83
| | | | | | | | | | | dropped by any filter. Submitted by: Mark Hannon <markhannon@one.net.au> with some small tweaks by me. Notes: svn path=/head/; revision=65181
* Revert back to the previous i-node values for the fixit floppy.John Baldwin2000-08-281-2/+2
| | | | Notes: svn path=/head/; revision=65180
* - Break the acd track devices out into a seperate target acdXt[Y]. TheJohn Baldwin2000-08-281-12/+34
| | | | | | | | | | | | X field is treated the same as the unit number for acdX. The optional Y parameter specifies the number of track devices to create starting at track 1. If Y is not specified, it defaults to 100. - Add the acd0t target to the all target to preserve previous behavior. - Don't add the acd0t target to the fixit target, thus keeping the fixit floppy from running out of i-nodes. Notes: svn path=/head/; revision=65179
* Support radius accounting, and add a packet count to throughputBrian Somers2000-08-287-5/+206
| | | | | | | | | | | | statistics as a side effect. Submitted by: Marcin Cieslak <saper@system.pl> with some tweaks to RAD_ACCT_SESSION_ID and RAD_ACCT_MULTI_SESSION_ID generation by me. Notes: svn path=/head/; revision=65178
* After positive feedback from a few folks, activate a switchover toPeter Wemm2000-08-284-155/+36
| | | | | | | | | | | | using killall.c instead of the perl version that depends on procfs. The C version uses sysctl(). The program is based on a hack that was originally written about 6 years ago and has evolved somewhat since then. (which is why it is a superset of killall.pl, rather than being a clone.) With apologies to: wosch Notes: svn path=/head/; revision=65177