[PATCH 1/4] uapi, fs: make all new mount api fds cloexec by default [ver #2]

2019-05-16 Thread David Howells
From: Christian Brauner This makes all file descriptors returned from new syscalls of the new mount api cloexec by default. >From a userspace perspective it is rarely the case that fds are supposed to be inherited across exec. Having them not cloexec by default forces userspace to remember to pa

[PATCH 1/4] uapi, fs: make all new mount api fds cloexec by default

2019-05-16 Thread David Howells
From: Christian Brauner This makes all file descriptors returned from new syscalls of the new mount api cloexec by default. >From a userspace perspective it is rarely the case that fds are supposed to be inherited across exec. Having them not cloexec by default forces userspace to remember to pa