History log of /netbsd/lib/librumphijack/hijack.c (Results 1 – 25 of 137)
Revision Date Author Comments
# 47cc1f20 28-Jul-2023 christos <christos@NetBSD.org>

Add epoll(2) from Theodore Preduta as part of GSoC 2023


# 5079dd15 16-Apr-2022 andvar <andvar@NetBSD.org>

fix various typos in comments and log messages.


# c623956a 11-Sep-2021 christos <christos@NetBSD.org>

remove fake closefrom()


# befd8cb2 11-Sep-2021 rillig <rillig@NetBSD.org>

librumphijack: fix typo for NetBSD < 5.99.7


# c724bb80 10-Sep-2021 christos <christos@NetBSD.org>

Ignore closefrom(3) for now; too complicated to descern between regular
and rump fds.


# 553df7dc 10-Sep-2021 christos <christos@NetBSD.org>

- implement pselect so that the ssh test has a chance to work
- 1 -> EXIT_FAILURE
- more info about fds


# 18c1cdf3 27-May-2020 christos <christos@NetBSD.org>

Add pathconf and lpathconf (fixes lib/librumphijack/nfs test which uses ls
which now uses lpathconf)


# 46db5b0d 10-Feb-2020 kamil <kamil@NetBSD.org>

Change types of DUP2ALIAS and DUP2FDMASK bit masks to unsigned

This is for consistency with the DUP2BIT change.


# 16e58311 10-Feb-2020 kamil <kamil@NetBSD.org>

Avoid unportable bit shift semantics

hijack.c:451:52, left shift of 1 by 31 places cannot be represented in type 'int


# b17d787a 25-Sep-2019 christos <christos@NetBSD.org>

teach hijack about the new vfs syscalls


# f44ae016 17-Feb-2019 bad <bad@NetBSD.org>

Linux doesn't have paccept().


# 15e4f6e5 16-Dec-2018 hannken <hannken@NetBSD.org>

Add an option "modctl" to capture modctl().


# 4622068d 28-Jun-2018 ozaki-r <ozaki-r@NetBSD.org>

rumphijack: don't modify a cmsg on just validating it

Pointed out by k-goda@IIJ


# 8fb00fa4 23-Oct-2017 ozaki-r <ozaki-r@NetBSD.org>

Provide better debug messages for ioctl


# 89127102 06-Jun-2017 christos <christos@NetBSD.org>

since ln(1) now uses linkat(2) provide a dumb wrapper.


# 5364d730 16-Feb-2017 ozaki-r <ozaki-r@NetBSD.org>

Support paccept for nc


# 078586e3 02-Dec-2016 christos <christos@NetBSD.org>

fix test lib/librumphijack/t_sh/runscript
(handle F_DUPFD_CLOEXEC that the shell is now using)


# 71a44551 11-Aug-2016 kre <kre@NetBSD.org>

Object to dup2() if target fd is in the range of fd's that
librumphijack reserves for rump to use.

This is not normally a problem, as most applications don't attempt
to use very high fds - but /bin/

Object to dup2() if target fd is in the range of fd's that
librumphijack reserves for rump to use.

This is not normally a problem, as most applications don't attempt
to use very high fds - but /bin/sh does.

This fix is something of a kludge - really the apparent fd resource limit
ought to be lowered as well, but this is sufficient to allow the shell
to work (when its dup2() gets rejected, it just tries again with a smaller
target fd until it eventually succeeds.) This fixes the librumphijack
shell ATF tests.

A better, more comprehensive, fix would be good...

show more ...


# 53a7376f 25-Aug-2015 pooka <pooka@NetBSD.org>

Remember that dlsym() tends to fail on PowerPC during init (or at least
tended), so call rumphijack_dlsym() instead to be safe.


# f7b3a29b 25-Aug-2015 pooka <pooka@NetBSD.org>

allow mmap() to be called before init runs


# 190deff2 11-Apr-2015 riastradh <riastradh@NetBSD.org>

Define the expansion of the VFORK macro, not the symbol `VFORK'.

Fixes hijacking processes that vfork and exec. Symptom was the child
would spin with read/EAGAIN <-> kevent/EBADF because the inheri

Define the expansion of the VFORK macro, not the symbol `VFORK'.

Fixes hijacking processes that vfork and exec. Symptom was the child
would spin with read/EAGAIN <-> kevent/EBADF because the inheritance
mechanism relied on setting the holyfd to -1 on fork...which didn't
happen if we didn't hijack vfork.

ok pooka@

show more ...


# cd67352c 05-Mar-2015 pooka <pooka@NetBSD.org>

Wrap utimensat() only if present on host

fixes buildrump.sh on NetBSD 6.1.5


# 7d2307d9 04-Mar-2015 pooka <pooka@NetBSD.org>

Make ATCALL() behave for absolute paths too.


# d3343fc1 04-Mar-2015 pooka <pooka@NetBSD.org>

Define a generic ATCALL() and use it to implement utimensat()


# c34d6399 03-Mar-2015 enami <enami@NetBSD.org>

Also hijack futimens(2) so that t_sh test passes.


123456