diff options
author | 2013-08-22 10:33:41 -0600 | |
---|---|---|
committer | 2013-08-22 10:33:41 -0600 | |
commit | 5d042fbdbb2df46c9185942a0c6fe280906ba70c (patch) | |
tree | 87483859f6ac5cdd04209e6e0b16ec131766232c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | vfio: use get_unused_fd_flags(0) instead of get_unused_fd() (diff) | |
download | linux-dev-5d042fbdbb2df46c9185942a0c6fe280906ba70c.tar.xz linux-dev-5d042fbdbb2df46c9185942a0c6fe280906ba70c.zip |
vfio: Add O_CLOEXEC flag to vfio device fd
Add the default O_CLOEXEC flag for device file descriptors. This is
generally considered a safer option as it allows the user a race free
option to decide whether file descriptors are inherited across exec,
with the default avoiding file descriptor leaks.
Reported-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions