X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 515253858282 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1714109006; bh=MiypqcXeWA9dbQMFLX0jL3bRLjjhOCk6cUCUxPputuo=; 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=sdONDYAE0TxurRCpkS4jQHfPTfndutRyVMvzyXQF8/nCfNiVPHSfTSErO+Vz+/G5G iUbBcQcL1iKHOicwHScCWXQGrNKCNZuAsv/kBLrds6it+KjYW1Zko68eusfNQy2X8M TyMB9MmLw69ALClO99D7vqYS9o7AaB7TkIeoI0rw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C7663858C50 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3C7663858C50 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 Message-ID: Date: Thu, 25 Apr 2024 23:23:00 -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 AT cygwin DOT com References: <608a6fa5-22e0-4b46-b1c9-9074be3aa1e1 AT Shaw DOT ca> <0cac6601-21bb-4582-8326-6ce5d01d9f9b AT SystematicSW DOT ab DOT ca> Organization: Systematic Software In-Reply-To: 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 43Q5NR8u2018003 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 -- 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