serial: Implement persistent permissions on Linux and macOS
This change updates the serial port enumerators for Linux and macOS to read the serial number (if available) for USB devices and use this to construct a persistent ID for these devices. This means that only USB devices will have permissions stored persistently. Support for remembering other types of devices will be investigated in the future. Bug: 908836 Change-Id: I28c53b880e69723447c445d447d677f2799c2ebd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2265357 Auto-Submit: Reilly Grant <reillyg@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by:Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#782158}
Showing
Please register or sign in to comment