Systemd/src
Lennart Poettering c2595d3b02 fs-util: when calling chase_symlinks() with root path, leave root part unresolved
Previously there was a weird asymmetry: initially we'd resolve the
specified prefix path when chasing symlinks together with the actual
path we were supposed to cover, except when we hit an absolute symlink
where we'd use the root as it was. Let's unify handling here: the prefix
path is never resolved, and always left as it is.

This in particular fixes issues with symlinks in the prefix path, as
that confused the check that made sure we never left the root directory.

Fixes: #14634
Replaces: #14635
2020-01-28 22:53:59 +01:00
..
ac-power
activate util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
analyze analyze: Add ProtectClock= to analyze-security 2020-01-26 12:44:47 -08:00
ask-password
backlight
basic fs-util: when calling chase_symlinks() with root path, leave root part unresolved 2020-01-28 22:53:59 +01:00
binfmt tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
boot Merge pull request #14667 from yuwata/boot-random-seed-mode 2020-01-28 15:42:10 +01:00
busctl tree-wide: use table_log_add_error() 2020-01-10 18:28:30 +09:00
cgls tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
cgroups-agent tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
cgtop Remove path_compare_func() alias for path_compare() 2019-11-15 14:47:45 +01:00
core Merge pull request #14633 from poettering/logind-switch-polkit 2020-01-28 16:09:09 +01:00
coredump tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
cryptsetup tree-wide: yet another batch of coccinelle recommendations 2020-01-02 13:32:55 +01:00
debug-generator initrd: fix systemd.debug-shell & friends 2019-12-03 14:48:27 +01:00
delta tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
detect-virt
dissect dissect: introduce new recognizable partition types for /var and /var/tmp 2019-12-23 14:43:59 +01:00
environment-d-generator
escape
firstboot shared: split out crypt() specific helpers into its own .c/.h in src/shared/ 2020-01-15 15:26:27 +01:00
fsck tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
fstab-generator Implemented x-systemd.{required,wanted}-by= options 2020-01-21 06:54:34 -07:00
fuzz json: add flags parameter to json_parse_file(), for parsing "sensitive" data 2019-12-02 09:47:00 +01:00
getty-generator tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
gpt-auto-generator Merge pull request #14390 from poettering/gpt-var-tmp 2020-01-14 15:37:53 +01:00
hibernate-resume hibernate-resume-generator: wait "infinitely" for the resume device 2019-12-03 17:20:19 +01:00
hostname shared: split out polkit stuff from bus-util.c → bus-polkit.c 2020-01-22 12:34:10 +01:00
hwdb tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
id128 systemd-id128: add new verb to print GPT partitions UUIDs 2020-01-23 23:32:13 +01:00
import Merge pull request #14633 from poettering/logind-switch-polkit 2020-01-28 16:09:09 +01:00
initctl initctl: (void)ify epoll_ctl() 2020-01-10 10:06:09 +01:00
journal journal: don't use startswith() on something that is not a NUL-terminated string 2020-01-21 14:32:15 +01:00
journal-remote util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
kernel-install
libsystemd sd-bus: fix introspection bug in signal parameter names 2020-01-28 11:20:33 +01:00
libsystemd-network network, udev: introduce PermanentMACAddress= setting in [Match] section 2020-01-08 17:54:54 +09:00
libudev tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
locale shared: split out polkit stuff from bus-util.c → bus-polkit.c 2020-01-22 12:34:10 +01:00
login logind: check PolicyKit before allowing VT switch 2020-01-22 12:34:31 +01:00
machine shared: split out polkit stuff from bus-util.c → bus-polkit.c 2020-01-22 12:34:10 +01:00
machine-id-setup machine-id-setup: avoid unexpected aborting 2019-10-25 13:35:37 +09:00
modules-load tree-wide: drop libkmod.h when module-util.h is included 2019-11-04 00:30:32 +09:00
mount tree-wide: use table_log_add_error() 2020-01-10 18:28:30 +09:00
network Merge pull request #14611 from yuwata/network-fix-reconfigure 2020-01-28 16:10:28 +01:00
notify notify: add color to --help 2019-11-28 11:41:24 +01:00
nspawn Merge pull request #14390 from poettering/gpt-var-tmp 2020-01-14 15:37:53 +01:00
nss-myhostname tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
nss-mymachines
nss-resolve tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
nss-systemd nss: hook up nss-systemd with userdb varlink bits 2020-01-15 15:29:07 +01:00
partition shared/gpt: export gpt_partition_type_uuid_{to,from}_string functions 2020-01-23 22:56:23 +01:00
path
portable shared: split out polkit stuff from bus-util.c → bus-polkit.c 2020-01-22 12:34:10 +01:00
pstore tree-wide: drop missing.h 2019-10-31 17:57:03 +09:00
quotacheck
random-seed tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
rc-local-generator
remount-fs Allow overriding /etc/fstab with $SYSTEMD_FSTAB 2019-11-13 22:04:51 +01:00
reply-password tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
resolve shared: split out polkit stuff from bus-util.c → bus-polkit.c 2020-01-22 12:34:10 +01:00
rfkill
run tree-wide: clean up --help texts a bit 2019-11-18 15:14:43 +01:00
run-generator core: use SPECIAL_DEFAULT_TARGET more 2019-11-28 09:13:45 +01:00
shared Merge pull request #14594 from keszybz/id128-show-gpt 2020-01-28 17:23:50 +01:00
shutdown umount: when we fail to detach a loopback device, set the auto-clear flag 2019-12-20 18:37:24 +01:00
sleep systemd-sleep: always attempt hibernation if configured 2020-01-05 20:15:38 -08:00
socket-proxy tree-wide: drop socket.h when socket-util.h is included 2019-11-04 00:30:32 +09:00
stdio-bridge
sulogin-shell tree-wide: normalize includes of public headers 2019-11-28 09:14:22 +01:00
sysctl sysctl: downgrade message when we have no permission 2020-01-16 14:45:50 +01:00
system-update-generator
systemctl systemctl: use format-table.[ch] for tables 2020-01-14 15:26:21 +01:00
systemd network: DHCP4 introduce send decline 2019-12-21 00:26:44 +09:00
sysusers Revert "sysusers: properly mark generated accounts as locked" 2019-10-22 17:59:11 +09:00
sysv-generator
test test: add tests for UNESCAPE_ACCEPT_NUL 2020-01-27 19:58:06 +09:00
time-wait-sync tree-wide: drop signal.h when signal-util.h is included 2019-11-04 00:30:32 +09:00
timedate shared: split out polkit stuff from bus-util.c → bus-polkit.c 2020-01-22 12:34:10 +01:00
timesync timesyncd: log louder when we refuse a server due to root distance 2020-01-21 15:20:17 +01:00
tmpfiles tmpfiles: create with correct MAC label on option C 2019-11-28 12:18:04 +01:00
tty-ask-password-agent tree-wide: drop signal.h when signal-util.h is included 2019-11-04 00:30:32 +09:00
udev udev: assume that the recv buffer size of the netlink socket is already configured when the socket is passed in 2020-01-28 22:35:08 +01:00
update-done
update-utmp tree-wide: drop string.h when string-util.h or friends are included 2019-11-04 00:30:32 +09:00
user-sessions
userdb userdbd: add userdbctl tool as client for userdbd 2020-01-15 15:28:42 +01:00
vconsole tree-wide: drop stdio.h when stdio-util.h is included 2019-11-04 00:30:32 +09:00
veritysetup id128: introduce ID128_UUID_STRING_MAX for sizing UUID buffers 2019-12-10 11:56:18 +01:00
version
volatile-root basic/fs-util: change CHASE_OPEN flag into a separate output parameter 2019-10-24 22:44:24 +09:00