X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 200DC384AB52
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1713762150;
	bh=4s1Qg4lW/j5D4K1u6g3WQc45VMPtxyK91u7r+FCugd8=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=UD6jz1HMvgF9l7jHr3MbXyICqnmZCSlUHy9GE5Cgyd6JoLMPv7USwo6WJLXzGmyVX
	 D7bFzn1U37Asdlhl4lGaArZKVgEOUMhjML/hnAWF2br9xiFPgKsjEU+6dvaV84Jlf/
	 04RaG0QV36vFRrG1tX7GHwxDX0clUz7rbrCwTw+A=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5CCA73858C5F
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5CCA73858C5F
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713762097; cv=none;
 b=JgsqStGanG2X9mYHX2dbrWZGXU3ld+hEIYtGfxQqwhBpY5Onn77VvvLGZslS2vvfb2KOZXVTXjUt5nXhZ7RKUWegGppelQe/uC5YCjlvIx56R/DDuFCTXR/T/TizadVKgmF4Ey0+cAZxyT0pPbyUmASn8U9WZyweFGLyFSYIHa0=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1713762097; c=relaxed/simple;
 bh=0rx1feAB9MNbFMa6btxqwiXFsRrMb9kZy+n5+Y3jAJE=;
 h=Message-ID:Date:MIME-Version:Subject:To:From;
 b=eLPaFUIRW/JHiVRg1/zcaSxp4RZW2Y5YmVSW0xsp/ic+fNmO7w9kAgPr3swCmnHr80fK0kwSOghxRkCv6loCxZDtk3OQzU+DkhtPk7NzMLW41NNuPtXqRDoT/DbRm2KHIO64R5+8neMAt4OwarPmKSsfhue9Lnd/EQZi8vnDXAo=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <0cac6601-21bb-4582-8326-6ce5d01d9f9b@SystematicSW.ab.ca>
Date: Sun, 21 Apr 2024 23:01:33 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: DOS namespaces, accessible/walk-able as Admin via Cygwin?
Content-Language: en-CA
To: cygwin@cygwin.com
References: <CAAvCNcAKyzp7eMwcGa7_hRUiKkHP2YaBDko911jJunwBdZ9mKQ@mail.gmail.com>
 <608a6fa5-22e0-4b46-b1c9-9074be3aa1e1@Shaw.ca>
 <CAAvCNcCufFgHRokmARNYnC22mCDk9LyUt2WCm-rRAo0wqsYDVg@mail.gmail.com>
Organization: Systematic Software
In-Reply-To: <CAAvCNcCufFgHRokmARNYnC22mCDk9LyUt2WCm-rRAo0wqsYDVg@mail.gmail.com>
X-Rspamd-Queue-Id: 741FE20029
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,
 SPF_PASS, TXREP,
 UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6
X-Stat-Signature: p7666szkputiuq8mxscfsnxd7qmqc9b8
X-Rspamd-Server: rspamout07
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX18+EAq80ftMRS+yZiawYDRaHYpNlZlZCUU=
X-HE-Tag: 1713762094-474086
X-HE-Meta: U2FsdGVkX19h6opmsg0Qn76QsLO9FT2qweF16IMsRo5J4h1Sq+4XiZTyS6RKIbjciHIxV1AvlnD8500cvBvWTWJiIKjwf68QL6xvqN6yMYJSDq3wyagF58frK5+vU61mwggf54qYnTIF/lOP6BmgDBcpz1/6/X/xUtvy/5DmyGDVGuNhjXQle8a8b0mBwR9HytbuW6UyLtvD8qWelPyRdlftUyZfEkoo2ag9zexr+RBsiJdeJp9kTXwtioNhX50LHukgX4W3KRvtQp1ccQB9lx6Tf8yw2GcjKLl8T0We6EcYw9yvp7aLMZhLfWS7G4jbAQka5FReVL1NSDxqofKxeO3RcKUHLXy5gY8h2uXJsfeJoBhBEPNbBDtMQjy8hOnExU2vKuD2pJTLBANEwCbZ//GhUmO4kRMgW7kLCTFyGY9glSy+bZRVdg==
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
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
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: Brian Inglis via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43M52WI3584975

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

You asked the same question on StackOverflow group and was told that was not the 
appropriate group - SuperUser is the appropriate StackOverflow group.

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

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

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


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

