-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename macos planner to macos/mod * Clean up some clippy notes about specifying truncate * Add types for parsing macOS system profiles * Error on SUIS * Dump all profiles * Clean up errors * fixup: emit multiple errors on suis blocks * Clean up the error after user input * Nit on phrasing in warn * tpot -> blocking_policy * slice * Add a description to the fail pilst * Move around deck chairs * Disable GHA cache * clean up the query * profile sample: fail -> block * less technical * Link to a det.sys page that talks more about internal disks (tbd) * Update src/planner/macos/profiles.rs Co-authored-by: Cole Helbling <[email protected]> * Expand the errorr message again * Test unknown does not error --------- Co-authored-by: Cole Helbling <[email protected]>
- Loading branch information
Showing
15 changed files
with
474 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?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> | ||
<!-- The user's username OR the string literal _computerlevel --> | ||
<key>foo</key> | ||
<array> | ||
<dict> | ||
<!-- Show the following data (if set, they're not required) to contextualize the issue: --> | ||
<key>ProfileDescription</key> | ||
<string>The description</string> | ||
<key>ProfileDisplayName</key> | ||
<string>Don't allow mounting internal devices</string> | ||
<key>ProfileIdentifier</key> | ||
<string>MyProfile.6F6670A3-65AC-4EA4-8665-91F8FCE289AB</string> | ||
<key>ProfileInstallDate</key> | ||
<string>2024-04-22 14:12:42 +0000</string> | ||
<key>ProfileType</key> | ||
<string>Configuration</string> | ||
<key>ProfileUUID</key> | ||
<string>6F6670A3-65AC-4EA4-8665-91F8FCE289AB</string> | ||
<key>ProfileVersion</key> | ||
<integer>1</integer> | ||
|
||
|
||
<key>ProfileItems</key> | ||
<array> | ||
<dict> | ||
<!-- Look for an entry which has PayloadType as follows ... --> | ||
<key>PayloadType</key> | ||
<string>com.apple.systemuiserver</string> | ||
|
||
<key>PayloadContent</key> | ||
<dict> | ||
<key>mount-controls</key> | ||
<dict> | ||
<key>harddisk-internal</key> | ||
<array> | ||
<!-- | ||
This could be one of the following: | ||
authenticate: The user is authenticated before the media is mounted. | ||
read-only: The media is mounted as read-only; this action cannot be combined with unmount controls. | ||
deny: The media isn't mounted. | ||
eject: The media isn't mounted and is ejected, if possible. Note that some volumes aren't defined as ejectable, so using the deny key may be the best solution. This action cannot be combined with unmount controls. | ||
We should fail ahead of time if this list contains read-only, deny, or eject. | ||
--> | ||
<string>deny</string> | ||
</array> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</array> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?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> | ||
<key>_computerlevel</key> | ||
<array> | ||
<dict> | ||
<key>ProfileDescription</key> | ||
<string></string> | ||
<key>ProfileDisplayName</key> | ||
<string>macOS Software Update Policy: Mandatory Minor Upgrades</string> | ||
<key>ProfileIdentifier</key> | ||
<string>com.example</string> | ||
<key>ProfileInstallDate</key> | ||
<string>2024-04-22 00:00:00 +0000</string> | ||
<key>ProfileItems</key> | ||
<array> | ||
<dict> | ||
<key>PayloadContent</key> | ||
<dict> | ||
<key>AllowPreReleaseInstallation</key> | ||
<false/> | ||
<key>AutomaticCheckEnabled</key> | ||
<true/> | ||
</dict> | ||
<key>PayloadIdentifier</key> | ||
<string>abc123</string> | ||
<key>PayloadType</key> | ||
<string>com.apple.SoftwareUpdate</string> | ||
<key>PayloadUUID</key> | ||
<string>def456</string> | ||
<key>PayloadVersion</key> | ||
<integer>1</integer> | ||
</dict> | ||
</array> | ||
<key>ProfileRemovalDisallowed</key> | ||
<string>true</string> | ||
<key>ProfileType</key> | ||
<string>Configuration</string> | ||
<key>ProfileUUID</key> | ||
<string>F7972F85-2A4D-4609-A4BB-02CB0C34A3F8</string> | ||
<key>ProfileVerificationState</key> | ||
<string>verified</string> | ||
<key>ProfileVersion</key> | ||
<integer>1</integer> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
Oops, something went wrong.