Use permission_broker's OpenPath method to open serial ports.
commit17464dbc84fd43672b70e630a46778bdbe4e10fa
authorreillyg <reillyg@chromium.org>
Mon, 13 Jul 2015 07:24:55 +0000 (13 00:24 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 13 Jul 2015 07:25:39 +0000 (13 07:25 +0000)
tree465f1377f4d20bd6a11cb8220fe1ede158c628e4
parent39941b73d0a057b2a86d42946969f0317a86b1c7
Use permission_broker's OpenPath method to open serial ports.

This new method allows Chrome to open device nodes without having to
chmod them to a group of which Chrome is a member and allows the
permission broker to set opens on the file descriptor before passing it
to Chrome. This is a win for security and future extensibility.

BUG=None

Review URL: https://codereview.chromium.org/1235683003

Cr-Commit-Position: refs/heads/master@{#338478}
device/serial/DEPS
device/serial/serial_io_handler.cc
device/serial/serial_io_handler.h
device/serial/serial_io_handler_posix.cc
device/serial/serial_io_handler_posix.h