delorie.com/archives/browse.cgi | search |
DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 4AFFQcht1307184 |
Authentication-Results: | delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com |
Authentication-Results: | delorie.com; spf=pass smtp.mailfrom=cygwin.com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 delorie.com 4AFFQcht1307184 |
Authentication-Results: | delorie.com; |
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=IoDrrW0k | |
X-Recipient: | archive-cygwin AT delorie DOT com |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org E356F3858405 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
s=default; t=1731684395; | |
bh=JEVSRFq7Ff/YngFt7fl0s9EfijzR6zMqMQoVRyJrtAU=; | |
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: | |
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: | |
From; | |
b=IoDrrW0k3ai1f6bQBnhaUhCj/vaV0LnRAnreJy/IkPPtSHZwjKZ9Q9F8mu2QnlBYS | |
ld18JIHxsPUZcOweUmmvyQA723EjDHXxaiEFjHfKzX4IgOanlCOUyJNZ0XDgwxJW1Y | |
2rVcmv7aoawIhPFD7WPLLhS2qE5eugq72h8xWBwg= | |
X-Original-To: | cygwin AT cygwin DOT com |
Delivered-To: | cygwin AT cygwin DOT com |
DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org B5C393858D3C |
ARC-Filter: | OpenARC Filter v1.0.0 sourceware.org B5C393858D3C |
ARC-Seal: | i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731684087; cv=none; |
b=NVydXbGHT9MYiaZBC5IyEE9KnmQjYU7Ma8WadSLGaHzfeVQuQk+qtwgNd09O09G55fnPUXseSopLxZ76FHSEa5gv5DQrBOZcFG1Gz3VJMCS7OBLfPlhIyz8gKmIS57XGYVJC7xa8Ifb5nFRMa0hxjm8c7FWB2f2VvdTUo6U6ShQ= | |
ARC-Message-Signature: | i=1; a=rsa-sha256; d=sourceware.org; s=key; |
t=1731684087; c=relaxed/simple; | |
bh=hL5CQm/odIdHvJYOkhN+65tE3yCh9AyX7YOVKZrbeW4=; | |
h=Date:From:To:Subject:Message-Id:Mime-Version:DKIM-Signature; | |
b=dCP76BKOCEOVAkGa0ki7tydpe0XdVJvJ8sE8oX6b9fbFgLYRjNkNXcb1Y6RikhB+V68l08MMdjTDXYPVFDEBrJwnTLwxl8zTaE71bBeVYyhzTEeRCz9wQN26MQ7/zmNj1eQGxpRL37CJdbAl7DEBGQrPY2ZPn5eiMaVuWNowITk= | |
ARC-Authentication-Results: | i=1; server2.sourceware.org |
DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org B5C393858D3C |
Date: | Sat, 16 Nov 2024 00:21:22 +0900 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: SMBFS mount's file cannot be made executable |
Message-Id: | <20241116002122.3f4fd325a497eb4261ad80f4@nifty.ne.jp> |
In-Reply-To: | <20241114010807.99f46760b2240d472440c329@nifty.ne.jp> |
References: | <20241111193152 DOT c3a81044a03ecf2093185166 AT nifty DOT ne DOT jp> |
<ZzHizX_6FXABDPvZ AT calimero DOT vinschen DOT de> | |
<20241111201928 DOT 811a2f8f09142b7aa8fe9bdc AT nifty DOT ne DOT jp> | |
<20241111203202 DOT b22bcf4f9030aff58299fe0e AT nifty DOT ne DOT jp> | |
<20241111204051 DOT 493f12208bb59d62b699dd28 AT nifty DOT ne DOT jp> | |
<ZzHyhoWnNvkTQYW- AT calimero DOT vinschen DOT de> | |
<20241111211953 DOT 605b186566ce3a44ca929788 AT nifty DOT ne DOT jp> | |
<ZzIIO2NxmdYpox2A AT calimero DOT vinschen DOT de> | |
<20241112042937 DOT 740185a42d476993b4b1e31c AT nifty DOT ne DOT jp> | |
<20241112175427 DOT 750ae77a8086594a765862c5 AT nifty DOT ne DOT jp> | |
<ZzNCXz3o9k40U9zA AT calimero DOT vinschen DOT de> | |
<20241113181755 DOT 02289e8e8d9af7e19e8f4387 AT nifty DOT ne DOT jp> | |
<CANV9t=SvYedzG-LmECwdT7kjipOyhgwsZ1yucnTm8mWMnNkJVw AT mail DOT gmail DOT com> | |
<20241114003740 DOT e573d7ec79d35da76225c9f1 AT nifty DOT ne DOT jp> | |
<CANV9t=TLh8xD7KBsF-MucZWNjP-L0KE04xUv2-2e=Z5fXTjk=w AT mail DOT gmail DOT com> | |
<20241114010807 DOT 99f46760b2240d472440c329 AT nifty DOT ne DOT jp> | |
X-Mailer: | Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) |
Mime-Version: | 1.0 |
X-BeenThere: | cygwin AT cygwin DOT com |
X-Mailman-Version: | 2.1.30 |
List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
List-Unsubscribe: | <https://cygwin.com/mailman/options/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe> | |
List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
From: | Takashi Yano via Cygwin <cygwin AT cygwin DOT com> |
Reply-To: | Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> |
Errors-To: | cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com |
Sender: | "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 4AFFQcht1307184 |
On Thu, 14 Nov 2024 01:08:07 +0900 Takashi Yano wrote: > On Wed, 13 Nov 2024 08:58:21 -0700 > Bill Stewart wrote: > > On Wed, Nov 13, 2024 at 8:38 AM Takashi Yano via Cygwin wrote: > > > > Thanks. However, even after reading the document, I still didn't > > > understand what strings I should set the members for auth for SMB... > > > > > > For example, as for Endpoint, the example for ncacn_np is mentioned, > > > but not for ncacn_ip_tcp. > > > > > > > Perhaps this might help? > > > > https://learn.microsoft.com/en-us/windows/win32/rpc/string-binding > > Thanks! I do not read it yet, however, it seems to help much. I built a test program, whose important part is: AUTHZ_RESOURCE_MANAGER_HANDLE hManager = NULL; AUTHZ_CLIENT_CONTEXT_HANDLE hClient = NULL; AUTHZ_ACCESS_REQUEST AccessRequest = {0}; AUTHZ_ACCESS_REPLY AccessReply = {0}; AUTHZ_RPC_INIT_INFO_CLIENT authzRpcInitInfoClient = {0}; WCHAR ObjectUuid[] = L"9a81c2bd-a525-471d-a4ed-49907c0b23da"; WCHAR ProtSeq[] = L"ncacn_ip_tcp"; WCHAR NetworkAddr[] = L"localhost"; WCHAR Endpoint[] = L"135"; authzRpcInitInfoClient.version = AUTHZ_INIT_INFO_VERSION_V1; authzRpcInitInfoClient.ObjectUuid = ObjectUuid; authzRpcInitInfoClient.ProtSeq = ProtSeq; authzRpcInitInfoClient.NetworkAddr = NetworkAddr; authzRpcInitInfoClient.Endpoint = Endpoint; AuthzInitializeRemoteResourceManager (&authzRpcInitInfoClient, &hManager); char buf[1024]; PTOKEN_USER pTokenUser = (PTOKEN_USER) buf; DWORD len; GetTokenInformation(hToken, TokenUser, pTokenUser, 1024, &len); LUID luid = {0,}; AuthzInitializeContextFromSid(0, pTokenUser->User.Sid, hManager, NULL, luid, NULL, &hClient); This test code fails at AuthzInitializeContextFromSid() with RPC_S_UNKNOWN_IF. If AuthzInitializeRemoteResourceManager() is replaced with AuthzInitializeResourceManager(), the error does not occur. I searched the combination of AuthzInitializeContextFromSid() and RPC_S_UNKNOWN_IF, however nothing was found. Any suggestion would be appreciated. -- Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |