diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2013-11-13 22:35:00 +0700 |
---|---|---|
committer | Pawit Pornkitprasan <p.pawit@gmail.com> | 2013-11-13 22:35:17 +0700 |
commit | 1b6aa84f9dceb291b195d786b96c7873981f6bca (patch) | |
tree | 012ef42775e5391a393b9b1ab0c1ca879ee8b2a7 /sepolicy | |
parent | a30ec115e31867b42812e425b3e1661af4fc374c (diff) | |
download | vendor_replicant-1b6aa84f9dceb291b195d786b96c7873981f6bca.zip vendor_replicant-1b6aa84f9dceb291b195d786b96c7873981f6bca.tar.gz vendor_replicant-1b6aa84f9dceb291b195d786b96c7873981f6bca.tar.bz2 |
sepolicy: allow installd to query ASEC size
installd need to query ASEC size on sdcard_external
to show on the Settings -> Apps page correctly.
Change-Id: I2d9a49b8f0652f05d73d0ff464a3835595e2cc3c
Diffstat (limited to 'sepolicy')
-rw-r--r-- | sepolicy/installd.te | 3 | ||||
-rw-r--r-- | sepolicy/sepolicy.mk | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sepolicy/installd.te b/sepolicy/installd.te new file mode 100644 index 0000000..65f471a --- /dev/null +++ b/sepolicy/installd.te @@ -0,0 +1,3 @@ +# Allow querying of asec size on SD card +allow installd sdcard_external:dir { search }; +allow installd sdcard_external:file { getattr }; diff --git a/sepolicy/sepolicy.mk b/sepolicy/sepolicy.mk index bde93dc..26d2caa 100644 --- a/sepolicy/sepolicy.mk +++ b/sepolicy/sepolicy.mk @@ -11,5 +11,6 @@ BOARD_SEPOLICY_UNION += \ file_contexts \ fs_use \ genfs_contexts \ + installd.te \ seapp_contexts \ mac_permissions.xml |