X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=R48lz7ied7FkPhSOemmNdlGVoTSlmeQ8bberXTQFGgizU3nbBq0AY
	bh9WwC36V1PkwjabR3BxHsWGVTrTfpqv5/ZdXk8XD2X/wZRXjqeHFGgh2QaSfCoP
	WeFJeqGzwPxAEacsG1Bnwa2+L5qIln9KrkZx1Av83hKbRZsfDC5OaM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=aBOMzg+qQBx35N0wuXdQa7yeWjw=; b=K2UsV2FfKVf7EWwq7lEo64mo2/td
	ttJrFGTQDZm1SFyUCTDLuswI4TWxvOHEQSbNovKmtYu14Hh2V8RL0rybWwSIGQeq
	kzvuD8xoiHZxfcRRt8E6nmZh6RhRIFjOGmaC5UXDbvLed3P/LWEw8MIMe1nxWK2Q
	W5MvdQl1ZZJGt/c=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-100.9 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Hx-languages-length:1401, translate, clue
X-HELO: mout.kundenserver.de
Date: Thu, 14 Feb 2019 14:39:35 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: More information: Problem with cygserver (LookupAccountSid()) -- interlocking with its clients
Message-ID: <20190214133935.GF30859@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <BL0PR0901MB3236F65D1142A703D5719B9BA5660@BL0PR0901MB3236.namprd09.prod.outlook.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="udcq9yAoWb9A4FsZ"
Content-Disposition: inline
In-Reply-To: <BL0PR0901MB3236F65D1142A703D5719B9BA5660@BL0PR0901MB3236.namprd09.prod.outlook.com>
User-Agent: Mutt/1.10.1 (2018-07-13)

--udcq9yAoWb9A4FsZ
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 13 21:56, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin wrote:
> I was trying to figure out what SID cygserver was trying to access...
>=20
> When I run ipcs without cygserver running, I see this SID is being retrie=
ved successfully:
>=20
>   359 2451151 [main] ipcs 10404 pwdgrp::fetch_account_from_windows:
>   line: <CurrentSession:S-1-5-5-0-82109179:4095:>

This is the output from ipcs process startup where Cygwin fetches
all token info.  ipcs is fetching its own logon SID which is
always translated into the above group entry with gid 4095.

> When I run ipcs with cygserver, the SID, which looks very similar,
> gives the errors and delays (it appears in the same order of
> successful retrievals w/o cygserver, among other SIDs):
>=20
> 5760469 59211317 [unknown (0x14F8)] cygserver 6848 pwdgrp::fetch_account_=
from_windows: LookupAccountSid(S-1-5-5-0-82109179), Win32 error 1332

Cygserver is running as service here and is not part of that
session, so it doesn't know the login SID.  However, the code
inside pwdgrp::fetch_account_from_windows should translate this
into

  line: <OtherSession:S-1-5-5-0-82109179:4094:>

But even if that doesn't work as desired, it doesn't explain the 5secs
delay on these machines.  I don't se any clue here, sorry.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--udcq9yAoWb9A4FsZ
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlxlb5cACgkQ9TYGna5E
T6C6og/9GCkuKVfDcrqdE5Oqv6sNUvVEtQ/sp3UYNvCNuGjbiPvinfGeWFUGvSdE
wAbdcVkYwt8USTjyKWRhyRzKsUwtecgoo0Aqck4UiJmcYccshK4Gpde4CLkVfvCm
jZh5ZUgqbn9oB6+/ER6ke0DI5AqLQ/vm2MnEZLzlKXwxbEGxVXdwW/OA7+hGvHpI
DsgnOCbYpFdAcvHE/xRBZmTY+O9KDNfCVf9Ywb5uYEk3Ek4rSLFLMjjSnh3tsxTh
EptBK3mClMkDc5RVWqqm+NesFq39AeEkoHNBlPvtGv2u9LsbpZ6dQ6hI+hDKqvIZ
vm2254GEGWi+mdOgmcthiXHTk8OgI5S7XGvqnoBk4rfD1+EfWBC9yTu6I3uLolqC
baxJSQD2Ak7/v3RvykFQcKZfs4ghST9jo8LkzpXne9prslaKQ1QNMsHdzTGUEP+d
scfqE383qj89qpXRLBrl6tl5HyS71Uy9F3Baa9nhmybZUxhv208KFbTdBsLq74yZ
/pupuaLovWshJAPKva4vBnHdMfuFtMysI6Y3X0cmowQxwLIUi384YIEVMSQ+Ryzp
bekVMDIWQDv77PfrPVATAHpMnmtd3uzqHelal7Iyqo0HMICzF/sVrnKljcT1JNYk
5MjYNlB7T0awepMNGOKIgaQ4EztHuOhtHoyV0IBzOIb4VqrHTX4=
=xf4R
-----END PGP SIGNATURE-----

--udcq9yAoWb9A4FsZ--
