Commit Graph

139343 Commits

Author SHA1 Message Date
christos 34772d5e9b PR/31051: Kousaku Nakahara: can't find the device from Macintosh through
AppleTalk(Netatalk) in the network including a seed router
Byte order problem, fixed as suggested.
2005-08-24 06:06:51 +00:00
martin bc0454688a Improve language slightly - partly based on suggestion from
Ignatios Souvatzis, any errors are mine.
2005-08-23 21:58:42 +00:00
elad 2567fd1c7b Bump libc here too. Noted by mrg@. 2005-08-23 19:57:54 +00:00
kiyohara 188918d76f Fix marge miss. We use 'hw.fwmem.eui64_[hl]i'. 2005-08-23 19:19:51 +00:00
elad 050dc98aca Bump libc minor after adding SHA2 routines. 2005-08-23 17:50:44 +00:00
elad 7d818e4714 Compile SHA2 again. 2005-08-23 17:49:50 +00:00
elad d3e7b0bab8 We don't have SHA{256,384,512}_Pad, but we do have _Transform. 2005-08-23 17:49:27 +00:00
elad dc175888db Add SHA2 man-pages. 2005-08-23 17:47:07 +00:00
elad 7bdf56d9b6 Remove stuff inside #if 0, remove __P macro usage, add helper routines
prototypes inside #ifndef _KERNEL.
2005-08-23 16:23:50 +00:00
elad ec1aee0b10 Add helper routines (end, filechunk, file, data) for SHA2. 2005-08-23 16:20:01 +00:00
elad d5f9e57cff Put back in information about the deprecated flags in the man-page. Be
explicit about them being removed, and suggest using the ``-a'' flag.
2005-08-23 15:29:48 +00:00
rpaulo b07796b5b8 Added map_type = file to the global configuration. Else, we would get warnings
on amd boot saying the file wasn't executable.
2005-08-23 13:54:41 +00:00
yamt d5c3f1e190 ufs_readdir: don't leak kernel garbage to userland. 2005-08-23 12:27:47 +00:00
yamt 3f2c6f0661 ufs_readdir: when computing the maximum number of entries,
use _DIRENT_RECLEN(cdp, 1) instead of "4".
2005-08-23 12:27:16 +00:00
peter 668c49bc35 Add new files for pf.boot.conf. 2005-08-23 12:14:00 +00:00
peter 9c1da17e90 pf needs to be started after the network is up, because some pf rules
derive IP address(es) from the interface (e.g "... from any to fxp0").
This however, creates window for possible attacks from the network.

Implement the solution proposed by YAMAMOTO Takashi:
Add /etc/defaults/pf.boot.conf and load it with the /etc/rc.d/pf_boot
script before starting the network. People who don't like the default
rules can override it with their own /etc/pf.boot.conf.
The default rules have been obtained from OpenBSD.

No objections on: tech-security
2005-08-23 12:12:56 +00:00
christos 8a2ba8f0f7 This should be LFS_MAXNAMLEN 2005-08-23 11:44:25 +00:00
tron 0989a73965 Use FFS_MAXNAMLEN instead of MAXNAMLEN. 2005-08-23 11:26:59 +00:00
tron 1dbccd015b Use FFS_MAXNAMLEN instead of MAXNAMLEN. 2005-08-23 11:10:23 +00:00
yamt 565285f75f add M_MOVE_PKTHDR.[09] 2005-08-23 09:38:17 +00:00
yamt 0d8b16f3a1 sort. 2005-08-23 09:36:47 +00:00
yamt 653095ecab document M_MOVE_PKTHDR. 2005-08-23 09:34:11 +00:00
christos 0b0eb1328b Don't overload MAXNAMLEN, use a separate constant for each filesystem type. 2005-08-23 08:05:13 +00:00
christos 62ea392e41 in setgroups(), sort -u the gid_t array to make sure that comparisons are
consistent.
2005-08-23 07:58:58 +00:00
christos fdd5a2fbdd Change PRiu64 with a cast and %llu. I am not using PRIu32 and no cast for
now. I will do so in a separate pass that will fix all the inode printing.
2005-08-23 05:55:29 +00:00
jonathan 2632a233ba No change. Forced commit to record commit message for previous revision, viz:
Fix vulnerability to a denial-of-service attack which passes a
length-0 crypto op. Check for zero length and return EINVAL, taken from:

    http://cvsweb.FreeBSD.org/src/sys/opencrypto/cryptodev.c.diff?r1=1.25&r2=1.26

Original FreeBSD log mesage:

  Modified files:
    sys/opencrypto       cryptodev.c
  Log:
  Fix bogus check. It was possible to panic the kernel by giving 0 length.
  This is actually a local DoS, as every user can use /dev/crypto if there
  is crypto hardware in the system and cryptodev.ko is loaded (or compiled
  into the kernel).

  Reported by:    Mike Tancsa <mike@sentex.net>


