简体   繁体   English

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

[英]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.1310.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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM