cm: sepolicy: allow kernel to read storage

This fixes issues where the kernel would need to read and write
files from internal or external storage. More specifically, the
kernel needs these rules for USB mass storage to work correctly.

Change-Id: I8cb0307727bc0c464d5470e55275ad808e748ee0
This commit is contained in:
FrozenCow 2016-01-11 23:10:47 +01:00 committed by Gerrit Code Review
parent 4a2f567dc9
commit ec0322e31b

View file

@ -64,4 +64,6 @@ userdebug_or_eng(`
allow system_app superuser_device:sock_file { read write create setattr unlink getattr }; allow system_app superuser_device:sock_file { read write create setattr unlink getattr };
allow system_app sudaemon:unix_stream_socket { connectto read write setopt ioctl }; allow system_app sudaemon:unix_stream_socket { connectto read write setopt ioctl };
allow system_app superuser_device:dir { create rw_dir_perms setattr unlink }; allow system_app superuser_device:dir { create rw_dir_perms setattr unlink };
allow kernel sudaemon:fd { use };
') ')