Mac App使用CoreWLAN访问Sandbox中的Wi-Fi的权利是什么?

时间:2016-05-30 15:24:36

标签: macos wifi sandbox

蓝牙,例如是com.apple.security.device.bluetooth

Apple目前未在Entitlement Key Reference

中记录此特定权利

1 个答案:

答案 0 :(得分:1)

自WWDC 18起,CoreWLAN.framework被允许进入macOS 10.1310.14的沙箱。但请注意,需要获取位置权利才能从Wi-Fi扫描中获取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>