From: "Rémi Denis-Courmont" <rem@videolan.org>
To: alsa-devel <alsa-devel@alsa-project.org>
Subject: [RESEND] [PATCH 0/3] Close alsa-lib file descriptors on exec
Date: Wed, 4 Nov 2009 20:38:09 +0200 [thread overview]
Message-ID: <200911042038.09618.rem@videolan.org> (raw)
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
next reply other threads:[~2009-11-04 18:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-04 18:38 Rémi Denis-Courmont [this message]
2009-11-04 18:38 ` [PATCH 1/3] Open device nodes with close-on-exec flag Rémi Denis-Courmont
2009-11-04 19:03 ` Lennart Poettering
2009-11-04 18:38 ` [PATCH 2/3] Remove old commented-out FD_CLOEXEC code 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200911042038.09618.rem@videolan.org \
--to=rem@videolan.org \
--cc=alsa-devel@alsa-project.org \
--cc=remi@remlab.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox