freebsd-skq/sys
dwmalone 86cf053ae0 Hopefully improve control message passing over Unix domain sockets.
1) Allow the sending of more than one control message at a time
over a unix domain socket. This should cover the PR 29499.

2) This requires that unp_{ex,in}ternalize and unp_scan understand
mbufs with more than one control message at a time.

3) Internalize and externalize used to work on the mbuf in-place.
This made life quite complicated and the code for sizeof(int) <
sizeof(file *) could end up doing the wrong thing. The patch always
create a new mbuf/cluster now. This resulted in the change of the
prototype for the domain externalise function.

4) You can now send SCM_TIMESTAMP messages.

5) Always use CMSG_DATA(cm) to determine the start where the data
in unp_{ex,in}ternalize. It was using ((struct cmsghdr *)cm + 1)
in some places, which gives the wrong alignment on the alpha.
(NetBSD made this fix some time ago).

This results in an ABI change for discriptor passing and creds
passing on the alpha. (Probably on the IA64 and Spare ports too).

6) Fix userland programs to use CMSG_* macros too.

7) Be more careful about freeing mbufs containing (file *)s.
This is made possible by the prototype change of externalise.

PR:		29499
MFC after:	6 weeks
2001-10-04 13:11:48 +00:00
..
alpha Fix problem where a user buffer outside of the area being tested 2001-10-02 18:34:20 +00:00
amd64 Fix problem where a user buffer outside of the area being tested 2001-10-02 18:34:20 +00:00
arm o Remove some GCCisms in src/powerpc/include/endian.h. 2001-08-30 00:04:19 +00:00
boot Whitespace fixes. 2001-10-04 10:18:00 +00:00
cam o Modify access control code for the CAM SCSI pass-through device to 2001-09-26 20:13:16 +00:00
coda Use the passed in thread to selrecord() instead of curthread. 2001-09-21 22:26:51 +00:00
compat Catch up with the visibility callback stuff, and give up trying to keep the 2001-10-01 04:31:05 +00:00
conf Comment out RESTARTABLE_PANICS so that it is not defined in LINT. It 2001-10-04 10:31:51 +00:00
contrib IPFilter munges multicast address packets on the loopback interface. 2001-09-12 22:06:36 +00:00
crypto properly check DES weak key. KAME PR 363. 2001-07-03 17:46:48 +00:00
ddb Fill out some gaps in ia64 DDB support. This involves generalising DDB's 2001-09-15 11:06:07 +00:00
dev Add busspace hacks for ia64. 2001-10-04 08:33:16 +00:00
fs Add a PFS_DISABLED flag; pfs_visible() automatically returns 0 if it is set 2001-10-02 22:22:42 +00:00
geom KSE Milestone 2 2001-09-12 08:38:13 +00:00
gnu The addition of i_dirhash to struct inode pushed RELENG_4's 2001-09-24 18:29:20 +00:00
i4b sppp rewrites the interface's ip address directly; this breaks when the 2001-10-01 18:03:56 +00:00
i386 Comment out RESTARTABLE_PANICS so that it is not defined in LINT. It 2001-10-04 10:31:51 +00:00
ia64 Add low-level ACPI support code and make a start on parsing the ACPI 2001-10-04 08:45:19 +00:00
isa Add PnP ID 'IBM3781' for TP240 mouse. 2001-10-03 07:26:28 +00:00
isofs/cd9660 KSE Milestone 2 2001-09-12 08:38:13 +00:00
kern Hopefully improve control message passing over Unix domain sockets. 2001-10-04 13:11:48 +00:00
libkern Fix a warning in bsearch(). Like index() etc, it de-qualifies its 2001-09-10 10:33:46 +00:00
modules Add a change I forgot when adding ED_NO_MIIBUS. This will likely 2001-09-30 01:59:11 +00:00
net Documentation comment: note that the each NIC's softc is assumed to start 2001-10-02 18:08:34 +00:00
netatalk KSE Milestone 2 2001-09-12 08:38:13 +00:00
netatm KSE Milestone 2 2001-09-12 08:38:13 +00:00
netgraph Hopefully improve control message passing over Unix domain sockets. 2001-10-04 13:11:48 +00:00
netinet in_ifinit apparently can be used to rewrite an ip address; recalculate 2001-10-01 18:07:08 +00:00
netinet6 Make faith loadable, unloadable, and clonable. 2001-09-25 18:40:52 +00:00
netipx KSE Milestone 2 2001-09-12 08:38:13 +00:00
netkey KSE Milestone 2 2001-09-12 08:38:13 +00:00
netnatm
netncp KSE Milestone 2 2001-09-12 08:38:13 +00:00
netns
netsmb Map errdos:67 to the ENOENT. 2001-08-21 09:16:57 +00:00
nfs Unwind some more macros. NFSMADV() was kinda silly since it was right 2001-09-28 04:37:08 +00:00
nfsclient Unwind some more macros. NFSMADV() was kinda silly since it was right 2001-09-28 04:37:08 +00:00
nfsserver Unwind some more macros. NFSMADV() was kinda silly since it was right 2001-09-28 04:37:08 +00:00
pc98 o Modify pc98 syscons code to use securelevel_gt() instead of 2001-09-26 20:26:32 +00:00
pccard Fix, I think, The second slot problem with Cirrus Logic PD6729/30 parts: 2001-09-21 06:45:35 +00:00
pci Let's not kid ourselves- we don't *really* support jumbframes yet. 2001-10-02 22:36:49 +00:00
posix4 KSE Milestone 2 2001-09-12 08:38:13 +00:00
powerpc Fix problem where a user buffer outside of the area being tested 2001-10-02 18:34:20 +00:00
rpc
sparc64 Add contents to struct *reg. 2001-09-30 19:59:07 +00:00
svr4
sys Hopefully improve control message passing over Unix domain sockets. 2001-10-04 13:11:48 +00:00
tools KSE Milestone 2 2001-09-12 08:38:13 +00:00
ufs o Replace two direct uid!=0 comparisons with suser_xxx() calls. 2001-10-02 14:41:43 +00:00
vm o Modify access control checks in mmap() to use securelevel_gt() instead 2001-09-26 20:29:39 +00:00
Makefile