Skip to content

Commit

Permalink
Merge pull request #32 from aleksmaus/feature/elastic_agent_fda
Browse files Browse the repository at this point in the history
Add Elastic Agent to mobile config template
  • Loading branch information
ricardo-estc authored Oct 20, 2022
2 parents e8f43b9 + f439315 commit 19d9481
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions deployment/macos/mobiledevicemanagement/mobile_config_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
import argparse
import os

template = """
<?xml version="1.0" encoding="UTF-8"?>
template = """<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
Expand All @@ -38,6 +37,18 @@
<dict>
<key>SystemPolicyAllFiles</key>
<array>
<dict>
<key>Allowed</key>
<integer>1</integer>
<key>CodeRequirement</key>
<string>identifier "co.elastic.elastic-agent" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "2BT3HPN62Z"</string>
<key>Identifier</key>
<string>co.elastic.elastic-agent</string>
<key>IdentifierType</key>
<string>bundleID</string>
<key>StaticCode</key>
<integer>1</integer>
</dict>
<dict>
<key>Allowed</key>
<integer>1</integer>
Expand Down

0 comments on commit 19d9481

Please sign in to comment.