thanks to Sam Leffler for passing on a heads-up about this issue.
2005-08-22 23:11:47 +00:00
jonathan 867a03c37c *** empty log message *** 2005-08-22 23:06:34 +00:00
gavan 84c672e259 Add quirk for BGE_CHIPID_BCM5751_A1. From Kurt Schreiner <ks at ub.uni-mainz
dot de> via PR kern/31028.
2005-08-22 18:18:25 +00:00
elad 935cb376b9 Make this usable both in kernel and userland. 2005-08-22 15:33:08 +00:00
tron ff5245dd05 Define "_PATH_VI" if necessary to make cross-building work again under
Solaris (and potentially other platforms) after "disklabel" has been
added to the hosts tools.
2005-08-22 15:27:11 +00:00
rillig 20f0c3a484 Bugfix: In crcmp, compare n group IDs instead of only n bytes.
Added a big FIXME because two group lists containing the same entries,
but ordered differently, still compare as unequal. The same holds if one
group list contains an entry twice while the other does not. ok'ed by
christos.
2005-08-22 15:10:50 +00:00
elad b4df0b712a Note about deprecated flags. 2005-08-22 14:47:55 +00:00
perry 15e3f0cc19 Small ugly hack -- sed "Mounted on" to "Mount" so that the df line
fits in <80 columns.

We should probably do this better -- I'm going to look into importing
der mouse's halign program to make a cleaner job of this.
2005-08-22 14:24:45 +00:00
perry 9e84da172c Make max_loginlen and max_grouplen 16.
We've handled 16 character logins for quite some time, and we even
have packages that create >8 character accounts. There is no point in
pretending the limit is 8 any more by default.

Discussed (very lightly -- there was little comment) on tech-userlevel
2005-08-22 14:09:23 +00:00
bouyer f60ca60293 Rename _PRIVATE_BUS_DMAMEM_ALLOC_RANGE to _BUS_DMAMEM_ALLOC_RANGE for
consistency with other macros defined in bus_private.h. Pointed out by
YAMAMOTO Takashi.
2005-08-22 11:09:39 +00:00
bouyer e6a6daf84f Fix a memory leak. Thanks to YAMAMOTO Takashi for the notice. 2005-08-22 11:04:10 +00:00
he 54e6da6105 Change from using sys___{,f,l}stat13() to sys___{,f,l}stat30() and
associated data structures, following the change to 64-bit inodes.
2005-08-22 10:57:04 +00:00
yamt 653be60965 even with -F, don't overwrite p_size unless filesystem size is
specified by -s.
2005-08-22 09:19:19 +00:00
yamt 84c9e5bbc1 whitespace. 2005-08-22 09:08:17 +00:00
christos b0e192f2b6 change ino_t to u_int32_t for syscall compatibility. 2005-08-22 08:53:03 +00:00
riz d8cca2c4c2 Update for recent changes:
- pkgsrc has over 5400 packages these days
 - change core's membership to reflect current reality
 - update the list of portmasters
2005-08-22 06:36:31 +00:00
riz ff57609c26 Update this script so it works correctly with the current format of
http://www.netbsd.org/People/port-maintainers.html .

Also, clarify some comments, escape a backlash so that the correct
macro for ø is generated, and make sure it's substituted everywhere
in the name.

This script is still not perfect - it will produce incorrect output
the first time that the second portmaster has a hyperlink associated
with his name.  For now, though, it generates correct output for
what we've got.
2005-08-22 06:29:53 +00:00
riz 7cd3fcaa97 Add an amd64 'Quick install notes for the impatient' bit, and
touch up the amd64 directory structure.
2005-08-22 04:02:30 +00:00
rpaulo 061ff0e0af Use #ifdef AUICH_DEBUG instead of #if 0/#if 1. Suggested by perry@. 2005-08-22 01:15:12 +00:00
rpaulo f8799a3e8f PR#31030: debug printf in auich_halt_pipe. From lmneto@gmail.com.
It was under #if 1, so I just replaced the if by 0.
2005-08-21 23:57:32 +00:00
chs d6e0b5fcb6 regen 2005-08-21 23:19:04 +00:00
chs edd620cbec add nvidia devices found on an ASUS K8N-DL motherboard,
plus various other cards.
2005-08-21 23:18:40 +00:00
chs 760cf823a4 copy some settings from ../boot/Makefile.boot that let us try to load
64-bit kernels on amd64.
2005-08-21 23:04:30 +00:00
chs fe611fb346 add "consdev" from ../boot.
make "quit" work like it does in ../boot
(ie. let us try again with a bootloader from a different device).
2005-08-21 23:02:34 +00:00
he 26122ef59f Add libcrypto for the benefit of sun2. 2005-08-21 23:00:12 +00:00