Open Bug 1622486 Opened 6 years ago Updated 3 years ago

[macOS] Dedupe Mac sandbox policy files

Categories

(Core :: Security: Process Sandboxing, enhancement, P4)

76 Branch
Unspecified
macOS
enhancement

Tracking

()

Tracking Status
firefox76 --- affected

People

(Reporter: haik, Assigned: haik)

Details

Now that we've added socket and RDD macOS sandbox policies, our policies in security/sandbox/mac/SandboxPolicy*.h contain some duplication. For example, SandboxPolicyContent.h, SandboxPolicyUtility.h, SandboxPolicySocket.h, and SandboxPolicyGMP.h have many of the same basic rules for logging, crash port, and app dir arguments and system library directories. We could have a common policy file including all the rules we need for all processes, and then process-specific policy files which are appended to the common policy at build time. This would be less error prone and ease maintenance to policies.

Assignee: nobody → haftandilian
Severity: normal → minor
Priority: -- → P4
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.