diff options
author | Caio Schnepper <caioschnepper@gmail.com> | 2015-07-10 19:32:55 -0300 |
---|---|---|
committer | Caio Schnepper <caioschnepper@gmail.com> | 2015-07-14 12:37:19 -0700 |
commit | 376b96446eb0df261a6557e975d540b1c6f795fe (patch) | |
tree | 1a08e0405f63432597b7146e9629d66c855d6e10 | |
parent | 8feed3c151b7a3fb6b2759569d4639c958d38bc6 (diff) | |
download | device_samsung_galaxys2-common-376b96446eb0df261a6557e975d540b1c6f795fe.zip device_samsung_galaxys2-common-376b96446eb0df261a6557e975d540b1c6f795fe.tar.gz device_samsung_galaxys2-common-376b96446eb0df261a6557e975d540b1c6f795fe.tar.bz2 |
selinux: allow kernel to write on block_device
The kernel writes to dev/block/vold, fix UMS mode
Change-Id: I4b8fd54f86ae45f37bae68f31dbdc56f5bfd2ef0
-rw-r--r-- | BoardCommonConfig.mk | 1 | ||||
-rw-r--r-- | selinux/kernel.te | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/BoardCommonConfig.mk b/BoardCommonConfig.mk index abef610..fcd79df 100644 --- a/BoardCommonConfig.mk +++ b/BoardCommonConfig.mk @@ -163,6 +163,7 @@ BOARD_SEPOLICY_UNION += \ file.te \ file_contexts \ init.te \ + kernel.te \ mediaserver.te \ rild.te \ system_app.te \ diff --git a/selinux/kernel.te b/selinux/kernel.te new file mode 100644 index 0000000..3a08988 --- /dev/null +++ b/selinux/kernel.te @@ -0,0 +1 @@ +allow kernel block_device:blk_file write; |