What is SRV in MS RPC and what should I know about it?

梦想的初衷 提交于 2019-12-24 21:49:36

问题


This MSDN article about interface registration flags when describing the RPC_IF_ALLOW_LOCAL_ONLY flag talks about some entity called 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...

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?


回答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).

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.



来源:https://stackoverflow.com/questions/851294/what-is-srv-in-ms-rpc-and-what-should-i-know-about-it

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!