Skip to content

Commit

Permalink
2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartjash committed Mar 7, 2024
1 parent e8a8e78 commit 3dc70ac
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions analysis/DatabaseParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,12 @@ class DatabaseParser: AftermathModule {
case unknown = "1"
case allowed = "2"
case limited = "3"
case addOnly = "4"
case appDataAllowed = "5"
}

enum TCCAuthReason: String, CaseIterable {
case inherited = "0"
case error = "1"
case userConsent = "2"
case userSet = "3"
Expand All @@ -292,9 +295,9 @@ class DatabaseParser: AftermathModule {
case entitled = "11"
case appTypePolicy = "12"
}

/*
Compiled from /System/Library/PrivateFrameworks/TCC.framework/Resources/en.lproj/Localizable.strings and https://rainforest.engineering/2021-02-09-macos-tcc/
Originally compiled from /System/Library/PrivateFrameworks/TCC.framework/Resources/en.lproj/Localizable.strings and https://rainforest.engineering/2021-02-09-macos-tcc/
*/
enum TCCService: String, CaseIterable {
// critical
Expand All @@ -312,6 +315,8 @@ class DatabaseParser: AftermathModule {

// file access
case adminFiles = "kTCCServiceSystemPolicySysAdminFiles"
case appData = "kTCCServiceSystemPolicyAppData"
case appManagement = "kTCCServiceSystemPolicyAppBundles"
case desktopFolder = "kTCCServiceSystemPolicyDesktopFolder"
case developerFiles = "kTCCServiceSystemPolicyDeveloperFiles"
case documentsFolder = "kTCCServiceSystemPolicyDocumentsFolder"
Expand All @@ -321,24 +326,25 @@ class DatabaseParser: AftermathModule {
// service access
case addressBook = "kTCCServiceAddressBook"
case appleEvents = "kTCCServiceAppleEvents"
case audioCapture = "kTCCServiceAudioCapture"
case availability = "kTCCServiceUserAvailability"
case bluetooth_always = "kTCCServiceBluetoothAlways"
case bluetoothAlways = "kTCCServiceBluetoothAlways"
case calendar = "kTCCServiceCalendar"
case camera = "kTCCServiceCamera"
case contacts_full = "kTCCServiceContactsFull"
case contacts_limited = "kTCCServiceContactsLimited"
case currentLocation = "kTCCServiceLocation"
case endpointSecurity = "kTCCServiceEndpointSecurityClient"
case fileAccess = "kTCCServiceFileProviderDomain"
case fileAccess_request = "kTCCServiceFileProviderPresence"
case icloudDriveAccess = "kTCCServiceFileProviderDomain"
case fileAccessPresence = "kTCCServiceFileProviderPresence"
case fitness = "kTCCServiceMotion"
case focus_notifications = "kTCCServiceFocusStatus"
case focusStatus = "kTCCServiceFocusStatus"
case gamecenter = "kTCCServiceGameCenterFriends"
case homeData = "kTCCServiceWillow"
case mediaLibrary = "kTCCServiceMediaLibrary"
case microphone = "kTCCServiceMicrophone"
case photos = "kTCCServicePhotos"
case photos_add = "kTCCServicePhotosAdd"
case photosAdd = "kTCCServicePhotosAdd"
case proto3Right = "kTCCServicePrototype3Rights"
case reminders = "kTCCServiceReminders"
case removableVolumes = "kTCCServiceSystemPolicyRemovableVolumes"
Expand Down

0 comments on commit 3dc70ac

Please sign in to comment.