Commit 1bc56d57 authored by Mark Mentovai's avatar Mark Mentovai

Update rules2 in app_resource_rules.plist.in to a set of rules that ought to...

Update rules2 in app_resource_rules.plist.in to a set of rules that ought to work on 10.9.5 and 10.10, with the latest Gatekeeper policy changes.

This removes the “nested” tag from the live versioned directory, so that
it will be treated as data instead of code. There are problems with
“nested” validation of unversioned frameworks. There are other problems
with “nested” allowing components to be replaced, although these can be
overcome by creatively applying designated requirements to the nested
components. The non-“nested” version allows us to not version the
frameworks, which would introduce symbolic links and weaken v1 code
signature validation as done by pre-10.9 systems because v1 code
signatures do not consider symbolic links. This non-“nested” version is
also the simplest change to the existing set of resource rules that
works. The v2 rules2 dictionary is now identical to the v1 rules
dictionary.

In order for rules2 to be honored and for a v2 signature to be produced,
the app must be signed on 10.9 or later. (This will also produce a v1
signature to be validated on pre-10.9 systems.)

BUG=399276
R=rsesek@chromium.org

Review URL: https://codereview.chromium.org/533943003

Cr-Commit-Position: refs/heads/master@{#293142}
parent a6eeda84
......@@ -68,8 +68,6 @@
</dict>
<key>^Versions/@VERSION_REGEX@/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
......@@ -80,6 +78,20 @@
<key>weight</key>
<real>30</real>
</dict>
<key>^Versions/@VERSION_REGEX@/.+/Resources/.+\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>30</real>
</dict>
<key>^Versions/@VERSION_REGEX@/.+/Resources Disabled/</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>40</real>
</dict>
<key>/\.DS_Store$</key>
<dict>
<key>omit</key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment