crosvm/seccomp/aarch64
Chirantan Ekbote a00991cd84 Replace dup with fcntl(F_DUPFD_CLOEXEC)
Fds created via dup don't share file descriptor flags with the original
fd, which means that they don't have the FD_CLOEXEC flag set.  Use
fcntl(F_DUPFD_CLOEXEC) so that this flag gets set for the duplicated fds
as well.

BUG=none
TEST=unit tests

Change-Id: Ib471cf40acac1eacf72969ba45247f50b349ed58
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2809687
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Chirantan Ekbote <chirantan@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
2021-04-15 10:34:04 +00:00
..
9p_device.policy Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00
balloon_device.policy Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00
battery.policy Goldfish battery: create a irq thread 2020-11-12 09:59:17 +00:00
block_device.policy Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00
common_device.policy Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00
cras_audio_device.policy seccomp: remove redundant unconditional arm/arm64 rules 2020-02-04 23:27:21 +00:00
fs_device.policy Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00
gpu_device.policy crosvm: sandbox changes for udmabuf 2021-03-30 16:42:00 +00:00
input_device.policy Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00
net_device.policy seccomp: remove redundant unconditional arm/arm64 rules 2020-02-04 23:27:21 +00:00
null_audio_device.policy seccomp: remove redundant unconditional arm/arm64 rules 2020-02-04 23:27:21 +00:00
pmem_device.policy seccomp: remove redundant unconditional arm/arm64 rules 2020-02-04 23:27:21 +00:00
rng_device.policy seccomp: remove redundant unconditional arm/arm64 rules 2020-02-04 23:27:21 +00:00
serial.policy crosvm: Support UnixDatagram sockets for serial output. 2020-07-16 00:05:19 +00:00
tpm_device.policy tree-wide: seccomp: allow clock_nanosleep syscalls 2021-03-07 01:53:10 +00:00
vhost_net_device.policy seccomp: remove redundant unconditional arm/arm64 rules 2020-02-04 23:27:21 +00:00
vhost_vsock_device.policy seccomp: remove redundant unconditional arm/arm64 rules 2020-02-04 23:27:21 +00:00
vios_audio_device.policy tree-wide: seccomp: allow clock_nanosleep syscalls 2021-03-07 01:53:10 +00:00
wl_device.policy Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00
xhci.policy Replace dup with fcntl(F_DUPFD_CLOEXEC) 2021-04-15 10:34:04 +00:00