Set com.apple.security.cs.disable-library-validation=false in Hardened Runtime entitlement files
Categories
(Core :: Security: Process Sandboxing, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | wontfix |
People
(Reporter: haik, Assigned: haik)
References
Details
Attachments
(1 file, 1 obsolete file)
Now that the definition of the com.apple.security.cs.disable-library-validation
entitlement has changed (see attachment) to mean allow unsigned libraries when set to true, and require signed when false, we should change com.apple.security.cs.disable-library-validation
to false in our Hardened Runtime entitlement lists.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
I didn't mean to file this as a security bug. It's unlikely this could be used in an attack right now. It is security related.
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
The posted patch sets com.apple.security.cs.disable-library-validation=false in developer and production Hardened Runtime entitlements and (unrelated) updates comments for com.apple.security.cs.allow-dyld-environment-variables because @executable_path was not the type of dlyld variable affected.
I'll wait for bug 1570451 to be addressed in the Catalina Beta so we can test this on the latest macOS version.
Assignee | ||
Comment 5•6 years ago
|
||
Some additional context:
Our macOS builds enable Hardened Runtime and Notarization. With Hardened Runtime, the application is configured with a set of entitlements that control security settings. The entitlement com.apple.security.cs.disable-library-validation
recently changed to mean that when set to true, the application is permitted to load unsigned shared libraries. When set to false, shared libraries must be signed.
All our shared libraries shipped with Firefox are signed and system shared libraries are signed. Firefox processes have to load third party libraries for Flash and Widevine playback. Flash is signed. The Mac Widevine CDM is signed starting with version 4.10.1440.19 which is rolling out via bug 1566127 which is a dependency.
Comment 7•6 years ago
|
||
bugherder |
Comment 8•6 years ago
|
||
Backed out for breaking Netflix and Flash on Mac Nightly (as per request)
backout: https://hg.mozilla.org/mozilla-central/rev/aab73dbec4586b814066c09f96538f9e7ad235d0
Assignee | ||
Comment 9•6 years ago
•
|
||
I requested this be backed out for causing bug 1574213.
I was wrong and we can't set com.apple.security.cs.disable-library-validation=false
because that would require all loaded libraries to be codesigned with the same Apple developer team ID. I misread the updated docs and didn't realize that was the case. Flash and Widevine libs are not signed by Mozilla (they're signed by Adobe and Google respectively) and therefore can't be loaded with com.apple.security.cs.disable-library-validation=false
. I'll close this bug as invalid.
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Description
•