Commit Graph

135756 Commits

Author SHA1 Message Date
jmcneill
212a4fdeb4 * Reduce timeout for codec powerup
* Return ENXIO from ac97_attach_type if the modem codec fails to power-on.
  This will prevent broken AC97 modems *cough*Conexant*cough* from giving
  the impression that they will actually work.
2005-04-12 21:11:43 +00:00
drochner
ec387481a6 the real reason behind PR lib/29919 was that there was a __weak_alias,
obviously copied from getmntinfo.c, referencing the compatibility
getmntinfo()
2005-04-12 20:49:19 +00:00
jmcneill
eddca7ac5f Some broken codecs don't release the CAS on reads to AC97_REG_GPIO_STATUS.
In auich_read_codec, do a dummy read to the RESET register if we're
reading GPIO_STATUS to be safe.
2005-04-12 17:30:51 +00:00
jmcneill
4f351ce9a0 Don't touch AC97_REG_RESET if we're dealing with a modem (modems use
AC97_REG_EXT_MODEM_ID instead). Also set the default audio rate to 8000;
12000 was a stupid choice since we don't actually support it in the driver
yet.
2005-04-12 17:28:02 +00:00
wiz
37172421f7 Adapt .Dt argument for man page renaming, and use more macros. 2005-04-12 17:04:46 +00:00
kleink
2debc92229 Actually give /var/chroot/spamd an `obsolete' keyword. 2005-04-12 16:59:16 +00:00
drochner
a00e491cf3 Both libcurses and libc installed a getcap(3) manpage, and both used it
as target for a bunch of MLINKS. This had the effect that whatever came
last in install overwrote everything from the other camp.
Solve this by renaming the libc page -- this makes sense because no
function is really named "getcap" here.
2005-04-12 16:27:42 +00:00
drochner
4ba6a2ab76 this should refer to "cgetset", not "cgetseq" 2005-04-12 16:11:33 +00:00
jwise
17d8f2eb11 Missed commit -- /var/chroot/spamd is now /var/chroot/pfspamd. 2005-04-12 15:55:38 +00:00
kleink
7a5e7ac8e9 Adjust for the Argentina directory that came with tzdata2004b;
noted by Geoff C. Wing in PR bin/29954.
2005-04-12 15:35:54 +00:00
jwise
50ee2bcb04 spamlogd is now pfspamlogd. 2005-04-12 14:47:08 +00:00
jwise
58015a4d36 Finally, spamlogd -> pfspamlogd, for consistency. 2005-04-12 14:44:10 +00:00
jwise
f876c1012e spamd.conf is now pfspamd.conf. 2005-04-12 14:39:39 +00:00
jwise
200b4f7e06 Now that we can override the name of /etc/spamd.conf, make it /etc/pfspamd.conf. 2005-04-12 14:36:15 +00:00
jwise
c48b1f0323 If path to /etc/spamd.conf is passed in on cpp command line, don't override it. 2005-04-12 14:35:36 +00:00
jwise
88573cf3f3 Pass in path to /etc/spamd.conf in CPPFLAGS. 2005-04-12 14:34:57 +00:00
jwise
bfd29aa656 /var/chroot/spamd is now /var/chroot/pfspamd. 2005-04-12 14:24:32 +00:00
jwise
a8293ab76d Now that we can specify the chroot location, make it /var/chroot/pfspamd. 2005-04-12 14:23:26 +00:00
jwise
20e85ad185 Instead of hardcoding /var/chroot/spamd in two places, use a macro
SPAMD_CHROOT, which is passed in by src/usr.sbin/pf/spamd/Makefile.
2005-04-12 14:22:43 +00:00
jwise
aac5bfbda9 Pass in a value for SPAMD_CHROOT in CPPFLAGS, to specify the path to the
chroot dir spamd will use.
2005-04-12 14:21:20 +00:00
hannken
23bc271d48 `lkmlookup()' is called with its name argument either from kernel or from
user space. Add an argument `need_copyin' to only use `copyinstr()' if
the name is from user space.

modstat -n NAME works again.

Reviewed by: Peter Postma <peter@netbsd.org>
2005-04-12 14:13:16 +00:00
itohy
43d5a75df2 Allow multiple modem interfaces per configuration. 2005-04-12 13:12:10 +00:00
yamt
01c07ef7bd fix unreasonably frequent "killed: out of swap" on systems which have
little or no swap.
- even on a severe swap shortage, if we have some amount of file-backed pages,
  don't bother to kill processes.
- if all pages in queue will be likely reactivated, just give up
  page type balancing rather than spinning unnecessarily.
