opnsense-src/sys/kern
Doug Rabson 461210143f imgact_binmisc: Optionally pre-open the interpreter vnode
This allows the use of chroot and/or jail environments which depend on
interpreters registed with imgact_binmisc to use emulator binaries from
the host to emulate programs inside the chroot.

Reviewed by:	imp
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D37432

(cherry picked from commit 5eeb4f737f)
2022-12-22 16:28:42 +00:00
..
bus_if.m bus_if: provide a default null rescan method 2022-08-11 11:18:21 -03:00
capabilities.conf Add sched_getcpu() 2022-01-14 18:17:29 +02:00
clock_if.m
cpufreq_if.m
device_if.m
firmw.S Use a template assembly file for firmware object files. 2020-12-17 20:31:17 +00:00
genassym.sh genassym.sh: Fix two minor issues found by shellcheck 2021-09-12 09:56:14 -06:00
genoffset.c
genoffset.sh genoffset.sh: Use 10 X's instead of 5 for pick mkdtemp implementations 2021-09-22 08:29:59 -06:00
imgact_aout.c Retire sv_transtrap 2022-06-17 22:35:27 +03:00
imgact_binmisc.c imgact_binmisc: Optionally pre-open the interpreter vnode 2022-12-22 16:28:42 +00:00
imgact_elf.c Add AT_USRSTACK{BASE, LIM} AT vectors, and ELF_BSDF_VMNOOVERCOMMIT flag 2022-09-30 03:29:09 +03:00
imgact_elf32.c
imgact_elf64.c
imgact_shell.c
init_main.c Retire sv_transtrap 2022-06-17 22:35:27 +03:00
init_sysent.c sysent: regen after ee9bc58183, posix_fadvise in capmode 2022-10-20 09:59:50 -04:00
kern_acct.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
kern_alq.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
kern_clock.c time(3): Fix spelling. 2022-11-12 12:59:57 +01:00
kern_clocksource.c eventtimer: Fix several races in the timer reload code 2022-07-25 09:45:51 -04:00
kern_condvar.c Use sleepq_signal(SLEEPQ_DROP) in cv_signal(). 2021-07-17 18:10:25 -04:00
kern_conf.c Drop d_dump from struct cdevsw 2022-05-27 13:22:22 -03:00
kern_cons.c Adjust function definitions in kern_cons.c to avoid clang 15 warnings 2022-07-29 20:30:00 +02:00
kern_context.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
kern_cpu.c Make CPU children explicitly share parent unit numbers. 2022-01-04 12:21:42 -05:00
kern_cpuset.c powerpc: cpuset: add local functions for copyin/copyout 2022-10-05 21:14:19 -03:00
kern_ctf.c linker: Permit CTFv3 containers 2022-04-06 20:30:44 -04:00
kern_descrip.c file: Move code to share fdtol structs into kern_descrip.c 2022-08-11 10:36:11 -04:00
kern_dtrace.c Adjust function definitions in kern_dtrace.c to avoid clang 15 warnings 2022-07-29 20:28:08 +02:00
kern_dump.c kerneldump: remove physical from dump routines 2022-06-27 16:32:06 -03:00
kern_environment.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
kern_et.c Remove NO_EVENTTIMERS support 2020-11-19 02:50:48 +00:00
kern_event.c struct kinfo_file changes needed for lsof to work using only usermode APIs` 2022-06-24 22:37:33 +03:00
kern_exec.c imgact_binmisc: Optionally pre-open the interpreter vnode 2022-12-22 16:28:42 +00:00
kern_exit.c Remove struct proc p_singlethr member 2022-09-03 04:17:36 +03:00
kern_fail.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
kern_ffclock.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
kern_fork.c Remove struct proc p_singlethr member 2022-09-03 04:17:36 +03:00
kern_hhook.c
kern_idle.c
kern_intr.c kern_intr: Check for NULL event in intr_destroy() 2022-10-24 12:53:11 -03:00
kern_jail.c Import the WireGuard driver from zx2c4.com. 2022-11-11 13:44:11 -08:00
kern_kcov.c kcov: use __func__ in KASSERT instead of old function name 2022-05-03 14:20:44 -04:00
kern_khelp.c
kern_kthread.c umtx: Split umtx.h on two counterparts. 2022-06-17 22:33:15 +03:00
kern_ktr.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
kern_ktrace.c ktrace: Zero request structures when populating the pool 2021-07-29 20:32:59 -04:00
kern_linker.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
kern_lock.c lockmgr: fix lock profiling of face adaptive spinning 2021-10-11 09:09:55 +00:00
kern_lockf.c KERN_LOCKF: report kl_file_fsid consistently with stat(2) 2022-06-24 22:37:33 +03:00
kern_lockstat.c
kern_loginclass.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
kern_malloc.c realloc: Fix KASAN(9) shadow map updates 2021-11-01 10:05:22 -04:00
kern_mbuf.c debugnet: Fix parameter order in the calls to m_get() 2022-09-28 07:52:52 -04:00
kern_mib.c jail: Consistently handle the pr_allow bitmask 2020-12-26 20:25:02 -08:00
kern_module.c modules: increase MAXMODNAME and provide backward compat 2021-12-30 18:26:18 +00:00
kern_mtxpool.c
kern_mutex.c Fix lockstat:::thread-spin dtrace probe with LOCK_PROFILING 2022-03-02 15:56:30 -06:00
kern_ntptime.c Add kern_ntp_adjtime(9). 2020-12-04 18:56:44 +00:00
kern_osd.c osd: Fix racy assertions 2021-09-16 08:37:15 -04:00
kern_physio.c Remove alignment requirements for KVA buffer mapping. 2020-11-29 01:30:17 +00:00
kern_pmc.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
kern_poll.c Adjust function definition in kern_poll.c to avoid clang 15 warning 2022-08-21 13:10:51 +02:00
kern_priv.c jail: Consistently handle the pr_allow bitmask 2020-12-26 20:25:02 -08:00
kern_proc.c Make stop_all_proc_block interruptible to avoid deadlock with parallel suspension 2022-06-24 17:45:46 +03:00
kern_procctl.c Remove struct proc p_singlethr member 2022-09-03 04:17:36 +03:00
kern_prot.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
kern_racct.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
kern_rangelock.c
kern_rctl.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
kern_resource.c Adjust function definitions in kern_resource.c to avoid clang 15 warnings 2022-07-29 20:29:08 +02:00
kern_rmlock.c rmlock: Add required compiler barriers to _rm_runlock() 2022-03-14 10:45:06 -04:00
kern_rwlock.c lockprof: pass lock type as an argument instead of reading the spin flag 2021-06-02 15:00:23 +00:00
kern_sdt.c
kern_sema.c
kern_sendfile.c kern: Remove CTLFLAG_NEEDGIANT from some sysctls. 2022-01-08 20:24:10 -05:00
kern_sharedpage.c Fix assert check for SV_DSO_SIG in exec_sysvec_init_secondary() 2022-01-02 18:43:01 +02:00
kern_shutdown.c kerneldump: remove physical from dump routines 2022-06-27 16:32:06 -03:00
kern_sig.c kern_sig.c: style 2022-09-03 04:17:35 +03:00
kern_switch.c kern: Remove CTLFLAG_NEEDGIANT from some more sysctls. 2022-01-09 19:30:09 -05:00
kern_sx.c lockprof: pass lock type as an argument instead of reading the spin flag 2021-06-02 15:00:23 +00:00
kern_synch.c Correctly measure system load averages > 1024 2022-05-23 13:11:23 -06:00
kern_syscalls.c Move syscall_thread_{enter,exit}() into the slow path. This is only 2020-11-08 15:54:59 +00:00
kern_sysctl.c sysctl(3): Implement SYSCTL_FOREACH() to iterate all OIDs in a sysctl list. 2022-10-04 16:40:53 +02:00
kern_tc.c timecounter: Load the currently selected tc once in tc_windup() 2022-07-19 09:59:14 -04:00
kern_thr.c thread_create(): call cpu_copy_thread() after td_pflags is zeroed 2022-08-10 03:44:03 +03:00
kern_thread.c Remove TDF_DOING_SA 2022-09-03 04:17:36 +03:00
kern_time.c time: Make realitexpire() local to kern_time.c 2022-07-20 09:53:31 -04:00
kern_timeout.c callout: Simplify the inner loop in callout_process() a bit 2022-07-25 09:45:37 -04:00
kern_tslog.c tslog: Add CTLFLAG_SKIP to sysctls 2022-04-04 12:11:30 -07:00
kern_ubsan.c ubsan: Fix a typo in an error message 2021-10-02 10:21:01 +02:00
kern_umtx.c time(3): Align fast clock times to avoid firing multiple timers. 2022-11-12 12:59:32 +01:00
kern_uuid.c validate_uuid: absorb the rest of parse_uuid with a flags arg 2020-04-15 18:39:12 +00:00
kern_vnodedumper.c kerneldump: remove physical argument from d_dumper 2022-06-27 16:32:06 -03:00
kern_xxx.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
ksched.c ksched: correct return code for invalid priority 2022-10-24 12:53:11 -03:00
link_elf.c Kernel linkers: add emergency sysctl to restore old behavior 2021-12-15 03:41:29 +02:00
link_elf_obj.c Kernel linkers: add emergency sysctl to restore old behavior 2021-12-15 03:41:29 +02:00
linker_if.m kernel linker: do not read debug symbol tables for non-debug symbols 2021-12-15 03:41:29 +02:00
Make.tags.inc Bring the tags and links entries for amd64 up to date. 2021-10-07 16:01:46 -07:00
Makefile
md4c.c
md5c.c
msi_if.m Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2022-02-08 15:00:55 -05:00
p1003_1b.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
pic_if.m
posix4_mib.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
sched_4bsd.c sched_4bsd: Fix a racy thread state modification 2022-10-01 11:35:32 -04:00
sched_ule.c ule: unbreak UP builds 2022-08-02 16:27:24 -04:00
serdev_if.m
stack_protector.c
subr_acl_nfs4.c Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
subr_acl_posix1e.c vfs: remove the obsolete privused argument from vaccess 2020-08-05 09:27:03 +00:00
subr_asan.c atomic: Intercept atomic_(load|store)_bool for kernel sanitizers 2022-11-14 14:24:47 -05:00
subr_atomic64.c
subr_autoconf.c Adjust function definition in subr_autoconf.c to avoid clang 15 warnings 2022-07-29 20:29:09 +02:00
subr_blist.c blist: Correct the node count computed in blist_create() 2021-07-26 21:47:20 -04:00
subr_boot.c
subr_bufring.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
subr_bus.c bus_if: provide a default null rescan method 2022-08-11 11:18:21 -03:00
subr_bus_dma.c crypto: Add a new type of crypto buffer for a single mbuf. 2021-10-21 08:51:26 -07:00
subr_busdma_bufalloc.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
subr_capability.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2022-02-08 15:00:55 -05:00
subr_clock.c
subr_clockcalib.c clockcalib: Fix an overflow bug 2022-05-05 12:08:54 -04:00
subr_compressor.c Fix gzip compressed core dumps on big endian architectures 2022-02-14 13:30:52 -06:00
subr_counter.c Rationalize per-cpu zones. 2020-11-05 15:08:56 +00:00
subr_coverage.c Generalize bus_space(9) and atomic(9) sanitizer interceptors 2021-11-01 10:16:39 -04:00
subr_csan.c atomic: Intercept atomic_(load|store)_bool for kernel sanitizers 2022-11-14 14:24:47 -05:00
subr_devmap.c Adjust function definition in subr_devmap.c to avoid clang 15 warning 2022-08-22 10:11:29 +01:00
subr_devstat.c devstat: Remove DTrace io probes lacking a BIO reference 2022-09-21 16:09:25 -04:00
subr_disk.c Enable bioq 'car limit' added at r335066 at 128 bios. 2020-10-26 04:04:06 +00:00
subr_dummy_vdso_tc.c
subr_early.c
subr_epoch.c The old thread priority must be stored as part of the EPOCH(9) tracker. 2021-06-02 14:03:21 +02:00
subr_eventhandler.c
subr_fattime.c
subr_filter.c kern: Fix two typos in source code comments 2022-04-09 08:11:47 +02:00
subr_firmware.c subr_firmware.c::unloadentry(): remove write-only variable 2021-10-27 03:24:40 +03:00
subr_gtaskqueue.c Make sure all tasklets are drained before unloading the LinuxKPI. 2021-06-02 13:23:19 +02:00
subr_hash.c
subr_hints.c Optimize res_find(). 2021-08-22 21:15:47 -04:00
subr_intr.c intrng: Use less confusing return value for intr_pic_add_handler 2022-01-24 23:59:55 +00:00
subr_kdb.c Restore variable aliasing in the context of cpu set operations 2022-01-14 18:17:31 +02:00
subr_kobj.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
subr_lock.c lockprof: move panic check after inspecting the state 2021-06-02 15:00:23 +00:00
subr_log.c Document kern.log_wakeups_per_second. 2021-10-19 16:53:26 -07:00
subr_mchain.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
subr_module.c sysctl debug.dump_modinfo should recognize font module 2021-01-08 09:24:49 +02:00
subr_msgbuf.c Make msgbuf_peekbytes() not return leading zeroes. 2021-12-17 20:36:23 -05:00
subr_param.c time(3): Optimize tvtohz() function. 2022-11-12 12:59:47 +01:00
subr_pcpu.c Add more per-cpu zones. 2020-11-09 00:34:23 +00:00
subr_pctrie.c Use SMR to provide safe unlocked lookup for pctries from SMR zones 2020-07-24 17:32:10 +00:00
subr_physmem.c Handle non-page aligned/sized memory in physmem 2022-05-03 15:04:04 +01:00
subr_pidctrl.c
subr_power.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
subr_prf.c Unify console output. 2021-10-03 21:15:03 -04:00
subr_prng.c Add prng(9) API 2020-08-13 20:48:14 +00:00
subr_prof.c
subr_rangeset.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2022-02-08 15:00:55 -05:00
subr_rman.c rman: fix overflow in rman_reserve_resource_bound() 2021-10-04 11:11:06 -03:00
subr_rtc.c Address whitespace nits in subr_rtc.c 2020-09-28 17:19:57 +00:00
subr_sbuf.c sbuf(9): Microoptimize sbuf_put_byte() 2021-10-21 18:24:29 -04:00
subr_scanf.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
subr_sfbuf.c
subr_sglist.c sglist: Add sglist_append_single_mbuf(). 2021-10-21 08:51:26 -07:00
subr_sleepqueue.c sleepq_set_timeout_sbt(): correct comment to not talk about ticks 2022-08-22 16:37:10 +03:00
subr_smp.c smp: Use local copies of the setup function pointer and argument 2022-06-13 08:43:06 -04:00
subr_smr.c
subr_stack.c kern.tty_info_kstacks: add a compact format 2020-07-06 16:33:28 +00:00
subr_stats.c rb_tree: reduce duplication in balancing code 2022-10-01 12:53:06 -05:00
subr_syscall.c linux: Add additional ptracestop only if the debugger is Linux 2022-02-21 14:31:22 +00:00
subr_taskqueue.c LinuxKPI: Implement kthread_worker related functions 2022-06-02 00:50:14 +03:00
subr_terminal.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2022-02-08 15:00:55 -05:00
subr_trap.c kqueue: drain kqueue taskqueue if syscall tickled it 2021-09-12 15:17:27 +03:00
subr_turnstile.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
subr_uio.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
subr_unit.c subr_unit.c: make userspace tests buildable 2022-05-05 01:33:05 +03:00
subr_vmem.c vmem: Revert r364744 2020-12-01 16:06:31 +00:00
subr_witness.c Remove more remnants of sio(4) 2021-04-14 09:19:49 -04:00
sys_capability.c Enter a write sequence when updating rights. 2020-03-19 15:39:45 +00:00
sys_eventfd.c struct kinfo_file changes needed for lsof to work using only usermode APIs` 2022-06-24 22:37:33 +03:00
sys_generic.c Add timespecvalid_interval macro and use it. 2022-06-17 22:33:53 +03:00
sys_getrandom.c
sys_pipe.c pipe: Use a distinct wait channel for I/O serialization 2022-07-14 09:50:10 -04:00
sys_procdesc.c procdesc: convert the zone to a malloc type 2020-11-09 00:05:21 +00:00
sys_process.c Trim duplicate code for copying in iovecs for PT_[GS]ETREGSET. 2022-05-12 15:12:59 -07:00
sys_socket.c struct kinfo_file changes needed for lsof to work using only usermode APIs` 2022-06-24 22:37:33 +03:00
syscalls.c Regen 2022-01-14 18:17:30 +02:00
syscalls.master Allow posix_fadvise in capability mode 2022-10-20 09:59:35 -04:00
systrace_args.c Regen 2022-01-14 18:17:30 +02:00
sysv_ipc.c
sysv_msg.c Adjust function definitions in sysv_msg.c to avoid clang 15 warnings 2022-07-29 20:29:09 +02:00
sysv_sem.c sysvsem: Fix a typo 2022-06-17 22:35:17 +03:00
sysv_shm.c Make SHMMAXPGS an unsigned long 2022-04-04 10:37:07 +01:00
tty.c Re-implement virtual console (constty). 2021-10-03 21:15:02 -04:00
tty_compat.c
tty_info.c Correctly measure system load averages > 1024 2022-05-23 13:11:23 -06:00
tty_inq.c tty: Remove an incorrect assertion from ttyinq_line_iterate() 2022-04-18 12:19:57 -04:00
tty_outq.c
tty_pts.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
tty_tty.c
tty_ttydisc.c Implement FLUSHO 2020-08-27 05:11:15 +00:00
uipc_accf.c Consistently use the SOLISTENING() macro 2021-06-21 09:14:40 -04:00
uipc_debug.c
uipc_domain.c domain: Use designated constants for timeout periods 2022-08-11 10:36:11 -04:00
uipc_ktls.c ktls: Zero out TLS_GET_RECORD control messages 2022-07-19 09:53:41 -04:00
uipc_mbuf.c mbuf(9): Assert receive mbufs don't carry a send tag. 2022-02-10 16:11:22 +01:00
uipc_mbuf2.c
uipc_mbufhash.c Implement mbuf hashing routines for IP over infiniband, IPoIB. 2020-10-22 09:17:56 +00:00
uipc_mqueue.c MFC jail: Change the locking around pr_ref and pr_uref 2021-03-12 10:30:06 -08:00
uipc_sem.c Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
uipc_shm.c MFC jail: Remove a prison's shared memory when it dies 2022-07-03 12:25:43 -07:00
uipc_sockbuf.c mbuf(9): Assert receive mbufs don't carry a send tag. 2022-02-10 16:11:22 +01:00
uipc_socket.c sockets: fix setsockopt(SO_RCVTIMEO) on a listening socket 2022-08-03 16:28:38 -07:00
uipc_syscalls.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
uipc_usrreq.c unix: Increase the default datagram recv buffer size 2021-12-31 09:25:54 -05:00
vfs_acl.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
vfs_aio.c aio: Improve UMA usage 2022-07-20 09:53:48 -04:00
vfs_bio.c Adjust function definition in vfs_bio.c to avoid clang 15 warnings 2022-07-29 20:29:09 +02:00
vfs_cache.c kern: Fix two typos in source code comments 2022-04-09 08:19:14 +02:00
vfs_cluster.c cluster_write(): do not access buffer after it is released 2021-09-09 04:21:44 +03:00
vfs_default.c vfs: Add "ioflag" and "cred" arguments to VOP_ALLOCATE 2021-12-18 14:30:25 -08:00
vfs_export.c kern: clean up empty lines in .c and .h files 2020-09-01 22:12:32 +00:00
vfs_extattr.c O_PATH: allow vfs_extattr syscalls 2021-10-16 16:01:47 +03:00
vfs_hash.c vfs_hash_rehash(): require the vnode to be exclusively locked 2021-09-03 04:08:36 +03:00
vfs_init.c Add sysctl KERN_LOCKF 2022-04-16 05:18:18 +03:00
vfs_lookup.c kern: Fix two typos in source code comments 2022-04-09 08:19:14 +02:00
vfs_mount.c vfs_mount.c: convert explicit panics and KASSERTs to MPASSERT/MPPASS 2022-07-06 15:33:30 +03:00
vfs_mountroot.c sysent: Get rid of bogus sys/sysent.h include. 2022-06-17 22:35:31 +03:00
vfs_subr.c getdirentries: return ENOENT for unlinked but still open directory. 2022-06-17 22:33:51 +03:00
vfs_syscalls.c vfs: Consistently validate AT_* flags in kern_* functions. 2022-06-17 22:35:42 +03:00
vfs_vnops.c vfs_vnops.c: Fix blksize for ZFS 2022-12-02 13:04:46 -08:00
vnode_if.src vnode(9): Fix a typo in a source code comment 2022-08-10 10:51:52 +02:00