Tasssadar / multirom

MultiROM for Nexus 7 and LG Optimus One
http://forum.xda-developers.com/showthread.php?t=2011403
GNU General Public License v3.0
415 stars 274 forks source link

Screenshots taken in MultiROM cannot be viewed from Android due to SELinux denial #77

Open zhuowei opened 8 years ago

zhuowei commented 8 years ago

Since the MultiROM trampoline doesn't initialize SELinux, the screenshots are unlabeled for SELinux and can't be viewed in Android when SELinux is enforcing:

shell@angler:/sdcard/Pictures/Screenshots $ ls -l
lstat './mrom_screenshot_000.png' failed: Permission denied
lstat './mrom_screenshot_001.png' failed: Permission denied
shell@angler:/sdcard/Pictures/Screenshots $

[ 1605.329235] type=1400 audit(1455248107.739:151): avc: denied { getattr } for pid=6939 comm="sdcard" path="/data/media/0/Pictures/Screenshots/mrom_screenshot_000.png" dev="dm-2" ino=695940 scontext=u:r:sdcardd:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=0