Re: [PATCH v2 1/2] fs: make all new mount api fds cloexec by default

2019-05-11 Thread David Howells
Christian Brauner wrote: > 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 re

[PATCH v2 1/2] fs: make all new mount api fds cloexec by default

2019-05-09 Thread 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 pass the _CLOEXEC flag along