X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EC4F3858C5F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1714096012;
	bh=i6cQO0ggEhe1a2olrHGasWmqYMHVkd4j58yu2GqQb2c=;
	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=M8Mr2pCzfbUDra43gRyahM3Ji+2X7CCDpj9PXfQe6dLfQoGbZCaSRIo2gI+AJ4Hik
	 a/rhw2s+tW2cKwMviYSiI17nhr0/T6pGP4RyX+kH/k7cfgvvfoi4L1X+bfnGaVwZeg
	 Yxz5xD30Fz7+uTKLhDdqTySdF/CQCLsu1hMYq8yk=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F7BA3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6F7BA3858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714095949; cv=none;
 b=lAYFK2NBLKaShSsZjahUEi5D0guMFYGpgbQw1cUuG+tEGnct90k/wO1FCUdmoaOM2xFMqdkgEBMbFDCEqCwxR4gAolvHI4wGNoqZqb2LWmhvCym4WzEE6ZYJ/WWZU5uMBGPzizusE2nfEW/0XETwtyDC7tVVCtu4AwxTLpct8+A=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1714095949; c=relaxed/simple;
 bh=F0kk4iu+3YEaYSXQ/uGxDj6BUcRPxm1J5+0UDv/mWKI=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=BPAvMI6sEriVyl5Phnz4GOyF/64bXae0Lm+ZVSI5SYvddfhaoGJsFD2vErdDGdvqieX00VieCkN3z+vYYdrNz1L/OewrEaGx4H80f9gv6gP2aY/1v8C74wAD1Zoi9EAFqKDnQV7TwY9su2vHzof2tJnBsY9RspEtM7SErxraz7Q=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1714095945; x=1714700745;
 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=OaXwPdQv4dTkrv4NidApUxnCib+wrASLw5URxMqdfjw=;
 b=Fk++OxKLXRaonFtNHiclWpmL2od1l6nKnMcDmuutsfmmISGmlQyDLPjHDQPoq7fmMg
 1hnGz+kIs7nPR4S2IoHc96Xgbz+Trrg/VLITMyrohLrDqr7icBcmpFh7EMicWtbnIzJR
 3hDWtuzbevokh9gZygpRH8d/fxHTPUu28v03E0QtdejGpE9D/N9ICcrwFLsNwKp0PSFB
 0EDtzsfMUzs/vVzdsz+pHHqNMSw4K6uRdaS/dQlv69hBKWnTQu0EqqKsXDa+Ft0jIxGL
 H1T9qwoB2q78tYrzAqFnMWwC747sfs+kIYOFwA4IlpUn/wqUHsEwKsUydStCxEcaun/2
 ii2w==
X-Gm-Message-State: AOJu0YxHuicPLpOgp1URrbwemdsiLpNx/EpjgxJUTGdvb6ZlVB8EU4nG
 QtoWSF8MpGK/55boLzdzAyd4hKN4HUWLWqRRz8Ui1nWnU15mFr+pQtErulnwIR1p0udqu2zGV8J
 QYP0ZqChdvd81xXg5qT/6DTpO9+Ce1g==
X-Google-Smtp-Source: AGHT+IGjQv786ajOcHmBSFL7UDrRJOuXwIrLNNyeMp2LxxorNEch9AGRiuc2+uAlLTUeidQJWEyWKoXaKYq690uxb+Y=
X-Received: by 2002:a05:6512:2343:b0:51c:c1a3:a4f9 with SMTP id
 p3-20020a056512234300b0051cc1a3a4f9mr20824lfu.64.1714095944593; Thu, 25 Apr
 2024 18:45:44 -0700 (PDT)
MIME-Version: 1.0
References: <CAAvCNcAKyzp7eMwcGa7_hRUiKkHP2YaBDko911jJunwBdZ9mKQ@mail.gmail.com>
 <608a6fa5-22e0-4b46-b1c9-9074be3aa1e1@Shaw.ca>
 <CAAvCNcCufFgHRokmARNYnC22mCDk9LyUt2WCm-rRAo0wqsYDVg@mail.gmail.com>
 <0cac6601-21bb-4582-8326-6ce5d01d9f9b@SystematicSW.ab.ca>
In-Reply-To: <0cac6601-21bb-4582-8326-6ce5d01d9f9b@SystematicSW.ab.ca>
Date: Fri, 26 Apr 2024 03:45:18 +0200
Message-ID: <CAAvCNcByRFaUeWPhm4F_Mxbytw0W0xARymy+7Ch5kp02oszQsw@mail.gmail.com>
Subject: Re: DOS namespaces, accessible/walk-able as Admin via Cygwin?
To: cygwin@cygwin.com
X-Spam-Status: No, score=-0.2 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@cygwin.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@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Dan Shelton via Cygwin <cygwin@cygwin.com>
Reply-To: Dan Shelton <dan.f.shelton@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Mon, 22 Apr 2024 at 07:01, Brian Inglis via Cygwin <cygwin@cygwin.com> wrote:
>
> On 2024-04-21 17:24, Dan Shelton via Cygwin wrote:
> > On Sat, 20 Apr 2024 at 05:37, Brian Inglis via Cygwin <cygwin@cygwin.com> wrote:
> >>> 2. If I have Administrator rights, is there a way in /proc where I can
> >>> /bin/ls -la  or /bin/find -ls all those DOS namespaces and soft links
> >>> to the real devices?
> >>
> >> Cygwin exposes these MS Windows Executive Object Manager subsystem resource
> >> objects under /proc/sys/ and object namespaces are per session under
> >> /proc/sys/Sessions/ you have e.g.
>
> >> $ ls -glo /proc/sys/Sessions/BNOLINKS/
> >> total 0
> >> lr--r--r-- 1 0 Apr 19 21:23 0 -> /proc/sys/BaseNamedObjects
> >> lr--r--r-- 1 0 Apr 19 21:23 1 -> /proc/sys/Sessions/1/BaseNamedObjects
> >>
> >> so each session has its own set of BaseNamedObjects, which you can list with
> >> appropriate permissions, or using a tree browser.
>
> > Now where does the "1" in /proc/sys/Sessions/1/BaseNamedObjects come
> > from? Is there a Cygwin or Win32 API for that?
>
> It's the MS Windows session number for the first user session.
> You can access them using Cygwin or MS Windows directory lookups or tree
> browsers, as I said.
> Search microsoft.com for Windows sessions for details about MS Windows APIs.

Windows has multiple session apis (terminal, logon, ...), which is
used for the DOS namespace?

> >> Under MS Windows you can use Sysinternals WinObj64 to browse the hierarchy and
> >> objects.
> >
> > What is that?
>
> If you do not yet know that, perhaps you should not yet be digging into these MS
> Windows Executive subsystem objects.
>
> Some of these questions seem very abstract - are these academic questions or
> projects?

Building knowledge, learning, and debugging actual code.

Dan
-- 
Dan Shelton - Cluster Specialist Win/Lin/Bsd

-- 
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
