[英]What is the entitlement for a Mac App to use CoreWLAN to access Wi-Fi in the Sandbox?
Bluetooth for eg is com.apple.security.device.bluetooth
.例如蓝牙是com.apple.security.device.bluetooth
。
Apple does not currently document this particular entitlement in the Entitlement Key Reference Apple 目前未在权利密钥参考中记录此特定权利
As of WWDC 18 and CoreWLAN.framework
was allowed into the sandbox in both macOS 10.13
and 10.14
.从 WWDC 18 开始, CoreWLAN.framework
被允许进入macOS 10.13
和10.14
的沙箱。 But note that the location entitlement is required to get the BSSID
information from a Wi-Fi Scan.但请注意,从 Wi-Fi 扫描中获取BSSID
信息需要位置授权。
The specific entitlements for older versions of macOS
can be found by using the codesign
tool:可以使用codesign
工具找到旧版本macOS
的特定权利:
$ 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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.