diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-22 13:05:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-22 13:27:53 +0200 |
commit | 03091baac3c37094af6a30be31e4962dd26f8404 (patch) | |
tree | 242e6ca2dcd35e96038e14663a673e3d30bf19c6 /src/shared/sparse-endian.h | |
parent | 163ab2961268232e1cb49e990a8ccefe24b7649f (diff) |
util: make sure fd refers to regular file or directory when applying file attributes
Before invoking file system ioctls we need to make sure that the
specified fd actually refers to a file system object, and not a device
node or similar. Otherwise we might by accident invoke unrelated device
driver ioctls. For example, DRM ioctls use the same ioctl numbers as the
various file system ioctls.
Diffstat (limited to 'src/shared/sparse-endian.h')
0 files changed, 0 insertions, 0 deletions