commit | 5d042fbdbb2df46c9185942a0c6fe280906ba70c | [log] [tgz] |
---|---|---|
author | Alex Williamson <alex.williamson@redhat.com> | Thu Aug 22 10:33:41 2013 -0600 |
committer | Alex Williamson <alex.williamson@redhat.com> | Thu Aug 22 10:33:41 2013 -0600 |
tree | 87483859f6ac5cdd04209e6e0b16ec131766232c | |
parent | a5d550703d2c2f0f9fc5fd4a249efa8984dc9353 [diff] |
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>