例如,蓝牙是com.apple.security.device.bluetooth。
苹果目前并没有在应享权利键引用中记录这一特殊权利。
发布于 2016-06-09 04:12:48
从WWDC 18和CoreWLAN.framework开始,macOS 10.13和10.14都被允许进入沙箱。但是请注意,从Wi扫描中获取BSSID信息需要有定位权限。
使用macOS工具可以找到较早版本的codesign的特定应享权利:
$ codesign -d --entitlements :- /System/Library/PrivateFrameworks/CoreWLANKit.framework/Versions/A/XPCServices/WiFiProxy.xpc/Contents/MacOS/WiFiProxy
Executable=/System/Library/PrivateFrameworks/CoreWLANKit.framework/Versions/A/XPCServices/WiFiProxy.xpc/Contents/MacOS/WiFiProxy
<?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.wifi.anqp</key>
<true/>
<key>com.apple.wifi.associate</key>
<true/>
<key>com.apple.wifi.events</key>
<true/>
<key>com.apple.wifi.events.private</key>
<true/>
<key>com.apple.wifi.ibss</key>
<true/>
<key>com.apple.wifi.priority.id</key>
<string>wifi_menu_extra</string>
<key>com.apple.wifi.priority.internal</key>
<true/>
<key>com.apple.wifi.scan</key>
<true/>
<key>com.apple.wifi.set_power</key>
<true/>
<key>com.apple.wifi.tether.browse</key>
<true/>
<key>com.apple.wifi.tether.connect</key>
<true/>
<key>keychain-access-groups</key>
<array>
<string>apple</string>
</array>
</dict>
</plist>https://stackoverflow.com/questions/37529193
复制相似问题