File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,3 +35,6 @@ payload/bundle/...
3535mtime、mode、tar header種別を固定します。symlink、hard link、device、FIFO、
3636PAX/GNU拡張、絶対path、` . ` 、` .. ` 、backslash、NUL、重複path、
3737未知top-level entryは拒否対象です。
38+
39+ ` signature.service ` の検証転送上限に合わせ、` msign package verify ` と
40+ ` msign certificate obtain ` は256MiBを超えるMPKGを拒否します。
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ msign package sign \
2525
2626``` text
2727inputがMPKG v1
28+ MPKGがsignature.serviceの256MiB上限内
2829manifest.tomlが一意
2930developer.certがMCER v1
3031application.key由来の公開鍵とcertificate Subject公開鍵の一致
@@ -57,3 +58,6 @@ kome verify dist/Example.mpkg \
5758 --issuer-public-key root.pub \
5859 --unix-time 1750000000
5960```
61+
62+ ローカル検証でも256MiBを超えるMPKGは拒否します。これはmochiOS上の
63+ ` signature.service ` が受け付けるpackage転送上限と同じです。
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ dist/Example-unsigned.mpkg
3030
3131生成されるMPKGは32 byte headerと無圧縮ustar streamで構成されます。
3232` signatures/ ` は署名前には存在しなくても構いません。
33+ ` msign package verify ` と` msign certificate obtain ` は、mochiOS上の
34+ ` signature.service ` と同じ256MiB上限を事前に適用します。
3335
3436Developer CertificateはCloud ConsoleまたはDeveloperCA APIから取得します。
3537初期実装ではConsole併用が有効な運用です。
@@ -226,6 +228,7 @@ msign package verify app.mpkg --issuer-public-key root.pub --unix-time 175000000
226228- package scope外、Capability外、期限外のCertificateでは署名しない
227229- 既に署名済みのMPKGは既定で再署名しない
228230- path traversal、symlink、hard link、device、FIFO、PAX/GNU拡張を拒否する
231+ - OS側の検証転送上限に合わせ、256MiBを超えるMPKGを拒否する
229232
230233## Install
231234
You can’t perform that action at this time.
0 commit comments