Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src-tauri/src/notices/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,19 @@ fn tool_rule_name(rule: &str) -> String {
"Send out a credential file (verb first)",
),
"ssh-key-read" => ("读取私钥或云凭据", "Read a private key or cloud credential"),
"secret-to-unknown-host" => ("凭据发往陌生主机", "Send a credential to an unknown host"),
"thinkwatch-data" => (
"读写 ThinkWatch 自己的数据",
"Read or change ThinkWatch's own data",
),
"write-startup-item" => ("写入启动项", "Write a startup item"),
"crontab-install" => ("安装定时任务", "Install a scheduled job"),
"rm-rf-root" => ("删除主目录或根目录", "Delete home or root"),
"chmod-777" => ("开放全部写权限", "World-writable permissions"),
"upload-file-to-host" => (
"上传本地文件到外部主机",
"Upload a local file to an external host",
),
other => return other.to_string(),
};
tr!(zh, en).to_string()
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/core.zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
"crontab-install": "安装定时任务,或删除全部现有定时任务",
"ssh-key-read": "读取私钥或云服务凭据",
"secret-to-unknown-host": "将凭据发往既非本机、也不是该凭据服务商的主机",
"thinkwatch-data": "读写 ThinkWatch 的数据目录,其中以明文保存全部上游密钥和这几项防护的设置",
"upload-file-to-host": "将本地文件的内容上传到外部主机"
},
"source_in": {
Expand Down Expand Up @@ -137,6 +138,7 @@
"rm-rf-root": "删除主目录或根目录",
"chmod-777": "开放全部写权限",
"secret-to-unknown-host": "凭据发往陌生主机",
"thinkwatch-data": "读写 ThinkWatch 自己的数据",
"upload-file-to-host": "上传本地文件到外部主机"
},
"content_rule": {
Expand Down
3 changes: 3 additions & 0 deletions src/security/labels.i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export const securityLabelsText = messages(
builtin: {
"credential-to-network": "凭据发往本机和该凭据的服务商以外的主机",
"file-to-network": "本地文件的内容上传到外部主机",
"thinkwatch-data": "路径或命令指向 ThinkWatch 的数据目录;只是提到不算",
} as Record<string, string>,
/** 没见过的检查名 */
builtinOther: "由内置检查判断",
Expand Down Expand Up @@ -248,6 +249,7 @@ export const securityLabelsText = messages(
"rm-rf-root": "Delete home or root",
"chmod-777": "World-writable permissions",
"secret-to-unknown-host": "Send a credential to an unknown host",
"thinkwatch-data": "Read or change ThinkWatch's own data",
"upload-file-to-host": "Upload a local file to an external host",
},
matcher: {
Expand Down Expand Up @@ -283,6 +285,7 @@ export const securityLabelsText = messages(
builtin: {
"credential-to-network": "A credential sent to a host other than this machine and the credential's provider",
"file-to-network": "The contents of a local file uploaded to an external host",
"thinkwatch-data": "A path or command that points into ThinkWatch's data directory; a mention does not count",
},
builtinOther: "Decided by a built-in check",
cnMobilePhone: (code: Code) => (
Expand Down
Loading