help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process substitution documentation request


From: Chet Ramey
Subject: Re: Process substitution documentation request
Date: Fri, 26 Jun 2026 11:49:42 -0400
User-agent: Mozilla Thunderbird

On 6/24/26 6:59 PM, Borden via wrote:
Sorry, this is more rant than useful information. But it's mostly on topic.

24 Jun 2026, 17:36 by chet.ramey@case.edu:

Thanks, but no. This seems like a lot of work for an imperfect fix to
work around an infrequently-encountered problem in sudo.

As I hope to explain to the sudo people, all the sudo man page had to say was something 
to the effect of "sudo closes all but three file descriptors by default. This means 
that if you use *process substitution* [emphasis added] within sudo, you must identify 
which file descriptors to keep open using --close-from or sudo will break those 
pipes." I've wasted *your* time because of their omission.

I think they'll resist something that shell-specific. I hope they would add
something to the effect of "if you use a program that requires open file
descriptors to be passed from its parent, even implicitly using shell
process substitution, you must identify ...".

The sudo developers would probably also put in a disclaimer about how
passing information across an access boundary like that is a potential
security problem.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]