From: Chris Wright <chrisw@osdl.org>
To: Manfred Spraul <manfred@colorfullife.com>
Cc: Andrew Morton <akpm@osdl.org>,
Ulrich Drepper <drepper@redhat.com>,
Linux Kernel <linux-kernel@vger.kernel.org>
Subject: mq_open() and close_on_exec?
Date: Tue, 13 Apr 2004 17:40:05 -0700 [thread overview]
Message-ID: <20040413174005.Q22989@build.pdx.osdl.net> (raw)
SUSv3 doesn't seem to specify one way or the other. I don't have the
POSIX specs, and the old docs I have suggest that mq_open() creates an
object which is to be closed upon exec. Anyone have a clue if this is
actually required? Patch below sets this as default (if indeed it's
valid/required).
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
===== ipc/mqueue.c 1.6 vs edited =====
--- 1.6/ipc/mqueue.c Mon Apr 12 10:54:17 2004
+++ edited/ipc/mqueue.c Tue Apr 13 16:05:36 2004
@@ -641,6 +641,7 @@
goto out_putfd;
}
+ set_close_on_exec(fd, 1);
fd_install(fd, filp);
goto out_upsem;
next reply other threads:[~2004-04-14 0:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-14 0:40 Chris Wright [this message]
2004-04-14 4:47 ` Manfred Spraul
2004-04-14 16:49 ` Chris Wright
2004-04-14 6:12 ` Jakub Jelinek
2004-04-14 16:53 ` Chris Wright
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=20040413174005.Q22989@build.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=akpm@osdl.org \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.com \
/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
all inboxes | Powered by JetHome®