2005-04-12 13:11:45 +00:00
itohy
1bf2f3ae6e Add usb_find_desc_if(), which is similar to usb_find_desc(),
but searches only in the specified interface rather than
in whole configuration.
2005-04-12 13:10:14 +00:00
martin
9edc493234 When creating an int hash value from pointer, go via intptr_t.
Fixes PR 29953.
2005-04-12 12:42:02 +00:00
wiz
5c35c1667a Improve formatting. 2005-04-12 11:50:29 +00:00
drochner
10e5ded54b add definition for "security freeze" 2005-04-12 11:45:40 +00:00
drochner
e69243d0ea document the "security" command 2005-04-12 11:41:14 +00:00
drochner
48eac6e41a Implement a "security" command with subcommands to query the status of
the "security" extension and to "freeze" it. With the security extension
frozen, disk passwords cannot be set anymore, until the next hard reset.
Normally, this is the business of the BIOS, but older/buggy/embedded
BIOSes don't care. This leaves the (theoretical) possibility that a
malicious program in posession of superuser rights sets a disk password,
rendering the disk useless (or at least uneconomical to recover from).
Inspired by an article in the german "ct" magazine.
Being here, consolidate the implementations of IDENTIFY into one, and
fix an obvious alignment problem.
2005-04-12 11:40:46 +00:00
perseant
4c0e96afd6 Use the buffer cache improvements from fsck_lfs. Make it build again. 2005-04-12 01:06:39 +00:00
jwise
ed335360d1 Provide obsolete list entries for old names of pfspamd et al. 2005-04-11 23:39:12 +00:00
perseant
1d4cc6a17b Be more efficient with the hash tables for the buffer and vnode caches.
Note that roll-forward can add more inodes to the filesystem; don't overflow
the tables but reallocate them.
2005-04-11 23:19:24 +00:00
jwise
d4a770bc93 spamd (et al) man pages have also changed to pfspamd (et al). 2005-04-11 22:42:47 +00:00
jwise
d757dd5564 spamd (et al) -> pfspamd (et al). 2005-04-11 22:35:45 +00:00
jwise
d32dabfd88 Per discussion on tech-userlevel and tech-security, install `spamd',
`spamd-setup', and `spamdb' as `pfspamd', `pfspamd-setup', and `pfspamdb'.

To quote Steven M. Bellovin:

  This [having a program in basesrc with the same name as a widely used and
  completely different program in pkgsrc] is a seriously bad idea; it
  violates the rule of least surprise.  That's bad enough in normal
  situations; here, we're talking about security.  You do *not* want to
  confuse people about security features; they're hard enough to get right
  as is.
2005-04-11 22:34:18 +00:00
yamt
a69d29a9d9 mention pf mailing list. 2005-04-11 22:22:58 +00:00
nathanw
1e16e443e6 Rewrite the inner loop of vcopypage() and vzeropage() to be entirely
in inline asm and include turning the DMMU off and back on. This
prevents the compiler (especially gcc -O0) from inserting accesses to
locations in virtual address space when such accesses would fail.
2005-04-11 18:35:38 +00:00
jmcneill
c674ab7b1d Add ac97_attach_type(), to allow the hw driver to skip probes for audio or
modem devices. ac97_attach now calls ac97_attach_type() with
AC97_CODEC_TYPE_AUDIO, for backwords compatibility.
2005-04-11 18:26:48 +00:00
jmcneill
89a6dc2733 Add ICH_CODEC_OFFSET definition 2005-04-11 18:25:38 +00:00
peter
271ad04cd9 Allow an underscore as first character and embedded underscores & dots
for login and group names.

Fixes PR misc/29913 from Arto Selonen.
2005-04-11 15:46:42 +00:00
cube
7f25e48562 Add a note into 20050325 entry that the speaker might not even play any
sound if you don't add an attimer(4) device, as pointed out by Steven M.
Bellovin.
2005-04-11 15:36:46 +00:00
wiz
f5d4b0a380 Remove duplicate word, from Wojciech A. Koszek in PR 29938. 2005-04-11 12:19:16 +00:00
yamt
f12efb9990 fix a bug which corrupts runqueue.
when dealing with events, which are handed to xenevt pseudo device,
don't call wakeup(9)/selnotify(9) at too high IPL.  PR/29792.
2005-04-11 12:10:31 +00:00
jmcneill
cc976626a7 i82801CA is an ICH3, not ICH2. Fix typo in auich_modem_devices. Pointed out
by Nicolas Joly.
2005-04-11 11:20:45 +00:00
yamt
108d62f302 xencons_start: retry when queue is full. 2005-04-11 10:48:14 +00:00
enami
fa07a48b77 Don't put a space before function call operator. 2005-04-11 10:39:06 +00:00
enami
e61e3e0913 byte offset and line count shouldn't be initialized inside the loop. 2005-04-11 09:41:02 +00:00
enami
168f415563 Fix indent and wrap long lines. 2005-04-11 09:40:15 +00:00
yamt
e73431068c don't stamp soft interrupts. 2005-04-11 09:24:04 +00:00
perseant
8d71ddbc4d Ensure that "align" is a power of two before passing it as an argument
to uvm_map().  Approved by pk@.
2005-04-11 05:56:11 +00:00