From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by sourceware.org (Postfix) with ESMTPS id 5CCA73858C5F for ; Mon, 22 Apr 2024 05:01:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5CCA73858C5F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSW.ab.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=SystematicSW.ab.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5CCA73858C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=216.40.44.16 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 Received: from omf11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id DD5EB806D3 for ; Mon, 22 Apr 2024 05:01:35 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: Brian.Inglis@SystematicSW.ab.ca) by omf11.hostedemail.com (Postfix) with ESMTPA id 741FE20029 for ; Mon, 22 Apr 2024 05:01:34 +0000 (UTC) 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 Reply-To: cygwin@cygwin.com Subject: Re: DOS namespaces, accessible/walk-able as Admin via Cygwin? Content-Language: en-CA To: cygwin@cygwin.com References: <608a6fa5-22e0-4b46-b1c9-9074be3aa1e1@Shaw.ca> From: Brian Inglis Organization: Systematic Software In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: On 2024-04-21 17:24, Dan Shelton via Cygwin wrote: > On Sat, 20 Apr 2024 at 05:37, Brian Inglis via Cygwin 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