- Mar 24, 2017
-
-
Alex Klyubin authored
am: 5d8fcf3b Change-Id: I5f88b48df906acb9381dc853d61dcd5ef8d5e4e4
-
Alex Klyubin authored
am: 73a6f38b Change-Id: I24d9be712209ee22a33ae858001c4e38e0eb763a
-
Alex Klyubin authored
-
Alex Klyubin authored
am: e1742ef0 Change-Id: I007ae4064a8daf690b15bc5196131169727cbec9
-
Alex Klyubin authored
am: 6b558dcb Change-Id: I82c412038e43bb343dc355c9d1e56a11f6da6542
-
Alex Klyubin authored
This change associates all domains which are clients of Allocator HAL with hal_allocator_client and the, required for all HAL client domains, halclientdomain. This enables this commit to remove the now unnecessary hwallocator_use macro because its binder_call(..., hal_allocator_server) is covered by binder_call(hal_allocator_client, hal_allocator_server) added in this commit. Unfortunately apps, except isolated app, are clients of Allocator HAL as well. This makes it hard to use the hal_client_domain(..., hal_allocator) macro because it translates into "typeattribute" which currently does not support being provided with a set of types, such as { appdomain -isolated_app }. As a workaround, hopefully until typeattribute is improved, this commit expresses the necessary association operation in CIL. private/technical_debt.cil introduced by this commit is appended into the platform policy CIL file, thus ensuring that the hack has effect on the final monolithic policy. P. S. This change also removes Allocator HAL access from isolated_app. Isolated app shouldn't have access to this HAL anyway. Test: Google Play Music plays back radios Test: Google Camera records video with sound and that video is then successfully played back with sound Test: YouTube app plays back clips with sound Test: YouTube in Chrome plays back clips with sound Bug: 34170079 Change-Id: Id00bba6fde83e7cf04fb58bc1c353c2f66333f92
-
Alex Klyubin authored
This is a follow-up to f5446eb1 where I forgot to associate su and perfprofd domains with coredomain. Test: mmm system/sepolicy sepolicy-analyze $OUT/root/sepolicy attribute coredomain Bug: 35870313 Change-Id: I13f90693843f7c6fe9fea8e5332aa6dd9558478a
-
Alex Klyubin authored
am: 2fe065d7 Change-Id: Ieefcec5619fc2b941a675b473661dc561864ffc9
-
Alex Klyubin authored
am: f5446eb1 Change-Id: I23d5d274ae05a9b0bdac6872be86c3f56aec734e
-
Alex Klyubin authored
On PRODUCT_FULL_TREBLE devices, non-vendor domains (except vendor apps) are not permitted to use Binder. This commit thus: * groups non-vendor domains using the new "coredomain" attribute, * adds neverallow rules restricting Binder use to coredomain and appdomain only, and * temporarily exempts the domains which are currently violating this rule from this restriction. These domains are grouped using the new "binder_in_vendor_violators" attribute. The attribute is needed because the types corresponding to violators are not exposed to the public policy where the neverallow rules are. Test: mmm system/sepolicy Test: Device boots, no new denials Test: In Chrome, navigate to ip6.me, play a YouTube video Test: YouTube: play a video Test: Netflix: play a movie Test: Google Camera: take a photo, take an HDR+ photo, record video with sound, record slow motion video with sound. Confirm videos play back fine and with sound. Bug: 35870313 Change-Id: I0cd1a80b60bcbde358ce0f7a47b90f4435a45c95
-
Alex Klyubin authored
am: 3d12305d Change-Id: Id45b1a26067b7525feabb029d5c98270d0c5994b
-
Alex Klyubin authored
am: 93f99cb1 Change-Id: I877e23910bc424a2026bab1d9669bc6537ea5c31
-
Treehugger Robot authored
-
- Mar 23, 2017
-
-
Steven Moreland authored
am: 1ecff6fa Change-Id: I9e4aefbdc5ec712164cb2946cda4b51a3967c8c3
-
Steven Moreland authored
am: 45afc7a6 Change-Id: I73d31158b87c68fa5b4ee80e33a397bb1be7c010
-
Treehugger Robot authored
-
Steven Moreland authored
Whitelist several hals which can be dumped by bugreports. Don't want to dump more because of the time it takes and also certain hals have sensitive data which shouldn't be dumped (i.e. keymaster). Test: dumps work for given hals Bug: 36414311 Change-Id: Ic0eddfa95fa33abbc983d3b5161e42c240663f22
-
Martijn Coenen authored
am: 392c86e9 Change-Id: Id520704ad8a2be81648c33d2d1ef4a865badacd0
-
Martijn Coenen authored
am: 4dd14f69 Change-Id: I60c3e0f1441aa4f548b1875e68f49c2047bf74e4
-
Martijn Coenen authored
-
Steven Moreland authored
am: d437f0e0 Change-Id: Ib72b4435a8173a213f1ddb3331afc0bebf991029
-
Steven Moreland authored
am: d3ce5dc3 Change-Id: Ifd66a82a429b18f6e0077b042dccef38ddcd636d
-
Steven Moreland authored
Test: no relevant denials on marlin while booting Test: no relevant denials on angler while booting Bug: 36278706 Change-Id: Ieba79e1c8fca4f74c63bc63e6dd0bdcf59204ca2
-
Martijn Coenen authored
vndservicemanager is the context manager for binder services that are solely registered and accessed from vendor processes. Bug: 36052864 Test: vendorservicemanager runs Merged-In: Ifbf536932678d0ff13d019635fe6347e185ef387 Change-Id: I430f1762eb83825f6cd4be939a69d46a8ddc80ff
-
- Mar 22, 2017
-
-
Alex Klyubin authored
Rules in clients of NFC HAL due to the HAL running (or previously running) in passthrough mode are now targeting hal_nfc. Domains which are clients of NFC HAL are associated with hal_nfc only the the HAL runs in passthrough mode. NFC HAL server domains are always associated with hal_nfc and thus get these rules unconditionally. This commit also moves the policy of nfc domain to private. The only thing remaining in the public policy is the existence of this domain. This is needed because there are references to this domain in public and vendor policy. Test: Open a URL in Chrome, NFC-tap Android to another Android and observe that the same URL is opened in a web browser on the destination device. Do the same reversing the roles of the two Androids. Test: Install an NFC reader app, tap a passive NFC tag with the Android and observe that the app is displaying information about the tag. Test: No SELinux denials to do with NFC before and during and after the above tests on sailfish, bullhead, and angler. Bug: 34170079 Change-Id: I29fe43f63d64b286c28eb19a3a9fe4f630612226
-
Jeff Vander Stoep authored
am: 1c05f800 Change-Id: Icb9150c5828272df8ccfce8a4145df2f3c987c45
-
Jeff Vander Stoep authored
am: 63211f8d Change-Id: If8aa9152a643522fc896b7a412d3fafb19043649
-
Treehugger Robot authored
-
Sandeep Patil authored
am: e2f8626e Change-Id: If401e4107787e6620ed31115c45b7d594812dbe5
-
Sandeep Patil authored
am: 871e44c4 Change-Id: I1c261dc247b93306c6d1a70dd0014532c84843c5
-
Treehugger Robot authored
-
Steven Moreland authored
am: 3d49330b Change-Id: I1ceaf1d95f07b8c4635a6055384cf6dcff932d51
-
Steven Moreland authored
am: 6456542f Change-Id: I353c8d695a5c995f72fe865f27682a05011f8f55
-
Treehugger Robot authored
-
Jeff Vander Stoep authored
ASAN builds may require additional permissions to launch processes with ASAN wrappers. In this case, system_server needs permission to execute /system/bin/sh. Create with_asan() macro which can be used exclusively on debug builds. Note this means that ASAN builds with these additional permission will not pass the security portion of CTS - like any other debug build. Addresses: avc: denied { execute } for name="sh" dev="dm-0" ino=571 scontext=u:r:system_server:s0 tcontext=u:object_r:shell_exec:s0 tclass=file Test: lunch aosp_marlin-userdebug; cd system/sepolicy; mm SANITIZE_TARGET=address; Verify permissions granted using with_asan() are granted. Test: lunch aosp_marlin-userdebug; cd system/sepolicy; mm; Verify permissions granted using with_asan() are not granted. Test: lunch aosp_marlin-user; cd system/sepolicy; mm SANITIZE_TARGET=address; Verify permissions granted using with_asan() are not granted. Bug: 36138508 Change-Id: I6e39ada4bacd71687a593023f16b45bc16cd7ef8
-
Sandeep Patil authored
/proc/interrupts may be dumped by dumpstate HAL if required. Bug: 36486169 Test: 'adb shell bugreport' on sailfish Change-Id: Ifc41a516aeea846bc56b86b064bda555b43c58ed Signed-off-by:
Sandeep Patil <sspatil@google.com>
-
Roshan Pius authored
am: 79005214 Change-Id: Icf0aefc596f8c3df64be9bc68b4c1f4243059747
-
Roshan Pius authored
am: e1a350a0 Change-Id: Ib2f28bdd5aa8dc1a6641f3f114965ac3ddec17e2
-
Treehugger Robot authored
-
Nick Kralevich authored
am: 6fcbd0f5 Change-Id: Ibc6947686cc6edf439e25cda9aaf5b1444da6c8c
-