diff options
author | Alex Williamson <[email protected]> | 2013-08-22 10:33:41 -0600 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2013-08-22 10:33:41 -0600 |
commit | 5d042fbdbb2df46c9185942a0c6fe280906ba70c (patch) | |
tree | 87483859f6ac5cdd04209e6e0b16ec131766232c /lib/memory-notifier-error-inject.c | |
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 <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions