summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use available rc.subr features.yar2005-10-021-27/+16
| | | | | Reduce code duplication. Follow the current style of rc.d scripting.
* Do not packet filter in the bridge_start() routine, locally generated packetsthompsa2005-10-021-20/+9
| | | | | | | are already filtered by the higher layers. Approved by: mlaier (mentor) MFC after: 3 days
* Record dependency on the newly introduced pfsync.yar2005-10-021-2/+2
| | | | | | | | | | | | | | Start before routing for better system protection. (pf used to start late during system boot, after many a network daemon have started already, which sucked from security POV.) Remark: For maximum security, pf should start before netif, but it would create a dependency loop because pfsync has to start after netif, yet before pf. Discussed with: mlaier on -pf MFC after: 5 days
* Add an rc.d script to start pfsync at the right moment of theyar2005-10-025-3/+111
| | | | | | | | | | | | | system boot, and hook it up in the system. The separate script is needed because in the presence of various interface lists in rc.conf ($network_interfaces, $cloned_interfaces, $sppp_interfaces, $gif_interfaces, more to come) it is hard to start them orderly, so that pfsync is brought up after its syncdev, which is required for the proper startup of pfsync. Discussed with: mlaier on -pf MFC after: 5 days
* New release notes:hrs2005-10-022-8/+146
| | | | | | | | | | | | | | | | acpi_thermal(4) passive cooling support, ichsmb(4) unloading bug fixed, smbios(4) support on amd64, hw.apic.enable_extint added, sound(4) improvements, MPSAFE: the bottom half of NFS, snd_als4000(4), snd_cmi(4), snd_via8233(4), snd_via82c686(4), and natm(4), GEOM_ZERO class added, umass(4) PLAY_* commands support, moused(8) -H flag, shared library version bump, and pkg_version(1) -o and -O flags.
* * Fixed rate operation for es1370 chip to solve conflictingnetchild2005-10-021-118/+222
| | | | | | | | | | | | | | | sampling rate between playback and recording. This can be disabled / enabled via kernel hints (hint.pcm.<unit>.fixed_rate=0/4000-48000) or sysctl hw.snd.pcm<unit>.fixed_rate=0/4000-48000). Default to 48khz fixed rate. [1] * Basic cleanup. *_es1371x_* -> *_es137x_*. * Some locking fixes. [2] Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my> Discussed with: yongari [2] See also: http://lists.freebsd.org/pipermail/freebsd-multimedia/2005-September/002758.html [1] Reported by: Jos Backus <jos at catnook.com> [1]
* Use rc.subr(8) appropriately:yar2005-10-021-44/+23
| | | | | | | | - utilize default methods instead of rolling local ones; - avoid to specify BEFORE conditions we don't really need (pflog will be REQUIRE'd by pf); - omit extra decoration from warning messages, warn() will decorate them sufficiently.
* Emulate pcm mixer controller for any uaudio device without it.netchild2005-10-021-0/+9
| | | | Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>
* The cmi9739_patch function which is referenced by ac97.c (rev. 1.56) now...netchild2005-10-022-0/+11
| | | | | Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my> Pointy hat to: netchild (for not committing it with rev. 1.56 of ac97.c)
* sys/dev/sound/pcm/sndstat.c:netchild2005-10-023-51/+42
| | | | | | | | | | | | | | | | | | | | * General spl* cleanup. It doesn't serve any purpose anymore. * Nuke sndstat_busy(). Addition of sndstat_acquire() / sndstat_release() for sndstat exclusive access. [1] sys/dev/sound/pcm/sound.c: * Remove duplicate SLIST_INIT() * Use sndstat_acquire() / release() to lock / release the entire sndstat during pcm_unregister(). This should fix LOR #159 [1] sys/dev/sound/pcm/sound.h: * Definition of SD_F_SOFTVOL (part of feeder volume) * Nuke sndstat_busy(). Addition of sndstat_acquire() / sndstat_release() for exclusive sndstat access. [1] Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my> LOR: 159 [1] Discussed with: yongari [1]
* General spl* cleanup. It doesn't serve any purpose anymore.netchild2005-10-021-34/+1
| | | | Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>
* sys/dev/sound/pcm/ac97.c:netchild2005-10-024-19/+112
| | | | | | | | | | | | | | | | | | | * Added codec id for CMI9761. * feeder_volume *whitelist* through ac97_fix_volume() sys/dev/sound/pcm/ac97.h: * Added AC97_F_SOFTVOL definition. sys/dev/sound/pcm/channel.c: * Slight changes for chn_setvolume() to conform with OSS. * FEEDER_VOLUME is now part of feeder building process. sys/dev/sound/pcm/mixer.c: * General spl* cleanup. It doesn't serve any purpose anymore. * Main hook for feeder_volume. Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my> Tested by: multimedia@
* Soft volume implementation for audio devices without pcm mixer controller.netchild2005-10-023-1/+80
| | | | | Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my> Tested by: multimedia@
* Document that -q option is also applicable to the "change" command.ru2005-10-021-2/+2
| | | | | PR: docs/85095 Submitted by: Rostislav Krasny
* Add a DDB "traceall" function, which stack traces all known processrwatson2005-10-021-0/+18
| | | | | | | | | | threads. This is quite useful if generating a debug log for post-mortem by another developer, in which case the person at the console may not know which threads are of interest. The output of this can be quite long. Discussed with: kris MFC after: 3 days
* o Restore kerneldumpheader.architectureversion bytes swoppingmaxim2005-10-021-1/+2
| | | | | | | | mangled in rev. 1.72. PR: bin/86805 Submitted by: Gavin Atkinson MFC after: 3 days
* Two fixes for the last commit.glebius2005-10-021-3/+2
| | | | Submitted by: ru
* Include kdb.h so that kdb_active is declared regardless of KDB beingrwatson2005-10-021-0/+1
| | | | | | included in the kernel. MFC after: 0 days
* Complete removal of mac_create_root_mount/mpo_create_root_mount MACrwatson2005-10-024-6/+0
| | | | | | | | interfaces. Obtained from: TrustedBSD Project Submitted by: Chris Vance <Christopher dot Vance at SPARTA dot com> MFC after: 3 days
* o Teach sysctl_drop() how to deal with the sockets in TIME_WAIT state.maxim2005-10-022-2/+10
| | | | | | | | This is a special case because tcp_twstart() destroys a tcp control block via tcp_discardcb() so we cannot call tcp_drop(struct *tcpcb) on such connections. Use tcp_twclose() instead. MFC after: 5 days
* Add firewall-related xrefs to SEE ALSO.yar2005-10-021-0/+13
|
* Allow user to override default port numbers used by communicationbp2005-10-028-13/+80
| | | | | | protocols. This is very useful for tunneled SMB connections. MFC after: 4 weeks
* o Remove unfinished code and make it possible to overridemaxim2005-10-021-14/+5
| | | | | | bsdextended_script from rc.conf(5): Not objected by: trhodes
* Fixing WEP bustage in hostap mode since 5.2-RELEASE.avatar2005-10-022-15/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - WEP TX fix: The original code called software crypto, ieee80211_crypto_encap(), which never worked since IEEE80211_KEY_SWCRYPT was never flagged due to ieee80211_crypto_newkey() assumes that wi always supports hardware based crypto regardless of operational mode(by virtue of IEEE80211_C_WEP). This fix works around that issue by adding wi_key_alloc() to force the use of s/w crypto. Also if anyone ever decides to cleanup ioctl handling where key changes wouldn't cause a call to wi_init() every time, we'll need wi_key_alloc() to DTRT. In addition to that, this fix also adds code to wi_write_wep() to force existing keys to be switched between h/w and s/w crypto such that an operation mode change(sta <-> hostap) will flag IEEE80211_KEY_SWCRYPT properly. - WEP RX fix: Clear IEEE80211_F_DROPUNENC even in hostap mode. Quote from Sam: "This is really gross but I don't see an easy way around it. By doing it we lose the ability to independently drop unencode frames (and support mixed wep/!wep use). We should really be setting the EXCLUDE_UNENCRYPTED flag written in wi_write_wep based on IEEE80211_F_DROPUNENC but with our clearing it we can't depend on it being set properly." Reported by: Holm Tiffe <holm at freibergnet dot de> Submitted by: sam MFC after: 3 days
* Honouring ic->ic_dtim_period.avatar2005-10-021-1/+1
| | | | | Submitted by: sam MFC after: 3 days
* Fix the usage of rc_usage. The rc_usage function takesyar2005-10-011-3/+3
| | | | | | a list of possible keywords, not all them in a single argument. This also fixes the issue of extra delimiter characters appearing on the help line from rc.d scripts not setting $extra_commands.
* Note that kern.polling.enable is deprecated.glebius2005-10-011-0/+4
|
* Second attempt at a work-around for fifo-related socket panics duringrwatson2005-10-011-0/+4
| | | | | | | | make -j with high levels of parallelism: acquire Giant in fifo I/O routines. Discussed with: ups MFC after: 3 days
* Make sure the clone lists are sorted in the right order.phk2005-10-011-3/+5
| | | | | Explosion triggered by: pjd MFC: 3 days
* Now ifconfig is the one right way to turn polling on. Thus, removeglebius2005-10-011-5/+6
| | | | the "if" clauses.
* Correct previous commit to fix the sense of the TDP_NORUNNINGBUFtruckman2005-10-011-1/+1
| | | | | | | | | check in ffs_copyonwrite() that is a precondition for calling waitrunningbufspace(). Pointed out by: tegge Pointy hat to: truckman MFC after: 3 days
* - Catch up with the fact that HZ is 1000 now by default.glebius2005-10-011-22/+21
| | | | | | | | | | - Remove description of poll in trap feature. - Tell that polling should be turned on and off with ifconfig. - Move description of kern.polling.enable to the end and say that this a deprecated way of turning polling on. - Remove note that idle poll has some problems in CURRENT. I failed to find them, while Sam and Luigi failed to remember what the problem actually were there.
* Big polling(4) cleanup.glebius2005-10-0125-752/+854
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Axe poll in trap. o Axe IFF_POLLING flag from if_flags. o Rework revision 1.21 (Giant removal), in such a way that poll_mtx is not dropped during call to polling handler. This fixes problem with idle polling. o Make registration and deregistration from polling in a functional way, insted of next tick/interrupt. o Obsolete kern.polling.enable. Polling is turned on/off with ifconfig. Detailed kern_poll.c changes: - Remove polling handler flags, introduced in 1.21. The are not needed now. - Forget and do not check if_flags, if_capenable and if_drv_flags. - Call all registered polling handlers unconditionally. - Do not drop poll_mtx, when entering polling handlers. - In ether_poll() NET_LOCK_GIANT prior to locking poll_mtx. - In netisr_poll() axe the block, where polling code asks drivers to unregister. - In netisr_poll() and ether_poll() do polling always, if any handlers are present. - In ether_poll_[de]register() remove a lot of error hiding code. Assert that arguments are correct, instead. - In ether_poll_[de]register() use standard return values in case of error or success. - Introduce poll_switch() that is a sysctl handler for kern.polling.enable. poll_switch() goes through interface list and enabled/disables polling. A message that kern.polling.enable is deprecated is printed. Detailed driver changes: - On attach driver announces IFCAP_POLLING in if_capabilities, but not in if_capenable. - On detach driver calls ether_poll_deregister() if polling is enabled. - In polling handler driver obtains its lock and checks IFF_DRV_RUNNING flag. If there is no, then unlocks and returns. - In ioctl handler driver checks for IFCAP_POLLING flag requested to be set or cleared. Driver first calls ether_poll_[de]register(), then obtains driver lock and [dis/en]ables interrupts. - In interrupt handler driver checks IFCAP_POLLING flag in if_capenable. If present, then returns.This is important to protect from spurious interrupts. Reviewed by: ru, sam, jhb
* Copy new process argument list in do_execve() before grabbing PROC_LOCKtruckman2005-10-011-10/+10
| | | | | | | | | | to avoid touching pageable memory while holding a mutex. Simplify argument list replacement logic. PR: kern/84935 Submitted by: "Antoine Pelisse" apelisse AT gmail.com (in a different form) MFC after: 3 days
* Update for GNU cpio 2.6.tjr2005-10-011-12/+24
|
* Merge long_format() time formatting code and fixes for printf() formattjr2005-10-011-11/+14
| | | | errors from old copyin.c.
* Define HAVE_MKFIFO and HAVE_SETLOCALE here since the configure scripttjr2005-10-011-1/+2
| | | | apparently fails to do it.
* Merge from old copyout.c rev 1.2: Output a zero rdev except for bdevs,tjr2005-10-011-2/+139
| | | | | cdevs, fifos and sockets. Don't output a file if the major, minor or totality of its rdev would be truncated.
* Merge from old copypass.c rev 1.3: If we must yell at the user than atjr2005-10-011-1/+1
| | | | | | file cannot be linked into place when requested (not required) to do it, reassure them that cpio is still intelligent enough that it will perform a full copy instead.
* Merge from old util.c rev 1.2: say "volume" instead of "tape".tjr2005-10-011-2/+4
|
* Merge from old main.c rev 1.2: Don't set the umask until after we havetjr2005-10-011-2/+4
| | | | processed the arguments and opened the archive file.
* Merge from old tar.c rev 1.2: Recognize and skip 'x' and 'g' paxtjr2005-10-011-0/+15
| | | | extension entries.
* Merge from old copyin.c rev 1.5, copypass.c rev 1.2: Create fifos usingtjr2005-10-012-8/+32
| | | | mkfifo() instead of attempting to create them using mknod().
* Update for GNU cpio 2.6.tjr2005-10-013-15/+528
|
* Rename isnumber() to cpio_isnumber() to avoid clashing with thetjr2005-10-011-3/+5
| | | | <ctype.h> library function of the same name.
* Remove files no longer present in GNU cpio distribution. Most of thesetjr2005-10-0135-10361/+0
| | | | were actually moved into subdirectories.
* This commit was generated by cvs2svn to compensate for changes in r150765,tjr2005-10-0184-10/+19558
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import GNU cpio 2.6 (trimmed)tjr2005-10-0184-10/+19558
| |
* | Allow the root user to be aware of other credentials by virtuetrhodes2005-09-301-2/+12
| | | | | | | | | | | | of privilege. Submitted by: rwatson
* | Use ansi function definitions in preference to K&R to reduce diffsimp2005-09-3018-200/+82
| | | | | | | | with NetBSD (and cause it looks cooler).
OpenPOWER on IntegriCloud