diff options
author | Diogo Ferreira <defer@cyngn.com> | 2014-12-01 14:33:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2014-12-01 20:36:13 +0000 |
commit | 5c9f9efba68a8de6123eaa341be6dce4b483fd44 (patch) | |
tree | f237b4a8fa34d4affd9da94e73c310935e7f9c0f /sepolicy | |
parent | d2248b27a86b94901b4ed33a528969eeebb46eaf (diff) | |
download | vendor_replicant-5c9f9efba68a8de6123eaa341be6dce4b483fd44.zip vendor_replicant-5c9f9efba68a8de6123eaa341be6dce4b483fd44.tar.gz vendor_replicant-5c9f9efba68a8de6123eaa341be6dce4b483fd44.tar.bz2 |
sepolicy: Fix permissions for service.adb.tcp.port
This makes the rule more specific by overriding the upstream sepolicy.
Also adds the adbd context which is necessary for "adb tcpip".
Change-Id: Ia17eb56fc1682ab248764329e88eebd2a4075c97
Diffstat (limited to 'sepolicy')
-rw-r--r-- | sepolicy/adbd.te | 1 | ||||
-rw-r--r-- | sepolicy/property_contexts | 2 | ||||
-rw-r--r-- | sepolicy/sepolicy.mk | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/sepolicy/adbd.te b/sepolicy/adbd.te new file mode 100644 index 0000000..39a87aa --- /dev/null +++ b/sepolicy/adbd.te @@ -0,0 +1 @@ +allow adbd adbtcp_prop:property_service set; diff --git a/sepolicy/property_contexts b/sepolicy/property_contexts index dc77194..e5566dc 100644 --- a/sepolicy/property_contexts +++ b/sepolicy/property_contexts @@ -1 +1 @@ -service.adb.tcp. u:object_r:adbtcp_prop:s0 +service.adb.tcp.port u:object_r:adbtcp_prop:s0 diff --git a/sepolicy/sepolicy.mk b/sepolicy/sepolicy.mk index a08e74a..1a9b343 100644 --- a/sepolicy/sepolicy.mk +++ b/sepolicy/sepolicy.mk @@ -14,6 +14,7 @@ BOARD_SEPOLICY_UNION += \ seapp_contexts \ service_contexts \ auditd.te \ + adbd.te \ healthd.te \ hostapd.te \ installd.te \ |