commit | ab3df62f7b5584af6dee4f5ec069b70dd4f4cee6 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Wed Jun 19 17:20:24 2013 -0700 |
committer | Nick Kralevich <nnk@google.com> | Wed Jun 19 17:23:14 2013 -0700 |
tree | 5677af11080496520b9780db6b469eedc41f7b5d | |
parent | 3911886e854d31058e7d3a6e310e8eafd06c02e0 [diff] |
netd: reduce privileges netd doesn't need full root capabilities. Rather, it only needs CAP_NET_ADMIN and CAP_NET_RAW. Reduce the capabilities to that set. netd continues to run with UID=0, which allows applications spawned by netd to continue to have CAP_NET_ADMIN and CAP_NET_RAW. It also allows netd to access /proc and /sys files as UID=0. Change-Id: I439d22150109697213c0cc83276ddb668007b978