Systemd/src
Zbigniew Jędrzejewski-Szmek db11487d10 manager: put bin before sbin for user instances
Traditionally, user logins had a $PATH in which /bin was before /sbin, while
root logins had a $PATH with /sbin first. This allows the tricks that
consolehelper is doing to work. But even if we ignore consolehelper, having the
path in this order might have been used by admins for other purposes, and
keeping the order in user sessions will make it easier the adoption of systemd
user sessions a bit easier.

Fixes #733.
https://bugzilla.redhat.com/show_bug.cgi?id=1744059

OOM handling in manager_default_environment wasn't really correct.
Now the (theorertical) malloc failure in strv_new() is handled.

Please note that this has no effect on:
- systems with merged /bin-/sbin (e.g. arch)

- when there are no binaries that differ between the two locations.

  E.g. on my F30 laptop there is exactly one program that is affected:
  /usr/bin/setup -> consolehelper.

  There is less and less stuff that relies on consolehelper, but there's still
  some.

So for "clean" systems this makes no difference, but helps with legacy setups.

$ dnf repoquery --releasever=31 --qf %{name} --whatrequires usermode
anaconda-live
audit-viewer
beesu
chkrootkit
driftnet
drobo-utils-gui
hddtemp
mate-system-log
mock
pure-ftpd
setuptool
subscription-manager
system-config-httpd
system-config-rootpassword
system-switch-java
system-switch-mail
usermode-gtk
vpnc-consoleuser
wifi-radar
xawtv
2019-08-27 18:24:44 +02:00
..
ac-power
activate activate: move array allocation to heap 2019-07-16 14:56:25 +02:00
analyze Fix typo in `analyze-security.c`. 2019-08-11 06:08:42 +09:00
ask-password
backlight
basic manager: put bin before sbin for user instances 2019-08-27 18:24:44 +02:00
binfmt tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
boot src/boot/efi/meson.build: if meson --werror is true, set gcc -Werror 2019-08-15 17:46:58 -04:00
busctl busctl: port "busctl list" to format_table.h 2019-07-29 18:48:45 +02:00
cgls tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
cgroups-agent
cgtop tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
core manager: put bin before sbin for user instances 2019-08-27 18:24:44 +02:00
coredump Merge pull request #13092 from keszybz/coverity-fixes 2019-07-17 14:18:49 +02:00
cryptsetup cryptsetup: don't assert on variable which is optional 2019-08-01 09:49:24 +02:00
debug-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
delta tree-wide: replace strjoina() with prefix_roota() 2019-06-25 01:31:26 +09:00
detect-virt
dissect
environment-d-generator Create src/shared/unit-file.[ch] for unit-file related ops 2019-07-19 16:51:14 +02:00
escape
firstboot firstboot: drop duplicate trailing whitespace from root pw question 2019-08-11 06:13:57 +09:00
fsck fsck: add logging and fix error codes where appropriate 2019-08-20 17:35:06 +02:00
fstab-generator
fuzz udev: modernize udev-rules.c 2019-06-02 14:15:26 +09:00
getty-generator tree-wide: make use of errno_or_else() everywhere 2019-07-11 23:20:31 +02:00
gpt-auto-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
hibernate-resume hibernate-resume: add resumeflags= kernel option 2019-06-05 18:59:05 -06:00
hostname tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
hwdb
id128 id128: actually support --pretty 2019-08-20 12:01:23 +02:00
import tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
initctl
journal journalctl: Make journalctl --user-unit= match on _SYSTEMD_USER_SLICE 2019-08-22 13:39:54 +02:00
journal-remote tree-wide: introduce strerror_safe() 2019-07-05 02:43:56 +09:00
kernel-install
libsystemd Merge pull request #13365 from keszybz/fix-commits-from-pr-13246 2019-08-22 09:13:25 +02:00
libsystemd-network Revert "shared/conf-parser,networkd: EXTRACT_UNQUOTE|EXTRACT_RETAIN_ESCAPE → EXTRACT_UNQUOTE" 2019-08-19 09:54:06 +02:00
libudev libudev: Update list of possible actions 2019-07-24 05:14:52 +09:00
locale tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
login logind: set description for inhibitor event source 2019-08-08 07:40:37 +09:00
machine tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
machine-id-setup
modules-load
mount tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
network network: drop all checks of ipv6_disabled sysctl 2019-08-27 15:31:48 +02:00
notify tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
nspawn Merge pull request #13209 from poettering/nspawn-volatile-merged-usr 2019-07-29 14:25:04 +02:00
nss-myhostname
nss-mymachines meson: make nologin path build time configurable 2019-07-18 12:46:35 +02:00
nss-resolve
nss-systemd meson: make nologin path build time configurable 2019-07-18 12:46:35 +02:00
partition growfs: call crypt_set_debug_level() correctly, skip if not needed 2019-07-08 16:04:17 +03:00
path
portable Create src/shared/unit-file.[ch] for unit-file related ops 2019-07-19 16:51:14 +02:00
pstore Merge pull request #13133 from keszybz/pstore-return-value 2019-07-22 18:29:52 +02:00
quotacheck
random-seed random-seed: rework systemd-random-seed.service substantially 2019-07-25 18:30:06 +02:00
rc-local-generator Drop support for /usr/sbin/halt.local 2019-05-23 10:19:01 +02:00
remount-fs
reply-password Remove string_free_erase 2019-07-10 13:48:55 +02:00
resolve Merge pull request #13047 from niedbalski/fix-5552-pr 2019-07-17 19:27:16 +02:00
rfkill util: make device_wait_for_initialization() optionally takes timeout value 2019-06-04 01:19:43 +09:00
run run: move comment to appropriate place 2019-07-16 14:29:04 +02:00
run-generator
shared core: stop removing non-existent and duplicate lookup paths 2019-08-27 18:12:20 +02:00
shutdown journald: slightly bump OOM adjust for journald (#13366) 2019-08-22 10:02:28 +02:00
sleep systemd-sleep: refuse to calculate swapfile offset on Btrfs 2019-06-26 22:04:59 -07:00
socket-proxy
stdio-bridge
sulogin-shell
sysctl sysctl: if options are prefixed with "-" ignore write errors 2019-07-26 09:24:47 +02:00
system-update-generator system-update-generator: do not emit bogus warning if no /system-update symlink 2019-06-12 17:27:17 +02:00
systemctl systemctl: use unicode in one more place 2019-08-19 10:17:49 +02:00
systemd tree-wide: drop netinet/ether.h from socket-util.h and sd-netlink.h 2019-07-24 18:23:08 +09:00
sysusers sysusers: properly mark generated accounts as locked 2019-08-14 18:19:56 +02:00
sysv-generator tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
test core: stop removing non-existent and duplicate lookup paths 2019-08-27 18:12:20 +02:00
time-wait-sync
timedate timedated: always enable&start the service with highest priority 2019-08-06 15:04:03 +02:00
timesync timesyncd: add ntp-units.d/ entry for timesync 2019-07-22 15:21:23 +02:00
tmpfiles tree-wide: get rid of strappend() 2019-07-12 14:31:12 +09:00
tty-ask-password-agent shared/exit-status: use Bitmap instead of Sets 2019-07-29 15:54:53 +02:00
udev udev: do not try to import properties on commented out lines 2019-08-04 14:41:47 +02:00
update-done
update-utmp update-utmp: fix assertion failure if rescue.target, multi-user.target and graphical.target are all inactive 2019-08-14 18:22:09 +02:00
user-sessions
vconsole vconsole-setup: rename toggle_utf8() → toggle_utf8_vc() 2019-07-18 16:21:02 +02:00
veritysetup tree-wide: replace strjoin() with path_join() 2019-06-24 23:59:38 +09:00
version
volatile-root