Commit graph

7965 commits

Author SHA1 Message Date
Prashant Malani
d7cbaf298e sepolicy: Add policy for vibrator HIDL service am: b32b4a112f am: d55ef92371
am: 5b87c66933

Change-Id: I964fcb218f92c6f74dbff5f551229956abe01b68
2016-10-13 21:01:40 +00:00
Prashant Malani
5b87c66933 sepolicy: Add policy for vibrator HIDL service am: b32b4a112f
am: d55ef92371

Change-Id: I02d9c27f40cdd32596521a3e01c81fe2fdc4b6a1
2016-10-13 20:54:33 +00:00
Prashant Malani
b32b4a112f sepolicy: Add policy for vibrator HIDL service
Fixes the following denials:
avc: denied { open } for pid=7530 comm="android.hardwar" path="/sys/devices/virtual/timed_output/vibrator/enable" dev="sysfs" ino=20519 scontext=u:r:android_hardware_vibrator_1_0_service:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=1
avc: denied { call } for pid=9173 comm="Binder:7735_C" scontext=u:r:system_server:s0 tcontext=u:r:android_hardware_vibrator_1_0_service:s0 tclass=binder permissive=1

Test: m
Bug: 32021191
Change-Id: I243a86b449794e3c2f0abf91ddcf405eff548d0c
2016-10-13 11:41:30 -07:00
Chad Brubaker
d6f929ca88 Rename autoplay_app to ephemeral_app am: 06cf31eb63 am: 90b552d941 am: 83ad69b11c
am: c5ef0152ed

Change-Id: I1ff31269ef18117e833711f333fa8fd505a5c694
2016-10-07 19:54:34 +00:00
Chad Brubaker
c5ef0152ed Rename autoplay_app to ephemeral_app am: 06cf31eb63 am: 90b552d941
am: 83ad69b11c

Change-Id: I0f0cfda4783df19ddd13ed7a07d8fa3717b85fc3
2016-10-07 19:46:10 +00:00
Chad Brubaker
83ad69b11c Rename autoplay_app to ephemeral_app am: 06cf31eb63
am: 90b552d941

Change-Id: I663aa76bf477fcc9311078e0f9dab72fdae7a76e
2016-10-07 19:41:10 +00:00
Prashant Malani
c541bb6814 system_server: Allow hwservicemanager to make binder calls am: abb5c72b8b am: f8ac3b7cab am: 15d439b8c2
am: 95b0515b4b

Change-Id: Ia7eefe1a8735e84d79be9d6c47feb81d28bc1147
2016-10-07 16:57:55 +00:00
Chad Brubaker
06cf31eb63 Rename autoplay_app to ephemeral_app
Test: Builds and boots
Change-Id: I3db64e12f0390c6940f5745eae83ce7efa7d65a9
2016-10-07 09:52:31 -07:00
Prashant Malani
95b0515b4b system_server: Allow hwservicemanager to make binder calls am: abb5c72b8b am: f8ac3b7cab
am: 15d439b8c2

Change-Id: I01eca0746c00940f58fd6e92cc6b1b7649659680
2016-10-07 05:06:17 +00:00
Prashant Malani
15d439b8c2 system_server: Allow hwservicemanager to make binder calls am: abb5c72b8b
am: f8ac3b7cab

Change-Id: Ifdc91982a3672447e9e07b51a94a79aa465dea73
2016-10-07 05:02:47 +00:00
Prashant Malani
abb5c72b8b system_server: Allow hwservicemanager to make binder calls
Fixes the following denial:
avc: denied { call } for pid=791 comm="system_server" scontext=u:r:system_server:s0 tcontext=u:r:hwservicemanager:s0 tclass=binder permissive=1

Test: Builds, boots, vibrator works on bullhead
Change-Id: I56a0a86b64f5d46dc490f6f3255009c40e6e3f8f
2016-10-06 14:41:49 -07:00
dcashman
7cfa40594c Split general policy into public and private components. am: cc39f63773 am: 1d233a6328 am: e8647916b8
am: 360da5bc47

Change-Id: Id1c6c6168b7deb7b45b51514ee6df889966bd3dc
2016-10-06 20:30:01 +00:00
dcashman
360da5bc47 Split general policy into public and private components. am: cc39f63773 am: 1d233a6328
am: e8647916b8

Change-Id: Ic200ac0d2169ac5b183d9aab101c5715856f1bac
2016-10-06 20:23:15 +00:00
dcashman
e8647916b8 Split general policy into public and private components. am: cc39f63773
am: 1d233a6328

Change-Id: I09f67daa9459fcb8fa37df9129df589ae180a5bc
2016-10-06 20:20:15 +00:00
dcashman
cc39f63773 Split general policy into public and private components.
Divide policy into public and private components.  This is the first
step in splitting the policy creation for platform and non-platform
policies.  The policy in the public directory will be exported for use
in non-platform policy creation.  Backwards compatibility with it will
be achieved by converting the exported policy into attribute-based
policy when included as part of the non-platform policy and a mapping
file will be maintained to be included with the platform policy that
maps exported attributes of previous versions to the current platform
version.

Eventually we would like to create a clear interface between the
platform and non-platform device components so that the exported policy,
and the need for attributes is minimal.  For now, almost all types and
avrules are left in public.

Test: Tested by building policy and running on device.

Change-Id: Idef796c9ec169259787c3f9d8f423edf4ce27f8c
2016-10-06 13:09:06 -07:00