| Age | Commit message (Collapse) | Author |
|
|
|
recent x86 CPU (thanks to SMAP) and all architectures that forbid direct
access to userland from the kernel. But I guess no one noticed because no
one ever uses compat_linux, right?
|
|
|
|
|
|
|
|
included in the "type" parameter. in linux_sys_sendmsg(),
if we see an SCM_CREDENTIALS control message, just drop it
instead of giving an error. the linux and native versions of
the cred-passing operation are very different and some apps
(eg. linux pulseaudio library talking to a native server)
will work without the control data.
|
|
Fixes part of PR/31358
The other parts are rather too intrusive to be fixed as in the PR.
|
|
Do the needed conversions in sendmsg/recvmsg syscalls, and adjust
their definitions accordingly.
|
|
msg_controllen size, when converting the control message buffer from
native (previous version was missing the linux_cmsghdr size).
|
|
|
|
cmsg->cmsg_len is 'size_t' not 'socklen_t' - so it is 8 bytes on 64bit
platforms instead of 4. There is also never padding after the header.
Redo linux sendmsg() so that it stands a chance of getting it right.
Redo linux recvmsg() so that it process control data directly from the mbuf
list. Allowing it to hack the data without using the stackgap.
|
|
|
|
|
|
Process startup and dynamiclinking work, but processes hang due to
Linux arch_prctl(2) not being really supported yet.
|
|
* translate MSG_* flags
* rewrite CMSG level/type to appropriate NetBSD value on input, and to Linux
value on output
* handle different CMSG_DATA alignment for some archs
This fixes SCM_RIGHTS passing. Other SCM_* types are not supported -
the set is different on NetBSD and Linux. SCM_TIMESTAMP doesn't seem
to be actually implemented in Linux 2.5.15, so it's not supported
for Linux binaries either (for now).
PR: 21577 by Todd Vierling
|
|
"/emul/linux/bin/echo hello, world", dynamically linked.
|
|
|
|
|
|
|
|
Regen syscall files after script change.
|
|
|
|
|
|
|
|
|
|
|