diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-22 13:11:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-22 13:27:53 +0200 |
commit | 625728941d02d0556856d7ef92979f1a6f5edbf3 (patch) | |
tree | e77075d1a4e99c2cd91da445fdda742ccbe213c3 /src/shared/dev-setup.c | |
parent | 21222ea5cdec65fa30a75bd5a78475459075b946 (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/shared/dev-setup.c')
0 files changed, 0 insertions, 0 deletions