summaryrefslogtreecommitdiff
path: root/server/TetherController.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2014-10-02 22:47:41 +0900
committerLorenzo Colitti <lorenzo@google.com>2014-10-02 23:52:14 +0900
commita1067c8d2b2165f1058a3a8216bed4efacfa1c80 (patch)
tree551acbe6cd529cc0f13c036822986da3c8586c9b /server/TetherController.cpp
parente8164ddc8204b626c1144a0a504754bf6622c6fd (diff)
Improve error return values on network selection.
It's very confusing to see EPERM when opening or connecting a socket when the problem is not security-related. In the (common) case where an app cannot select a network because it does not exist, return ENONET ("Machine is not on network") instead. Also, return EREMOTEIO for when we can't figure out who the user is, and use EPERM for VPN denials and EACCES for permission bits. Bug: 17702933 Change-Id: Ia680c485e0ea1efad1ad374231d994e9bfd4cd5a
Diffstat (limited to 'server/TetherController.cpp')
0 files changed, 0 insertions, 0 deletions