HardenedBSD/sys
Steven Wallace 473fbdbe96 Add a hack to emulator to emulat spx device for local X connections.
This is truly a hack.  The idea is taken from the Linux ibcs2 emulator.

To use this feature, you must use the option,
	options		SPX_HACK
in your config.

Also, in /compat/ibcs2/dev, you must do:

lrwxr-xr-x  1 root  wheel         9 Oct 15 22:20 X0R@ -> /dev/null
lrwxr-xr-x  1 root  wheel         7 Oct 15 22:20 nfsd@ -> socksys
lrwxr-xr-x  1 root  wheel         9 Oct 15 22:20 socksys@ -> /dev/null
crw-rw-rw-  1 root  wheel   41,   1 Oct 15 22:14 spx

Do NOT use old socksys driver as that has been removed.
This hack needs /compat/ibcs2/dev/spx to be any device that does NOT
exist/configured (so the now non-existant spx major/minor works fine).
When an open() is called, the error ENXIO is checked and then the
path is checked.  If spx open detected, then a unix socket is opened
to the hardcoded path "/tmp/.X11-unix/X0".

As the Linux hacker author mentioned, the real way would be to detect
the getmsg/putmsg through /dev/X0R and /dev/spx.  Until this true
solution is implemented (if ever), I think this hack is important
enough to be put into the tree, even though I don't like it dirtying
up my clean code (which is what #ifdef SPX_HACK is for).
1995-10-16 05:52:55 +00:00
..
alpha
amd64 Go back to separate tests for configuration mechanism 1 and mechanism 2. 1995-10-15 23:43:08 +00:00
compat/linux Fix the getdirentries of ibcs2 to handle uneven DIRBLKSIZ offsets. 1995-10-10 23:13:27 +00:00
compile
conf An even better idea: The default will be that on _${KMOD} (_nfs_mod...) will 1995-10-15 16:56:56 +00:00
ddb
dev Don't allow i/o operations for non-root users. 1995-10-14 07:08:09 +00:00
fs
gnu Fix select(). 1995-10-12 23:28:41 +00:00
i386 Add a hack to emulator to emulat spx device for local X connections. 1995-10-16 05:52:55 +00:00
isa Don't allow i/o operations for non-root users. 1995-10-14 07:08:09 +00:00
isofs/cd9660
kern Improve clock accuracy by accounting for late/missed clock interrupts 1995-10-12 20:35:01 +00:00
libkern
miscfs
modules Revert to default entry point. 1995-10-15 17:00:49 +00:00
msdosfs
net Say goodbye to IFF_NOTRAILERS. Support for trailers was officially 1995-10-13 19:48:06 +00:00
netccitt
netinet Routes can be asymmetric. Always offer to /accept/ an MSS of up to the 1995-10-13 16:00:25 +00:00
netiso
netns
nfs
nfsclient
nfsserver
pc98/pc98 Latest fixes from Serge: 1995-10-14 15:41:10 +00:00
pccard Make LKM entry consisten with tradition: pcic_mod(). 1995-10-15 16:59:36 +00:00
pci Say goodbye to IFF_NOTRAILERS. Support for trailers was officially 1995-10-13 19:48:06 +00:00
powerpc/include
rpc
scsi oops currupted a line by hitting the wrong key.. 1995-10-12 02:05:47 +00:00
sys
tools
ufs
vm Remove an unnecessary tsleep in the swapin code. This tsleep 1995-10-16 05:45:49 +00:00
Makefile