From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id CA1E63858D1E for ; Sun, 21 Apr 2024 23:24:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA1E63858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CA1E63858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::133 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 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-51ac9c6599bso2910180e87.1 for ; Sun, 21 Apr 2024 16:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713741890; x=1714346690; darn=cygwin.com; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=Ma1h9qPuojD4sNnjxgzd0WexG0EsXCUghps3lIUt7Ws=; b=VFBpFNeFo3+wevJuLqTZMRBgCDDsPyNLKu1czln0I/EpElquUPGKTDYQ27Q6rCTKse 4Gt9lFr130K/BNfz3Y9gMHByRfLUe4iDdg/r8A6u9a7soOO5BImq4/HGqwvXdKdrLQb+ eJ5jdw4SrJWmk26v7ddVAQyDlyrsxNje7KOYFB0SB9+M8+ijtflsms+5mQ27VWq/TOWh YRIjZfP6i/rlf6/EXIoLJ6IGh6qAYrC1Wmde7wdHJ5KX+oKGtgA/HVDTgQ8geIHNb6R9 /uqeoG1z7ucD0xB88FqHzYudGgt8vKolvNK++Ec/ywQ4Rhr019vLUuMoK02v329GG64u lCkg== 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: <608a6fa5-22e0-4b46-b1c9-9074be3aa1e1@Shaw.ca> In-Reply-To: <608a6fa5-22e0-4b46-b1c9-9074be3aa1e1@Shaw.ca> From: Dan Shelton Date: Mon, 22 Apr 2024 01:24:21 +0200 Message-ID: Subject: Re: DOS namespaces, accessible/walk-able as Admin via Cygwin? To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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 List-Id: 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? > > > 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