X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F2E53858C56
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1713741944;
	bh=aQftsK62TdtCm0Sg9SIDhGEbe04qSbXcq18Wa4PuhDE=;
	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=QaEviDq1baEoYv1rUFYAxxGnkuv0B2aft53FMlh8ql0fLdSnHIkn+t1Rc6uIEJ249
	 ba2QhyZ8e/dmgmV35QsOf+mcuDC/LVXCmlu/YnAB5lVIE6QwsUY+B+iAZi3kq1EwXP
	 6UPbQQ19ouZLUcXoouxVHNafnzZJW1tGKZgcZJHU=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA1E63858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CA1E63858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713741893; cv=none;
 b=RixecuHxCwbuh3P6OL2XWzdbK0RHV5hl8qb6LVBwiis4+F9MMo9DRbrMMqjESaJoF01vS8AbVYLGnu48uq3a2D7bE2x845Y3f7pVMMGCemyGLTmRVp7W+Zk+COJ6hr368Q0lMwI+PMUFWUTFn8pBzhJw8kp0a6KSf/BxqoaBzgs=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1713741893; c=relaxed/simple;
 bh=BShMqpGJBb5joZnKdOBfoGR7yxvj84Qfu8EmeXYLdp4=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=g5xtnRUxwkTOffmCNyvGh1th3AFn4xNH1kI39G3FpPOSgouZuZwCgeUARA8locLiBRtfuGYeK5aOWUbSXIH4lrbcW66Ch2pzNoRr7LQJW9CFLzo5zYSkl3RUy+qmHSO1ASCJcLhccXCH5XZZjO29jX2e54UeEFM05oU5iZCvqg4=
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=1713741890; x=1714346690;
 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=Ma1h9qPuojD4sNnjxgzd0WexG0EsXCUghps3lIUt7Ws=;
 b=owdkk7rzsCT78wlLNdfZs4IiiUNLv73dWzsMzAoOc06IG1UMLRIxnSJvpae/2dggt5
 AThiDAOcXTVPxXaYpiNGyoYoFGWg9awJWz51obn2Tk92dJRHcZ+A5YY8QxzcEgkd1E56
 XacMJuJ3btoagDYy8poIV9B6J802dr+32773i1benH0GqcMINxTdfr2G3piztRWufsu2
 WKTgfJ6OmBpBZriQPVX9wuJaGVTcYot9QlEcbDKpVx02LnHG9R8B2FtWPSdgbiiDwJWp
 z08M66Jv39XIHqXzolfw7prjhUwtp6AYMxvdfHvgIbyqIE2yT8V+WYp8K6klUlFzhxRo
 scCA==
X-Gm-Message-State: AOJu0Yx+8lalLf/D7GdErMty655IT8J8wSNk/zHDLnQVTSbkfEEsGBX/
 xvgMNzLiNceDMu/JWvZMJCXWAXDe7V9S5X5N9aqQAjAki9JCo5thpF3aJkTqy6tm7PDFiOKKRd6
 DqbhTqiDZzKZF408hXi7ilhnlvYBtUIV1
X-Google-Smtp-Source: AGHT+IEJZkpIkMBmtVpvw7e57wXvBIuBH2WaSHpFUStvQME4GMSPG+5Go4pZI/Jvl8pfsFL84XPCysv/LYONIjdROHk=
X-Received: by 2002:ac2:58d6:0:b0:51a:f11c:b229 with SMTP id
 u22-20020ac258d6000000b0051af11cb229mr3278820lfo.25.1713741889956; Sun, 21
 Apr 2024 16:24:49 -0700 (PDT)
MIME-Version: 1.0
References: <CAAvCNcAKyzp7eMwcGa7_hRUiKkHP2YaBDko911jJunwBdZ9mKQ@mail.gmail.com>
 <608a6fa5-22e0-4b46-b1c9-9074be3aa1e1@Shaw.ca>
In-Reply-To: <608a6fa5-22e0-4b46-b1c9-9074be3aa1e1@Shaw.ca>
Date: Mon, 22 Apr 2024 01:24:21 +0200
Message-ID: <CAAvCNcCufFgHRokmARNYnC22mCDk9LyUt2WCm-rRAo0wqsYDVg@mail.gmail.com>
Subject: Re: DOS namespaces, accessible/walk-able as Admin via Cygwin?
To: cygwin@cygwin.com
X-Spam-Status: No, score=0.0 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 Sat, 20 Apr 2024 at 05:37, Brian Inglis via Cygwin <cygwin@cygwin.com> wrote:
>
> On 2024-04-19 17:09, Dan Shelton via Cygwin wrote:
> > 1. Windows has DOS namespaces per user, or per Logon.
> > Can anyone explain this from a Win32 API point of view how they are kept
> > separate?
>
> Ask on SuperUser *NOT* SO!

I cannot follow you. What should I do?

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

*THANKS*

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

Thanks.

Now where does the "1" in /proc/sys/Sessions/1/BaseNamedObjects come
from? Is there a Cygwin or Win32 API for that?

> Under MS Windows you can use Sysinternals WinObj64 to browse the hierarchy and
> objects.

What is that?

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
