summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-04-22 13:11:19 +0200
committerLennart Poettering <lennart@poettering.net>2015-04-22 13:27:53 +0200
commit625728941d02d0556856d7ef92979f1a6f5edbf3 (patch)
treee77075d1a4e99c2cd91da445fdda742ccbe213c3 /src/journal
parent21222ea5cdec65fa30a75bd5a78475459075b946 (diff)
btrfs-util: be more careful when invoking btrfs file system ioctls
If we get passed an fd that does not refer to a regular file or directory, we should not issue btrfs ioctls on it, since it might end up in a device driver or similar (note that DRM for example uses the same ioctl numbers as some file system ioctls). Hence, let's make sure to always check if something is a regular file or directory, or is on btrfs before invoking the respective ioctls. It's better to be safe than sorry.
Diffstat (limited to 'src/journal')
0 files changed, 0 insertions, 0 deletions