Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5d042fbd authored by Alex Williamson's avatar Alex Williamson
Browse files

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: default avatarYann Droneaud <ydroneaud@opteya.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent a5d55070
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment