All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv2 alsa-lib 0/3] Close-on-exec flag for device nodes
@ 2009-11-05 19:16 Rémi Denis-Courmont
  2009-11-05 19:17 ` [PATCH 1/3] Open device nodes with close-on-exec flag Rémi Denis-Courmont
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Rémi Denis-Courmont @ 2009-11-05 19:16 UTC (permalink / raw)
  To: alsa-devel

        Hello,

This is basically the same patch series as yesterday, but addressing Lennart's 
issue. Comments welcome.

 configure.in             |    2 ++
 include/local.h          |   17 +++++++++++------
 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, 13 insertions(+), 73 deletions(-)


-- 
Rémi Denis-Courmont
http://www.remlab.net/
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [RESEND] [PATCH 0/3] Close alsa-lib file descriptors on exec
@ 2009-11-04 18:38 Rémi Denis-Courmont
  2009-11-04 18:38 ` [PATCH 3/3] Define _GNU_SOURCE so that <fcntl.h> gives O_CLOEXEC Rémi Denis-Courmont
  0 siblings, 1 reply; 12+ messages in thread
From: Rémi Denis-Courmont @ 2009-11-04 18:38 UTC (permalink / raw)
  To: alsa-devel

        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@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-11-08 15:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-05 19:16 [PATCHv2 alsa-lib 0/3] Close-on-exec flag for device nodes Rémi Denis-Courmont
2009-11-05 19:17 ` [PATCH 1/3] Open device nodes with close-on-exec flag Rémi Denis-Courmont
2009-11-06 10:06   ` Takashi Iwai
2009-11-07 19:28     ` Rémi Denis-Courmont
2009-11-07 19:29       ` Rémi Denis-Courmont
2009-11-08  8:29       ` Takashi Iwai
2009-11-05 19:17 ` [PATCH 2/3] Remove old commented-out FD_CLOEXEC code Rémi Denis-Courmont
2009-11-05 19:17 ` [PATCH 3/3] Define _GNU_SOURCE so that <fcntl.h> gives O_CLOEXEC Rémi Denis-Courmont
2009-11-08 14:49   ` Lennart Poettering
2009-11-08 15:23     ` Rémi Denis-Courmont
2009-11-08 15:40       ` Lennart Poettering
  -- strict thread matches above, loose matches on Subject: below --
2009-11-04 18:38 [RESEND] [PATCH 0/3] Close alsa-lib file descriptors on exec Rémi Denis-Courmont
2009-11-04 18:38 ` [PATCH 3/3] Define _GNU_SOURCE so that <fcntl.h> gives O_CLOEXEC Rémi Denis-Courmont

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.