什么是MS RPC中的SRV,我应该知道什么?

时间:2022-09-11 10:32:34

This MSDN article about interface registration flags when describing the RPC_IF_ALLOW_LOCAL_ONLY flag talks about some entity called SRV:

这篇关于描述RPC_IF_ALLOW_LOCAL_ONLY标志时的接口注册标志的MSDN文章讨论了一些名为SRV的实体:

...When this interface flag is registered, the RPC runtime rejects calls made by remote clients. ... RPC allows ncacn_NP calls only if the call does not come from SRV...

...注册此接口标志时,RPC运行时拒绝远程客户端发出的调用。 ...只有当呼叫不是来自SRV时,RPC才允许ncacn_NP呼叫...

I've looked through the RFC 2782 and still don't get it. What is SRV in the first place and how can I judge if calls come from it or some other way?

我查看了RFC 2782但仍然没有得到它。首先是什么是SRV,如何判断呼叫是来自它还是其他方式?

1 个解决方案

#1


SRV.SYS is the SMB server driver. What the article is saying is that named pipe requests are allowed unless they come from that driver (i.e., unless they originate from somewhere other than the local machine).

SRV.SYS是SMB服务器驱动程序。文章所说的是,除非来自该驱动程序,否则允许命名管道请求(即,除非它们来自本地机器以外的某个地方)。

That makes sense since you're registering your server to accept local connections only. You don't want named pipe connections sneaking in over the network.

这是有道理的,因为您注册的服务器只接受本地连接。您不希望命名管道连接通过网络潜入。

This page details the use of named pipes over SMB.

此页面详细介绍了在SMB上使用命名管道的情况。

#1


SRV.SYS is the SMB server driver. What the article is saying is that named pipe requests are allowed unless they come from that driver (i.e., unless they originate from somewhere other than the local machine).

SRV.SYS是SMB服务器驱动程序。文章所说的是,除非来自该驱动程序,否则允许命名管道请求(即,除非它们来自本地机器以外的某个地方)。

That makes sense since you're registering your server to accept local connections only. You don't want named pipe connections sneaking in over the network.

这是有道理的,因为您注册的服务器只接受本地连接。您不希望命名管道连接通过网络潜入。

This page details the use of named pipes over SMB.

此页面详细介绍了在SMB上使用命名管道的情况。