[RESEND] [PATCH 0/3] Close alsa-lib file descriptors on exec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



        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/
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux