.NET:regasm 和 caspol 取决于登录的用户
当使用 regasm
和 caspol
注册程序集并授予信任时,这些实用程序在哪个用户帐户下执行是否重要?
是否会出现仅针对计算机或域上的某些用户注册和/或授予程序集信任的情况?
When using regasm
and caspol
to register and grant trust to assemblies, will it matter under which user account these utilties are executed?
Could there arise a situation where assemblies are registered and/or granted trust only for certain users on a machine or domain?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信 Regasm 必须由管理员运行。
因此,Regasm 所做的一切都是为所有用户所做的。因此,不会,当使用 regasm 时,不会出现仅为计算机或域上的某些用户注册程序集的情况。
Caspol 可以由管理员以外的用户运行。
安全策略级别列表,显示变化。
因此,Caspol 允许用户和机器特定的安全策略,并且运行 Caspol 的用户类型将会对可以实现的目标产生影响。所以,是的,当使用 Caspol 时,可能会出现程序集根据计算机和用户具有不同安全策略的情况。
I believe Regasm must be run by an administrator.
Therefore, whatever is done with Regasm will be done for all users. So no, when using regasm there won't be a situation where assemblies are registered only for certain users on a machine or domain.
Caspol can be run by users other than administrators.
A list of the Security Policy Levels, shows the variations.
Therefore, Caspol allows user and machine specific security policies, and the type of user running Caspol will have an impact on what can be achieved. So yes, when using Caspol there can be a sitation where assemblies have a different security policy based on machine and user.
.Net 4.0 中还有这个新的安全模型。
There is also this new security model in .Net 4.0.