delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/28/01:14:49

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2765B3858416
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1693199688;
bh=Y50nehADUXtHDS5I4egtENF6LM/MIcWKNG0B2F+6/ic=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=ZOpbq62uuW/rK/4YUFpPi8Ex8RCot6QWh6UX9YhX9IsBXoDCfYlE8i/Rg2/WPpnIB
2Cpm2qrT2I1MxY6wa1VmX8ojlcEV9ucguiV0oMWy2SxX400mm8t04FffswZ5ILqe0N
XHdv7CG7IL/dDrPPSWMRlZaauQO12SDXIhL0vukg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5A7483858D28
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20221208; t=1693199645; x=1693804445;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=ariC7ntPP029XecazxOmevXMS2p4jazJVQBlwUAafpE=;
b=JziV5W/5qRSegLfG/zRYB9BBZNSx4myAgGeLRWWlIxWXJsefvOPs5yZJxqPd0E0z8H
kiqYHhRMJDPjXaXO6W2Cd2LUOqeaSlM+PrC8uX9BRwmH3JcJd+cOD3/0YUKNls7+CmP0
yH8c0Pd1TIaa9TAt6LrzMWC1yH0sbDOnXeI4ozS3KLCZxbn3ko+rjmbKAeiZJ1BDjdeC
RmX01/axVNvOT97i186MfBxDZ56NmOKe4kZKdGh8POV14WdBn36I9YcWPj7Mdw232ZGu
ghQm14PVVzQXTNGfQWlO1Cl40ZYt9SwyHCX+Nuf4SwErBIhG2Jc2Wi/eR6G0T4G1X7um
IOhQ==
X-Gm-Message-State: AOJu0Yw7Dat3A5TMOJ7jcBb/kDVhGRl+0C8rz9g1ckmFg0RHjjNkrgvb
qK63PgOFnsEqFssYEUTW590Za5iXjc572LDRxt1dNnRuJagWbg==
X-Google-Smtp-Source: AGHT+IFrxu9Lw9xM4mfeYa49nmejgSL4LKQ4NnuTWlIxCZzp2y6RdCZ5IL5AGxAalc+3s9QcROVjGWksKNC+oi8/zJI=
X-Received: by 2002:ac2:5b52:0:b0:500:86b4:5282 with SMTP id
i18-20020ac25b52000000b0050086b45282mr12175552lfp.34.1693199645263; Sun, 27
Aug 2023 22:14:05 -0700 (PDT)
MIME-Version: 1.0
References: <CAEF1h+XMtnd0_28cLNnEB2Q+XAxXE3VMZtXh9LLQzeP7n-fAJw AT mail DOT gmail DOT com>
In-Reply-To: <CAEF1h+XMtnd0_28cLNnEB2Q+XAxXE3VMZtXh9LLQzeP7n-fAJw@mail.gmail.com>
Date: Mon, 28 Aug 2023 07:13:00 +0200
Message-ID: <CALXu0UfmE1fAM+ibPjbH8fXDhKyCePOWAmW_PxLeVjb0wKPVsw@mail.gmail.com>
Subject: Re: process substitution to create a virtual file doesn't work in
chroot environment
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Cedric Blancher via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Cedric Blancher <cedric DOT blancher AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Mon, 28 Aug 2023 at 00:14, Cary Lewis via Cygwin <cygwin AT cygwin DOT com> wrote:
>
> In a cygwin process that is started either from mintty or bash directly the
> following:
>
> $ user=234
>
> $ ./cat <(echo $user)
> 234
> works as expected.
>
> But after a chroot:
>
> $ chroot . ./bash
> user=234
> $  ./cat <(echo $user)
> ./cat: /dev/fd/63: No such file or directory
>
> In the directory I am chrooting in, I created a tmp folder, as well as
> proc, proc/self, and proc/self/fd, and a dev directory.

Can you strace -f the bash process to see what happens? How does ls -l
/dev/ look like?

Ced

--
Cedric Blancher <cedric DOT blancher AT gmail DOT com>
[https://plus.google.com/u/0/+CedricBlancher/]
Institute Pasteur

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019