]> git.ipfire.org Git - thirdparty/systemd.git/commit
growfs: insist we open a directory when opening fs mount point
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Jul 2022 09:30:27 +0000 (11:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Jul 2022 09:30:27 +0000 (11:30 +0200)
commit2e7dd6682bc9da79d5249caa93ea1bde37a0f315
tree9884f670896a492f652ba95b969e59a4c666439a
parentf95db4d6facff297c169dca22becccb400f49f4a
growfs: insist we open a directory when opening fs mount point

This is a simple safety check, since we shouldn't invoke ioctls on fds
without being reasonably sure they are of the right type since ioctls
are overloaded, and we might be tricked hence to execute an operation on
an fd which means something different than what we expect.
src/partition/growfs.c