Add permission, char device, and uid checks.
Add permission, char device, and uid checks.

Change-Id: I8307bfb390a56424aaa651285a218aad277c4aed

google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor,google/gvisor