Systemd/src
Filipe Brandenburger b4c14404b3 execute: Add new PassEnvironment= directive
This directive allows passing environment variables from the system
manager to spawned services. Variables in the system manager can be set
inside a container by passing `--set-env=...` options to systemd-spawn.

Tested with an on-disk test.service unit. Tested using multiple variable
names on a single line, with an empty setting to clear the current list
of variables, with non-existing variables.

Tested using `systemd-run -p PassEnvironment=VARNAME` to confirm it
works with transient units.

Confirmed that `systemctl show` will display the PassEnvironment
settings.

Checked that man pages are generated correctly.

No regressions in `make check`.
2015-11-11 07:55:23 -08:00
..
ac-power treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
activate util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
analyze util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
ask-password strv: Add _cleanup_strv_free_erase_ and _cleanup_string_free_erase_ 2015-10-19 23:13:07 +02:00
backlight proc-cmdline: return proper errors from shall_restore_state() 2015-11-02 23:44:05 +01:00
basic execute: Add new PassEnvironment= directive 2015-11-11 07:55:23 -08:00
binfmt defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
boot util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
bootchart defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
bus-proxyd util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
cgls cgls: when showing root slice, put -.slice at top of tree 2015-11-10 17:31:31 +01:00
cgroups-agent util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
cgtop util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
compat-libs #pragma once here and there 2015-01-23 09:30:44 -05:00
core execute: Add new PassEnvironment= directive 2015-11-11 07:55:23 -08:00
cryptsetup util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
dbus1-generator treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
debug-generator debug-generator: respect kernel parameters for default unit setting 2015-11-03 14:47:39 +03:00
delta treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
detect-virt detect-virt: add new --chroot switch to detect chroot() environments 2015-10-27 13:25:57 +01:00
escape util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
firstboot treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
fsck util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
fstab-generator util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
getty-generator util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
gpt-auto-generator treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
hibernate-resume util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
hostname util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
hwdb util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
import import: report error before losing errno 2015-11-05 13:44:09 +01:00
initctl treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
journal journalctl: make --rotate synchronous, too 2015-11-11 14:29:10 +01:00
journal-remote defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
kernel-install 90-loaderentry.install: fixup BOOT_OPTIONS 2015-06-02 16:10:06 +02:00
libsystemd sd-netlink: add support for RTA_PREF 2015-11-11 15:42:38 +01:00
libsystemd-network networkd: ndisc - handle router advertisement in userspace 2015-11-11 15:42:38 +01:00
libudev treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
locale util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
login defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
machine Merge pull request #1820 from michich/errno-v2 2015-11-09 21:56:49 +01:00
machine-id-setup path-util: unify how we process paths specified on the command line 2015-10-24 23:03:49 +02:00
modules-load defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
network networkd: improve logging 2015-11-11 15:42:38 +01:00
notify util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
nspawn Merge pull request #1820 from michich/errno-v2 2015-11-09 21:56:49 +01:00
nss-myhostname util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
nss-mymachines util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
nss-resolve util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
path util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
quotacheck util-lib: move /proc/cmdline parsing code to proc-cmdline.[ch] 2015-10-27 13:25:57 +01:00
random-seed util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
rc-local-generator treewide: apply errno.cocci 2015-11-09 20:01:06 +01:00
remount-fs util-lib: move mount related utility calls to mount-util.[ch] 2015-10-27 13:25:55 +01:00
reply-password util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
resolve defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
resolve-host parse-util: introduce parse_ifindex() and make use of it everywhere 2015-11-03 00:02:00 +01:00
rfkill proc-cmdline: return proper errors from shall_restore_state() 2015-11-02 23:44:05 +01:00
run util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
shared execute: Add new PassEnvironment= directive 2015-11-11 07:55:23 -08:00
sleep util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
socket-proxy util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
sysctl defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
system-update-generator util-lib: move a number of fs operations into fs-util.[ch] 2015-10-27 13:25:56 +01:00
systemctl systemctl: make sure list-jobs doesn't return failure on success 2015-11-11 14:35:44 +01:00
systemd sd-ndisc: introduce separate callbacks 2015-11-11 15:42:38 +01:00
sysusers defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
sysv-generator sysv-generator: remove duplicate const 2015-11-02 23:18:20 +01:00
test test-parse-util: cover negative numbers, leading spaces, and more range errors 2015-11-11 10:09:18 +01:00
timedate util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
timesync defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
tmpfiles tmpfiles: don't consider it a problem if quota is not enabled on btrfs 2015-11-10 21:41:22 +01:00
tty-ask-password-agent tty-ask-password-agent: fix typo in error message 2015-11-05 13:44:01 +01:00
udev Merge pull request #1820 from michich/errno-v2 2015-11-09 21:56:49 +01:00
update-done util-lib: split out IO related calls to io-util.[ch] 2015-10-26 01:24:38 +01:00
update-utmp util-lib: split out allocation calls into alloc-util.[ch] 2015-10-27 13:45:53 +01:00
user-sessions util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
vconsole treewide: use the negative error codes returned by our functions 2015-11-05 13:44:06 +01:00
.gitignore
Makefile