]> git.ipfire.org Git - thirdparty/systemd.git/commit
shutdown: rework log_umount_blockers() a bit 24425/head
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Aug 2022 09:55:14 +0000 (11:55 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Aug 2022 20:53:18 +0000 (22:53 +0200)
commit05768ae36b4af0c18b4837fa6041fd66a05f5e36
tree7f3bee56475048771824ca6194c003503fb3bd38
parentf11efcbeb17781a3e03596fe6b1016fbb5c31360
shutdown: rework log_umount_blockers() a bit

Let's go directly from opening /proc/ to opening /proc/$PID/fd/ instead
of indirectly via opening /proc/$PID/ first. Saves a syscall.

Also, add error logging about all unexpected errors.

Finally, drop redundant denylist for /proc/, /sys/, /dev/ prefix
checking, should be redundant, given the ealier check against the 'mnt'
prefix.
src/shutdown/umount.c