mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-04-20 22:13:48 +00:00
Narrow macOS sandbox entitlement to /dev/cu. and /dev/tty. only
The /dev/ prefix granted read/write to all device nodes. The app only needs access to serial port devices (/dev/cu.* and /dev/tty.*) for USB LoRa communication.
This commit is contained in:
parent
e4285774a0
commit
06fa176367
2 changed files with 6 additions and 2 deletions
|
|
@ -14,9 +14,11 @@
|
|||
<true/>
|
||||
<key>com.apple.security.device.usb</key>
|
||||
<true/>
|
||||
<!-- USB serial ports (/dev/cu.* and /dev/tty.*) for LoRa device communication -->
|
||||
<key>com.apple.security.temporary-exception.files.absolute-path.read-write</key>
|
||||
<array>
|
||||
<string>/dev/</string>
|
||||
<string>/dev/cu.</string>
|
||||
<string>/dev/tty.</string>
|
||||
</array>
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
|
|
|
|||
|
|
@ -10,9 +10,11 @@
|
|||
<true/>
|
||||
<key>com.apple.security.device.usb</key>
|
||||
<true/>
|
||||
<!-- USB serial ports (/dev/cu.* and /dev/tty.*) for LoRa device communication -->
|
||||
<key>com.apple.security.temporary-exception.files.absolute-path.read-write</key>
|
||||
<array>
|
||||
<string>/dev/</string>
|
||||
<string>/dev/cu.</string>
|
||||
<string>/dev/tty.</string>
|
||||
</array>
|
||||
<key>com.apple.security.device.camera</key>
|
||||
<true/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue