[alsa-devel] [RESEND] [PATCH 0/3] Close alsa-lib file descriptors on exec
Rémi Denis-Courmont
rem at videolan.org
Wed Nov 4 19:38:09 CET 2009
Hello,
The device nodes opened by alsa-lib are private, and are not meant to be used
after exec(). Setting the close-on-exec flags avoid leaking devices file
descriptors into unintended processes. Further more, the Linux kernel
O_CLOEXEC flag is used if available for fully thread-safe operations.
configure.in | 2 ++
include/local.h | 23 +++++++++++++++++------
src/control/control_hw.c | 11 -----------
src/hwdep/hwdep_hw.c | 11 -----------
src/pcm/pcm_hw.c | 12 ------------
src/rawmidi/rawmidi_hw.c | 11 -----------
src/seq/seq_hw.c | 11 -----------
src/timer/timer_hw.c | 11 -----------
8 files changed, 19 insertions(+), 73 deletions(-)
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the Alsa-devel
mailing list