summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-03-30 00:57:59 +0000
committerChristopher Faylor <me@cgf.cx>2006-03-30 00:57:59 +0000
commit6f9b3203f2ec5c8c22d7d3cfe67274586995dfa3 (patch)
tree9077b7e3807b257744cf9d230df8884efe370871
parentef79d97d9feadc5455e4b7591b3b2848f6a487d1 (diff)
downloadcygnal-6f9b3203f2ec5c8c22d7d3cfe67274586995dfa3.tar.gz
cygnal-6f9b3203f2ec5c8c22d7d3cfe67274586995dfa3.tar.bz2
cygnal-6f9b3203f2ec5c8c22d7d3cfe67274586995dfa3.zip
* sigproc.cc (wait_for_sigthread): Use the current user sid when setting up the
signal pipe rather than relying on (eventually) the effective sid.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/sigproc.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index f3908aae3..5ab539669 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
2006-03-29 Christopher Faylor <cgf@timesys.com>
+ * sigproc.cc (wait_for_sigthread): Use the current user sid when
+ setting up the signal pipe rather than relying on (eventually) the
+ effective sid.
+
+2006-03-29 Christopher Faylor <cgf@timesys.com>
+
* dcrt0.cc (child_info_fork::handle_fork): Set uid/gid in myself so
that it can be used by subsequent startup functions.
(dll_crt0_0): Issue a warning if DuplicateTokenEx fails and DEBUGGING.
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index 7d22af3be..10ff3cefc 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -137,7 +137,7 @@ void __stdcall
wait_for_sigthread (bool forked)
{
char char_sa_buf[1024];
- PSECURITY_ATTRIBUTES sa_buf = sec_user_nih ((PSECURITY_ATTRIBUTES) char_sa_buf);
+ PSECURITY_ATTRIBUTES sa_buf = sec_user_nih ((PSECURITY_ATTRIBUTES) char_sa_buf, cygheap->user.sid());
if (!CreatePipe (&my_readsig, &my_sendsig, sa_buf, 0))
api_fatal ("couldn't create signal pipe%s, %E", forked ? " for forked process" : "");
ProtectHandle (my_readsig);