Systemd/src
Lennart Poettering f8606626ed tmpfiles: if we get ENOENT when opening /proc/self/fd/, check if /proc is mounted
let's return ENOSYS in that case, to make things a bit less confusng.

Previously we'd just propagate ENOENT, which people might mistake as
applying to the object being modified rather than /proc/ just not being
there.

Let's return ENOSYS instead, i.e. an error clearly indicating that some
kernel API is not available. This hopefully should put people on a
better track.

Note that we only do the procfs check in the error path, which hopefully
means it's the less likely path.

We probably can add similar bits to more suitable codepaths dealing with
/proc/self/fd, but for now, let's pick to the ones noticed in #14745.

Fixes: #14745
2020-04-23 14:52:10 +02:00
..
ac-power
activate util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
analyze verify: ignore nonexistent executables if required 2020-04-14 21:23:31 +02:00
ask-password
backlight
basic tmpfiles: if we get ENOENT when opening /proc/self/fd/, check if /proc is mounted 2020-04-23 14:52:10 +02:00
binfmt
boot tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
busctl busctl: wrap long lines 2020-04-10 16:40:48 +02:00
cgls
cgroups-agent
cgtop
core sd-bus: work around ubsan warning 2020-04-23 08:54:30 +02:00
coredump coredumpctl: support --file=PATH 2020-04-13 17:10:27 +02:00
cryptsetup tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
debug-generator
delta
detect-virt
dissect dissect: add --fsck= option to systemd-dissect tool 2020-01-29 19:29:52 +01:00
environment-d-generator sd-path: rename the two functions 2020-03-27 20:12:44 +01:00
escape
firstboot firstboot: add missing check 2020-02-06 09:52:39 +01:00
fsck
fstab-generator fstab-generator: handle systemd.swap= command-line argument 2020-03-12 17:52:43 +01:00
fuzz ci: turn off FuzzBuzz 2020-03-30 14:57:22 +02:00
getty-generator
gpt-auto-generator units: introduce blockdev@.target for properly ordering mounts/swaps against cryptsetup 2020-01-21 20:23:13 +01:00
hibernate-resume Fix generator name in hibernate-resume-generator's drop-in 2020-02-04 14:49:04 +09:00
home Merge pull request #15507 from poettering/bus-log-api 2020-04-22 23:30:09 +02:00
hostname tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
hwdb
id128 id128: change table header from "uuid" to just "id" 2020-01-29 15:32:26 +01:00
import tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
initctl initctl: (void)ify epoll_ctl() 2020-01-10 10:06:09 +01:00
journal sd-journal: don't check namespaces if we have no namespace to go by 2020-04-23 09:23:53 +02:00
journal-remote Support journal-upload HTTPS without key and certificate 2020-04-16 14:05:41 +03:00
kernel-install Add meson build option to prevent building kernel-install 2020-04-14 20:22:32 +02:00
libsystemd Merge pull request #15543 from poettering/fix-ubsan-sd-bus 2020-04-23 13:39:58 +02:00
libsystemd-network Merge pull request #15530 from ssahani/lpr-dhcpv4-option-9 2020-04-23 09:10:14 +02:00
libudev tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
locale tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
login tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
machine tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
machine-id-setup
modules-load
mount systemd: Fix busctl crash on aarch64 when setting output table format 2020-02-16 02:09:26 +09:00
network Merge pull request #15530 from ssahani/lpr-dhcpv4-option-9 2020-04-23 09:10:14 +02:00
notify
nspawn nspawn: refuse politely when we are run in the non-host netns in combination with --image= 2020-04-23 09:18:43 +02:00
nss-myhostname
nss-mymachines
nss-resolve
nss-systemd tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
partition tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
path path: log at debug level when we can't query a variable 2020-03-27 20:12:45 +01:00
portable tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
pstore
quotacheck
random-seed random-seed: add missing header for GRND_NONBLOCK (#14988) 2020-03-02 14:48:21 +09:00
rc-local-generator
remount-fs
reply-password
resolve Merge pull request #15516 from poettering/nspawn-resolv-conf 2020-04-23 08:01:46 +02:00
rfkill
run run: don't wait for start job to complete when running interactively anyway 2020-04-23 09:47:20 +02:00
run-generator
shared Merge pull request #15543 from poettering/fix-ubsan-sd-bus 2020-04-23 13:39:58 +02:00
shutdown Merge pull request #13084 from ddstreet/log_time 2020-03-30 17:57:34 +02:00
sleep sleep: automatically lock all home directories when suspending 2020-01-28 22:36:56 +01:00
socket-proxy tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
stdio-bridge
sulogin-shell
sysctl sysctl: fix segfault 2020-02-06 23:49:32 +09:00
system-update-generator
systemctl sd-bus: work around ubsan warning 2020-04-23 08:54:30 +02:00
systemd Merge pull request #15530 from ssahani/lpr-dhcpv4-option-9 2020-04-23 09:10:14 +02:00
sysusers sysusers,tmpfiles: always mention error when failing to replace specifiers 2020-04-23 14:50:07 +02:00
sysv-generator
test tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
time-wait-sync
timedate tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
timesync tree-wide: implement new log control API dbus interface in all our daemons 2020-04-21 17:08:16 +02:00
tmpfiles tmpfiles: if we get ENOENT when opening /proc/self/fd/, check if /proc is mounted 2020-04-23 14:52:10 +02:00
tty-ask-password-agent tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
udev tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
update-done
update-utmp Remove unneded {}s 2020-04-13 09:31:49 +02:00
user-sessions
userdb tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
vconsole
veritysetup
version tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
volatile-root