RM6785: sepolicy: Label extcon node

W android.ui: type=1400 audit(0.0:471): avc: denied { read } for name="name" dev="sysfs" ino=40954 scontext=u:r:system_server:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
W ExtconUEventObserver: Unable to read /sys/devices/platform/extcon_usb/extcon/extcon0/cable.1/name. This probably means the selinux policies need to be changed.
W ExtconUEventObserver: java.io.FileNotFoundException: /sys/class/extcon/extcon0/cable.1/name: open failed: EACCES (Permission denied)
W ExtconUEventObserver: 	at libcore.io.IoBridge.open(IoBridge.java:574)
W ExtconUEventObserver: 	at java.io.FileInputStream.<init>(FileInputStream.java:160)
W ExtconUEventObserver: 	at android.os.FileUtils.readTextFile(FileUtils.java:637)
W ExtconUEventObserver: 	at com.android.server.ExtconUEventObserver$ExtconInfo.<init>(ExtconUEventObserver.java:222)
W ExtconUEventObserver: 	at com.android.server.ExtconUEventObserver$ExtconInfo.initExtconInfos(ExtconUEventObserver.java:173)
W ExtconUEventObserver: 	at com.android.server.ExtconUEventObserver$ExtconInfo.getExtconInfoForTypes(ExtconUEventObserver.java:185)
W ExtconUEventObserver: 	at com.android.server.policy.PhoneWindowManager.initializeHdmiStateInternal(PhoneWindowManager.java:3763)
W ExtconUEventObserver: 	at com.android.server.policy.PhoneWindowManager.initializeHdmiState(PhoneWindowManager.java:3728)
W ExtconUEventObserver: 	at com.android.server.policy.PhoneWindowManager.init(PhoneWindowManager.java:2143)
W ExtconUEventObserver: 	at com.android.server.wm.WindowManagerService$5.run(WindowManagerService.java:1179)
W ExtconUEventObserver: 	at android.os.Handler$BlockingRunnable.run(Handler.java:965)
W ExtconUEventObserver: 	at android.os.Handler.handleCallback(Handler.java:942)
W ExtconUEventObserver: 	at android.os.Handler.dispatchMessage(Handler.java:99)
W ExtconUEventObserver: 	at android.os.Looper.loopOnce(Looper.java:201)
W ExtconUEventObserver: 	at android.os.Looper.loop(Looper.java:288)
W ExtconUEventObserver: 	at android.os.HandlerThread.run(HandlerThread.java:67)
W ExtconUEventObserver: 	at com.android.server.ServiceThread.run(ServiceThread.java:44)
W ExtconUEventObserver: 	at com.android.server.UiThread.run(UiThread.java:45)
W ExtconUEventObserver: Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
W ExtconUEventObserver: 	at libcore.io.Linux.open(Native Method)
W ExtconUEventObserver: 	at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
W ExtconUEventObserver: 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
W ExtconUEventObserver: 	at libcore.io.IoBridge.open(IoBridge.java:560)
W ExtconUEventObserver: 	... 17 more

Change-Id: I8ea69d74b7e631797847634ccb678d32d34e0c09
1 file changed