.NET:regasm 和 caspol 取决于登录的用户

发布于 2024-08-31 04:17:23 字数 130 浏览 1 评论 0原文

当使用 regasmcaspol 注册程序集并授予信任时,这些实用程序在哪个用户帐户下执行是否重要?

是否会出现仅针对计算机或域上的某些用户注册和/或授予程序集信任的情况?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半步萧音过轻尘 2024-09-07 04:17:23

我相信 Regasm 必须由管理员运行。

Regasm 可以读取元数据
在程序集中并添加
注册表中的必要条目,
它允许 COM 客户端创建
.NET Framework 类透明。
一旦一个类被注册,任何 COM
客户端可以像使用类一样使用它
是一个 COM 类。

因此,Regasm 所做的一切都是为所有用户所做的。因此,不会,当使用 regasm 时,不会出现仅为计算机或域上的某些用户注册程序集的情况。

Caspol 可以由管理员以外的用户运行。

Caspol 使用户能够
管理员修改安全性
机器策略级别的策略,
用户策略级别,以及
企业政策层面。如果你不这样做
目前有行政
权限,您的默认视图是
用户查看。

安全策略级别列表,显示变化。

因此,Caspol 允许用户和机器特定的安全策略,并且运行 Caspol 的用户类型将会对可以实现的目标产生影响。所以,是的,当使用 Caspol 时,可能会出现程序集根据计算机和用户具有不同安全策略的情况。

I believe Regasm must be run by an administrator.

Regasm can read the metadata
within an assembly and adds the
necessary entries to the registry,
which allows COM clients to create
.NET Framework classes transparently.
Once a class is registered, any COM
client can use it as though the class
were a COM class.

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.

Caspol enables users and
administrators to modify security
policy for the machine policy level,
the user policy level, and the
enterprise policy level. If you do not
currently have administrative
permissions, your default view is the
Users view.

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.

疯了 2024-09-07 04:17:23

.Net 4.0 中还有这个新的安全模型

There is also this new security model in .Net 4.0.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文