mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-03 05:25:24 +08:00
2003-09-26 Pierre Humblet <pierre.humblet@ieee.org>
* pinfo.cc (pinfo::init): Do not give FILE_MAP_WRITE access to Everybody. * exceptions.cc (sig_handle_tty_stop): Do not create pinfo parent with PID_MAP_WRITE. * fhandler_process.cc (fhandler_process::fill_filebuf): Ditto for pinfo p. * signal.cc (kill_worker): Ditto for pinfo dest.
This commit is contained in:
parent
1eb451937a
commit
ecc28ff8db
@ -1,3 +1,11 @@
|
|||||||
|
2003-09-26 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
|
* pinfo.cc (pinfo::init): Do not give FILE_MAP_WRITE access to Everybody.
|
||||||
|
* exceptions.cc (sig_handle_tty_stop): Do not create pinfo parent with
|
||||||
|
PID_MAP_WRITE.
|
||||||
|
* fhandler_process.cc (fhandler_process::fill_filebuf): Ditto for pinfo p.
|
||||||
|
* signal.cc (kill_worker): Ditto for pinfo dest.
|
||||||
|
|
||||||
2003-09-26 Pierre Humblet <pierre.humblet@ieee.org>
|
2003-09-26 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
* pinfo.h (pinfo::set_acl): Declare.
|
* pinfo.h (pinfo::set_acl): Declare.
|
||||||
|
@ -616,7 +616,7 @@ sig_handle_tty_stop (int sig)
|
|||||||
its list of subprocesses. */
|
its list of subprocesses. */
|
||||||
if (my_parent_is_alive ())
|
if (my_parent_is_alive ())
|
||||||
{
|
{
|
||||||
pinfo parent (myself->ppid, PID_MAP_RW);
|
pinfo parent (myself->ppid);
|
||||||
if (ISSTATE (parent, PID_NOCLDSTOP))
|
if (ISSTATE (parent, PID_NOCLDSTOP))
|
||||||
sig_send (parent, SIGCHLD);
|
sig_send (parent, SIGCHLD);
|
||||||
}
|
}
|
||||||
|
@ -245,8 +245,7 @@ out:
|
|||||||
bool
|
bool
|
||||||
fhandler_process::fill_filebuf ()
|
fhandler_process::fill_filebuf ()
|
||||||
{
|
{
|
||||||
pinfo p (pid, PID_MAP_RW); // PID_MAP_RW for cmdline since it
|
pinfo p (pid);
|
||||||
// needs to signal the other process
|
|
||||||
|
|
||||||
if (!p)
|
if (!p)
|
||||||
{
|
{
|
||||||
|
@ -170,7 +170,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
|
|||||||
char sa_buf[1024];
|
char sa_buf[1024];
|
||||||
PSECURITY_ATTRIBUTES sec_attribs =
|
PSECURITY_ATTRIBUTES sec_attribs =
|
||||||
sec_user_nih (sa_buf, cygheap->user.sid(), well_known_world_sid,
|
sec_user_nih (sa_buf, cygheap->user.sid(), well_known_world_sid,
|
||||||
FILE_MAP_READ | FILE_MAP_WRITE); /* FIXME */
|
FILE_MAP_READ);
|
||||||
h = CreateFileMapping (INVALID_HANDLE_VALUE, sec_attribs,
|
h = CreateFileMapping (INVALID_HANDLE_VALUE, sec_attribs,
|
||||||
PAGE_READWRITE, 0, mapsize, mapname);
|
PAGE_READWRITE, 0, mapsize, mapname);
|
||||||
created = h && GetLastError () != ERROR_ALREADY_EXISTS;
|
created = h && GetLastError () != ERROR_ALREADY_EXISTS;
|
||||||
|
@ -173,7 +173,7 @@ kill_worker (pid_t pid, int sig)
|
|||||||
sig_dispatch_pending ();
|
sig_dispatch_pending ();
|
||||||
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
pinfo dest (pid, PID_MAP_RW);
|
pinfo dest (pid);
|
||||||
BOOL sendSIGCONT;
|
BOOL sendSIGCONT;
|
||||||
|
|
||||||
if (!dest)
|
if (!dest)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user