Re: Redirected stdin/out and security

From: Gary Chanson (gchanson_at_No.Spam.TheWorld.net)
Date: 02/29/04


Date: Sun, 29 Feb 2004 04:24:06 -0500


"qfel" <as_in_nick@astercity.net> wrote in message
news:c1s74i$340$1@mamut.aster.pl...
> If I create process with redirected input and output, does it matter what
security
> descriptor is assigned to pipes it inherits as stdin/out?
> Or the child process is given same access to those objects as the parent
process?

    I think it depends on what you pass as the security attributes. If you
pass a SECURITY_ATTRIBUTES with lpSecurityDescriptor set to NULL and
bInheritHandle set to TRUE, the pipe is assigned the default security
descriptor of the calling process.

-- 
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@mvps.org


Relevant Pages

  • Re: [stable] Linux 2.6.25.10 (resume)
    ... a descriptor refering to opened file F, $FOO disappears when any of such ... FreeBSD POSIX locks; ... Peter had missed that and his patch ... Just about already known security issues being silently fixed without any mention. ...
    (Linux-Kernel)
  • Re: Problem in upgrade
    ... > descriptor on object ... > Adprep attempts to merge the existing default security ... Infinite Diversities in Infinite Combinations. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Obtain PIDs
    ... > OpenProcess ... tokens associated with all the processes and threads on the system. ... Get it and play with it; examine the security on the various system ... On my XP system, for example, I have to modify the security descriptor ...
    (microsoft.public.win2000.developer)
  • Re: Obtain PIDs
    ... > OpenProcess ... tokens associated with all the processes and threads on the system. ... Get it and play with it; examine the security on the various system ... On my XP system, for example, I have to modify the security descriptor ...
    (microsoft.public.vc.language)
  • Re: Obtain PIDs
    ... > OpenProcess ... tokens associated with all the processes and threads on the system. ... Get it and play with it; examine the security on the various system ... On my XP system, for example, I have to modify the security descriptor ...
    (microsoft.public.windowsxp.basics)