freebsd-dev/sys
Brooks Davis f373437a01 Add helper functions to copy strings into struct image_args.
Given a zeroed struct image_args with an allocated buf member,
exec_args_add_fname() must be called to install a file name (or NULL).
Then zero or more calls to exec_args_add_env() followed by zero or
more calls to exec_args_add_env(). exec_args_adjust_args() may be
called after args and/or env to allow an interpreter to be prepended to
the argument list.

To allow code reuse when adding arg and env variables, begin_envv
should be accessed with the accessor exec_args_get_begin_envv()
which handles the case when no environment entries have been added.

Use these functions to simplify exec_copyin_args() and
freebsd32_exec_copyin_args().

Reviewed by:	kib
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D15468
2018-11-29 21:00:56 +00:00
..
amd64 Fix assert condition in pmap_large_unmap(). 2018-11-27 21:40:51 +00:00
arm Prevent kernel stack disclosure in signal delivery 2018-11-26 20:52:53 +00:00
arm64 arm64: rockchip: armclk: Do not change parent freq if CLK_SET_DRYRUN is set 2018-11-29 19:11:35 +00:00
bsm
cam NVME trim clocking 2018-11-27 00:36:35 +00:00
cddl Ensure that directory entry padding bytes are zeroed. 2018-11-23 22:24:59 +00:00
compat Add helper functions to copy strings into struct image_args. 2018-11-29 21:00:56 +00:00
conf sfxge(4): add firmware image layout option 2018-11-29 06:29:24 +00:00
contrib Import CK as of 21d3e319407d19dece16ee317c757ffc54a452bc, which makes its 2018-11-27 12:35:51 +00:00
crypto
ddb
dev extres: clk: Fix clk_set_assigned 2018-11-29 19:06:05 +00:00
dts Fix test-dts{,o} targets 2018-11-12 22:18:11 +00:00
fs Ensure the dirent remains initialized when dirent.d_fileno is unset. 2018-11-23 23:07:49 +00:00
gdb
geom Add a “skip_dsn” option to g_part's bootcode verb to prevent g_part_mbr 2018-11-27 14:58:19 +00:00
gnu Update our devicetree to 4.19 for arm and arm64 2018-11-10 21:02:32 +00:00
i386 Remove superfluous bzero in getcontext/swapcontext/sendsig 2018-11-26 20:56:05 +00:00
isa
kern Add helper functions to copy strings into struct image_args. 2018-11-29 21:00:56 +00:00
kgssapi
libkern
mips Add CAPABILITIES to the ERL kernel config so that tools that have been 2018-11-28 13:25:10 +00:00
modules sfxge(4): add firmware image layout option 2018-11-29 06:29:24 +00:00
net Use busdma unconditionally in iflib 2018-11-27 20:01:05 +00:00
net80211
netgraph ng_source(4): correction after the change r340617 2018-11-27 04:05:38 +00:00
netinet Plug some networking sysctl leaks. 2018-11-22 20:49:41 +00:00
netinet6 Plug some networking sysctl leaks. 2018-11-22 20:49:41 +00:00
netipsec
netpfil Do not limit the mbuf queue length for keepalive packets. 2018-11-27 16:51:01 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Plug some networking sysctl leaks. 2018-11-22 20:49:41 +00:00
opencrypto
powerpc Fix thread creation in PowerPC64 ELFv2 processes. 2018-11-29 03:39:11 +00:00
riscv Prevent kernel stack disclosure in signal delivery 2018-11-26 20:52:53 +00:00
rpc
security audit: predict AUDITING_TD as false 2018-11-29 09:19:48 +00:00
sparc64 Given that the idea of D15374 was to "make memmove a first class citizen", 2018-11-20 00:08:33 +00:00
sys Add helper functions to copy strings into struct image_args. 2018-11-29 21:00:56 +00:00
teken
tests
tools Use ${ECHO} in dtb/dtbo build, pass in from dtb.mk for -s 2018-11-09 18:56:40 +00:00
ufs Move the check for the filesystem having been run on a kernel that 2018-11-26 00:58:07 +00:00
vm Update the free page count when blacklisting pages. 2018-11-29 16:31:01 +00:00
x86 Add definitions for Intel Speed Shift 2018-11-21 00:21:58 +00:00
xdr
xen
Makefile