From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by sourceware.org (Postfix) with ESMTPS id 3C7663858C50 for ; Fri, 26 Apr 2024 05:23:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C7663858C50 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 3C7663858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=216.40.44.12 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714108984; cv=none; b=h76RRyak869Ot3WRrEf9n054FLRv22IfVNtCYEULnMTN/9xnHfz88Jv+4SCkbdLh7kQPT3vpCjZ0iVF6Zp+KoQSxEPJd1HwqVe9eXNAdPMWCKs0xjbchbfzttt9jLuIhlKIx8DAweaHZI1OW4cFq0AdjH165uYdL0pJwGMuaOU4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714108984; c=relaxed/simple; bh=CPsLmeAh8Iug3D+HEctLWracmeqWcBqz7ZzZ5MyLSqw=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=AmeooLZtpp5Wpud+io+DVQYT8qXi+wwjh3x+VeggGxtPVERXkxUhjP1XzL5ulwKza99Rag4rVH1uUU1XKTXBLxro7ZCOFls7fK3azSVvgzabp91zKu6lnspUKVlXoY3LPTzHRfz5fIoNTm1A5vQlCxXX06oBFaCK1NB0irhNOBI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from omf06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id B41931C0330 for ; Fri, 26 Apr 2024 05:23:02 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: Brian.Inglis@SystematicSW.ab.ca) by omf06.hostedemail.com (Postfix) with ESMTPA id 4E62D20010 for ; Fri, 26 Apr 2024 05:23:01 +0000 (UTC) Message-ID: Date: Thu, 25 Apr 2024 23:23:00 -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> <0cac6601-21bb-4582-8326-6ce5d01d9f9b@SystematicSW.ab.ca> From: Brian Inglis Organization: Systematic Software In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Stat-Signature: zm3jwguhcackk3umubqgh6fi8ackyi4g X-Rspamd-Server: rspamout03 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Rspamd-Queue-Id: 4E62D20010 X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1/py1nXGmsqJGbLZ4OK6wGh1a3cmoLl1kA= X-HE-Tag: 1714108981-800363 X-HE-Meta: U2FsdGVkX1/rSsCu5XQdRFbv7Qr4V/RMSvbREuWz+kN7nNk/pdPxTz9xrQ7RK37a8DGq1jJMt735JJhxhAPYLGicADJfHOVif+892oE1mPMQAhy1srgaNwPw9LkxwMDIc1feTC905cllBx/0iFovVIowOZPiowJV+v+R50Vq6UE3ezIk+q6tRq54giUi82M13g0Hx77j954SE1NYNxg9fQqCrtELj4HwJMHPMZViXjw2WQYx+80IygfD25Mnv77Nt+4aws+ulNp9iTVRACKIJQfuq1BWtvIZ4/xpNAxDSQU2xg34cFyIwJ/sK7qLXLZSrzNQX8Vf2fHcWm/F+vjTQ5B7zYO5EBiSeCxDmTBC75Rw2x3xuLLQgw== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2024-04-25 19:45, Dan Shelton via Cygwin wrote: > On Mon, 22 Apr 2024 at 07:01, Brian Inglis via Cygwin wrote: >> On 2024-04-21 17:24, Dan Shelton via Cygwin wrote: >>> On Sat, 20 Apr 2024 at 05:37, Brian Inglis via Cygwin 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? There really does not appear to be a "DOS" namespace, rather there are a bunch of legacy object names in the namespaces which may be used by console and GUI programs to access and operate on the underlying objects, possibly also using legacy 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? > > Building knowledge, learning, and debugging actual code. Have a look at the object hierarchies either using a Cygwin tree browser or the winobj64 object browser to see what is actually out there and their properties. The Cygwin all-volunteer spare time project's interest is in using newlib libc and Windows APIs to provide Unix functionality, to relevant POSIX standards if available and appropriate. For anything else you should consult the available project documentation in the cygwin-doc package or online, in the newlib-cygwin/winsup/cygwin C++ source code providing the emulation, any MS Windows documentation that the vendor cares to make available, and perhaps other MS Windows emulation based open source projects like Wine, mingw64, msys2, etc. -- 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