Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
pirunxi committed Dec 15, 2023
1 parent 056a12e commit ee05ef2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Access control policy
# Access Control Policy

For some platform-based applications, they may load and execute code developed by third parties. If these third-party codes are not restricted, security risks may arise.
Access control mechanisms are used to control the set of functions that these third-party code can access.
Expand All @@ -13,22 +13,22 @@ Then you cannot call any function of that type, including class constructors (fu
<AccessPolicy>

<Rule id="DisableIO">
<assembly fullname="mscorlib">
<type fullname="System.IO.*"/> disable
<type fullname="System.IO.File" access="1"/> enable
</assembly>
<assembly fullname="mscorlib">
<type fullname="System.IO.*"/> disable
<type fullname="System.IO.File" access="1"/> enable
</assembly>
</Rule>

<Rule id="DisableReflection">
<assembly fullname="mscorlib">
<type fullname="System.Reflection.*"/>
</assembly>
<assembly fullname="mscorlib">
<type fullname="System.Reflection.*"/>
</assembly>
</Rule>

<Rule id="DisableHybridCLR">
<assembly fullname="HybridCLR.Runtime">
<type fullname="*"/>
</assembly>
<assembly fullname="HybridCLR.Runtime">
<type fullname="*"/>
</assembly>
</Rule>

<Target assembly="Tests2" accessAssemblyNotInRules="0" rules="DisableReflection,DisableIO,DisableHybridCLR"/>
Expand Down Expand Up @@ -65,8 +65,8 @@ In the same assembly, if there are multiple rules related to a certain type, the

```xml
<assembly fullname="mscorlib">
<type fullname="System.IO.*"/> disable
<type fullname="System.IO.File" access="1"/> enable
<type fullname="System.IO.*"/> disable
<type fullname="System.IO.File" access="1"/> enable
</assembly>
```

Expand Down Expand Up @@ -106,7 +106,7 @@ The sample code is as follows:
{
string accessPolicyDir = Application.dataPath + "/AccessPolicy";
AccessPolicyUtil.ConvertXmlAccessPolicyToBinaryAccessPolicy($"{accessPolicyDir}/AccessPolicy.xml",
$"{accessPolicyDir}/AccessPolicy.bytes");
$"{accessPolicyDir}/AccessPolicy.bytes");
}
```

Expand All @@ -120,8 +120,8 @@ The sample code is as follows:

void LoadAccessPolicy()
{
byte[] accessPolicyData = File.ReadAllBytes($"{Application.streamingAssetsPath}/AccessPolicy.bin");
RuntimeApi.LoadAccessPolicy(accessPolicyData);
byte[] accessPolicyData = File.ReadAllBytes($"{Application.streamingAssetsPath}/AccessPolicy.bin");
RuntimeApi.LoadAccessPolicy(accessPolicyData);
}

```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# introduce
# Introduce

We provide a variety of high-end commercial versions and flexibly customizable technical services to meet the needs of game projects in various application scenarios.

Expand All @@ -24,14 +24,14 @@ There are currently three commercial versions. The specific features are compare
|Supplemental Metadata|||||
|Incremental GC|||||
|Unity 2020-2022 LTS|||||
|Unity 2019 LTS|No longer supported from version 3.x||||
|Unity 2019 LTS|No longer supported since 3.x||||
|[Full Generic Sharing](./fullgenericsharing)|||||
|[Metadata Optimization](./metadataoptimization.md)|||||
|[Standard command optimization](./basiccodeoptimization)|||||
|[Standard code reinforcement](./basicencryption)|||||
|[Advanced code hardening](./advancedencryption)|||||
|[Hot reload](./reload/hotreloadassembly)|||||
|[访问控制机制](./accesspolicy)|||||
|[Access Control Policy](./accesspolicy)|||||
|[Advanced code optimization (experimental)](./advancedcodeoptimization)|||||
|[**DHE Technology**](./differentialhybridexecution)|||||
|Technical support||1 year|2 years|2 years|
Expand All @@ -46,7 +46,7 @@ If you ultimately abandon the purchase due to non-product factors, the trial fee
|Version|Price (RMB)|Description|
|-|-|-|
|Community Edition|0|Free|
|Professional Edition|Email Consultation Business|Buy out the right to use a project, including 1 year of technical support and 1 year of code updates|
|Professional Edition|E-mail business consultation|Buy out the right to use a project, including 1 year of technical support and 1 year of code updates|
|Hot reload version|E-mail business consultation|Buy out the right to use a project, including 2 years of technical support and 2 years of code updates|
|Ultimate version|E-mail consultation business|Buy out the right to use a project, including 2 years of technical support and 2 years of code updates|

Expand Down

0 comments on commit ee05ef2

Please sign in to comment.