Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



MacOS X - How to de...
 
Share:
Notifications
Clear all

[Solved] MacOS X - How to determine application entitlements

1 Posts
1 Users
0 Reactions
2,668 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 2859
Topic starter  

This is probably more of interest for developers; finding out what entitlements an application has.

With recent security changes, Apple decided to implement so called entitlements - telling what the application can and cannot do.
Sometimes this can be quite interesting to learn about used entitlements when developing your own application.

So how do we get a list of entitlements?

In Terminal:

codesign -d --entitlements - /Applications/MyApp.app

So for Disk Utility this would be:

codesign -d --entitlements - /Applications/Utilities/Disk\ Utility.app/

The output will look something like this:

Executable=/Applications/Utilities/Disk Utility.app/Contents/MacOS/Disk Utility
??qqA<?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>com.apple.private.CoreAuthentication.SPI</key>
 <true/>
 <key>com.apple.private.storagekitd.destructive</key>
 <true/>
</dict>
</plist>

Enjoy ... (this should work with every signed application with entitlements assigned to it)


   
ReplyQuote
Share: