[TCC]位置情報 locationd とLiverpoolからアプリケーションを指定して削除
| 固定リンク
| 固定リンク
| 固定リンク
| 固定リンク
| 固定リンク
『自分がいる場所』なわけで
セキュリティと言うより、『プライバシー』の問題です。
そのため、セキュリティ設定的にはちょっと厳しめです。
『そこ』は留意して操作、設定しましょう
自分の位置情報が、何に対して『通知』されているのか?
定期的に確認すると良いでしょう。
(設定変更には管理者権限が必要なのもこんな意味からでしょう)
基本、アプリやサービスで位置情報が必要なのは
『マップ』『FindMyMac』
iOSデバイス(iPhoneやiPad)をお持ちの方は
『ショートカット』ぐらいかなぁ
細かい事言えば、海外行くなら、タイムゾーンも必要ですが
国内なら、切っておいてもさして問題はないです。
| 固定リンク
なぜか?
do shell scriptだと停止できない事もある
なんで?
ダウンロード - locationde585a8e983a8off.scpt.zip
| 固定リンク
これは、あまり意味ないかな
ダウンロード - locationde382a2e38395e3829ae383aaoff.scpt.zip
| 固定リンク
システムサービスで位置情報の取得を許可
HOMEKIT OFF
/usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.apple.locationd.bundle-/System/Library/PrivateFrameworks/HomeKitDaemon.framework:Authorized false" "/var/db/locationd/clients.plist"
位置情報に基づく検索候補 OFF
/usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.apple.locationd.bundle-/System/Library/PrivateFrameworks/CoreParsec.framework:Authorized false" "/var/db/locationd/clients.plist"
利用頻度の高い場所 OFF
/usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.apple.locationd.bundle-/System/Library/LocationBundles/Routine.bundle:Authorized false" "/var/db/locationd/clients.plist"
Macを探す OFF
/usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.apple.locationd.bundle-/System/Library/PrivateFrameworks/FindMyDevice.framework:Authorized false" "/var/db/locationd/clients.plist"
時間帯とシステムのカスタマイズ OFF
/usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.apple.locationd.bundle-/System/Library/LocationBundles/TimeZone.bundle:Authorized false" "/var/db/locationd/clients.plist"
位置情報に基づく通知-->集中モード(フォーカス) OFF
/usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.apple.locationd.bundle-/System/Library/LocationBundles/DoNotDisturb.bundle:Authorized false" "/var/db/locationd/clients.plist"
ネットワークとワイヤレス OFF
/usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.apple.locationd.bundle-/System/Library/Frameworks/CoreWLAN.framework:Authorized false" "/var/db/locationd/clients.plist"
エラーする場合(値が無い時がある)はAddする
ネットワークとワイヤレス
/usr/bin/sudo /usr/libexec/PlistBuddy -c "Add :com.apple.locationd.bundle-/System/Library/Frameworks/CoreWLAN.framework:Authorized false" "/var/db/locationd/clients.plist"
| 固定リンク
セキュリティ設定の中で『位置情報』だけは、TCC.db外で設定されています。
/var/db/locationd/clients.plist
1:一覧出力
2:無効化
3:有効化
4:削除
5:変更内容を適用
sh-3.2$
sh-3.2$ /usr/bin/sudo /usr/bin/defaults read "/var/db/locationd/clients.plist"
{
"com.apple.amsaccountsd" = {
BundleId = "com.apple.amsaccountsd";
Registered = "";
Requirement = "identifier \\"com.apple.amsaccountsd\\" and anchor apple";
};
"com.apple.assistantd" = {
BundleId = "com.apple.assistantd";
Registered = "";
Requirement = "identifier \\"com.apple.assistantd\\" and anchor apple";
"com.google.Chrome" = {
Authorized = 1;
BundleId = "com.google.Chrome";
Registered = "";
Requirement = "(identifier \\"com.google.Chrome\\" or identifier \\"com.google.Chrome.beta\\" or identifier \\"com.google.Chrome.dev\\" or identifier \\"com.google.Chrome.canary\\") 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] = EQHXZ8M8AV";
};
}
sh-3.2$ /usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.google.Chrome:Authorized false" "/var/db/locationd/clients.plist"
sh-3.2$
sh-3.2$ /usr/bin/sudo /usr/libexec/PlistBuddy -c "print :com.google.Chrome:Authorized" "/var/db/locationd/clients.plist"
false
sh-3.2$
sh-3.2$ /usr/bin/sudo /usr/libexec/PlistBuddy -c "print :com.google.Chrome:Authorized" "/var/db/locationd/clients.plist"
false
sh-3.2$
sh-3.2$ /usr/bin/sudo /usr/libexec/PlistBuddy -c "Set :com.google.Chrome:Authorized true" "/var/db/locationd/clients.plist"
sh-3.2$
sh-3.2$ /usr/bin/sudo /usr/libexec/PlistBuddy -c "print :com.google.Chrome:Authorized" "/var/db/locationd/clients.plist"
true
sh-3.2$
sh-3.2$ /usr/bin/sudo /usr/bin/defaults delete "/var/db/locationd/clients.plist" com.google.Chrome
sh-3.2$
sh-3.2$
sh-3.2$ /usr/bin/sudo /usr/bin/defaults delete "/var/db/locationd/clients.plist" com.google.Chrome
2022-04-05 23:06:23.907 defaults[4975:98590]
Domain (/var/db/locationd/clients.plist) not found.
Defaults have not been changed.
sh-3.2$
sh-3.2$
sh-3.2$ /usr/bin/sudo /usr/bin/killall locationd
sh-3.2$
sh-3.2$
| 固定リンク
Acrobat Acrobat 2020 Acrobat AddOn Acrobat Annotation Acrobat AV2 Acrobat BookMark Acrobat Classic Acrobat DC Acrobat Dialog Acrobat Distiller Acrobat Form Acrobat JS Acrobat Manifest Acrobat Menu Acrobat Open Acrobat Plugin Acrobat Preferences Acrobat Preflight Acrobat python Acrobat Reader Acrobat SCA Acrobat SCA Updater Acrobat Sequ Acrobat Sign Acrobat Stamps Acrobat Watermark Acrobat Windows Admin Admin Account Admin Apachectl Admin configCode Admin Device Management Admin LaunchServices Admin Locationd Admin loginitem Admin Maintenance Admin Mobileconfig Admin Permission Admin Pkg Admin Power Management Admin Printer Admin SetUp Admin SMB Admin Support Admin System Information Admin Tools Admin Users Admin Volumes Adobe Adobe FDKO Adobe RemoteUpdateManager Apple AppleScript AppleScript Accessibility AppleScript AppKit AppleScript Applications AppleScript AppStore AppleScript Archive AppleScript Attributes AppleScript Audio AppleScript Automator AppleScript AVAsset AppleScript AVconvert AppleScript AVFoundation AppleScript AVURLAsset AppleScript BackUp AppleScript Barcode AppleScript Bash AppleScript Basic AppleScript Basic Path AppleScript Bluetooth AppleScript BOX AppleScript Browser AppleScript Calendar AppleScript CD/DVD AppleScript Choose AppleScript Chrome AppleScript CIImage AppleScript CloudStorage AppleScript Color AppleScript com.apple.LaunchServices.OpenWith AppleScript Console AppleScript Contacts AppleScript CotEditor AppleScript CURL AppleScript current application AppleScript Date&Time AppleScript delimiters AppleScript Desktop AppleScript Device AppleScript Diff AppleScript Disk AppleScript do shell script AppleScript Dock AppleScript DropBox AppleScript Droplet AppleScript eMail AppleScript Encode % AppleScript Encode Decode AppleScript Encode UTF8 AppleScript Error AppleScript EXIFData AppleScript ffmpeg AppleScript File AppleScript Finder AppleScript Firefox AppleScript Folder AppleScript Fonts AppleScript GIF AppleScript Guide AppleScript HTML AppleScript HTML Entity AppleScript Icon AppleScript Illustrator AppleScript Image Events AppleScript Image2PDF AppleScript ImageOptim AppleScript iWork AppleScript Javascript AppleScript Jedit AppleScript Json AppleScript Label AppleScript Leading Zero AppleScript List AppleScript locationd AppleScript LRC AppleScript LSSharedFileList AppleScript m3u8 AppleScript Mail AppleScript MakePDF AppleScript Map AppleScript Math AppleScript Messages AppleScript Microsoft AppleScript Microsoft Edge AppleScript Microsoft Excel AppleScript Mouse AppleScript Movie AppleScript Music AppleScript NetWork AppleScript Notes AppleScript NSArray AppleScript NSArray Sort AppleScript NSBitmapImageRep AppleScript NSBundle AppleScript NSCFBoolean AppleScript NSCharacterSet AppleScript NSColor AppleScript NSColorList AppleScript NSData AppleScript NSDictionary AppleScript NSError AppleScript NSEvent AppleScript NSFileAttributes AppleScript NSFileManager AppleScript NSFileManager enumeratorAtURL AppleScript NSFont AppleScript NSFontManager AppleScript NSGraphicsContext AppleScript NSImage AppleScript NSIndex AppleScript NSKeyedArchiver AppleScript NSKeyedUnarchiver AppleScript NSLocale AppleScript NSMutableArray AppleScript NSMutableDictionary AppleScript NSMutableString AppleScript NSNotFound AppleScript NSNumber AppleScript NSOpenPanel AppleScript NSPasteboard AppleScript NSpoint AppleScript NSPredicate AppleScript NSPrintOperation AppleScript NSRange AppleScript NSRect AppleScript NSRegularExpression AppleScript NSRunningApplication AppleScript NSScreen AppleScript NSSize AppleScript NSString AppleScript NSStringCompareOptions AppleScript NSTask AppleScript NSTimeZone AppleScript NSURL AppleScript NSURL File AppleScript NSURLBookmark AppleScript NSURLComponents AppleScript NSURLResourceKey AppleScript NSURLSession AppleScript NSUserDefaults AppleScript NSUUID AppleScript NSView AppleScript NSWorkspace AppleScript Numbers AppleScript OAuth AppleScript ObjC AppleScript OneDrive AppleScript Osax AppleScript PDF AppleScript PDFAnnotation AppleScript PDFAnnotationWidget AppleScript PDFContext AppleScript PDFDisplayBox AppleScript PDFDocumentPermissions AppleScript PDFImageRep AppleScript PDFKit AppleScript PDFnUP AppleScript PDFOutline AppleScript Photoshop AppleScript Pictures AppleScript PostScript AppleScript prefPane AppleScript Preview AppleScript Python AppleScript QR AppleScript QR Decode AppleScript QuickLook AppleScript QuickTime AppleScript record AppleScript Regular Expression AppleScript Reminders AppleScript ReName AppleScript Repeat AppleScript RTF AppleScript Safari AppleScript SaveFile AppleScript ScreenCapture AppleScript ScreenSaver AppleScript Script Editor AppleScript Script Menu AppleScript Shortcuts AppleScript Shortcuts Events AppleScript Sound AppleScript Spotlight AppleScript SRT AppleScript StandardAdditions AppleScript stringByApplyingTransform AppleScript Swift AppleScript System Events AppleScript System Events Plist AppleScript System Settings AppleScript TemporaryItems AppleScript Terminal AppleScript Text AppleScript Text CSV AppleScript Text MD AppleScript Text TSV AppleScript TextEdit AppleScript Translate AppleScript Trash AppleScript Twitter AppleScript UI AppleScript Unit Conversion AppleScript UTType AppleScript valueForKeyPath AppleScript Video AppleScript VisionKit AppleScript Visual Studio Code AppleScript webarchive AppleScript webp AppleScript Wifi AppleScript XML AppleScript XML EPUB AppleScript XML OPML AppleScript XML Plist AppleScript XML RSS AppleScript XML savedSearch AppleScript XML SVG AppleScript XML TTML AppleScript XML webloc AppleScript XMP AppleScript YouTube Applications CityCode github iPhone List lsappinfo Memo Music perl PlistBuddy pluginkit postalcode ReadMe SF Symbols character id SF Symbols Entity sips Skype Slack sqlite TCC Tools Typography Video Wacom Windows zoom