Commit graph

351 commits

Author SHA1 Message Date
Roshan Pius
34f5268532 Merge "Uwb: Create a new Uwb system service" am: 0b8eafb54b am: 4b47c80944 am: f5a723a306
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1673587

Change-Id: Iae266dda5077f501918f61d2ea7da7cd23f8ae9f
2021-04-14 03:00:57 +00:00
Roshan Pius
2a1610b4e0 Uwb: Create a new Uwb system service
This service will intercept all UwbManager API calls and then perform
necessary permission checks before forwarding the call to the vendor
UWB service. Adding sepolicy permissions for exposing the service that
handles all public API's.

Bug: 183904955
Test: atest android.uwb.cts.UwbManagerTest
Change-Id: Icce4d2f586926421c06e8902a91533002c380b8d
2021-04-12 10:26:24 -07:00
Wei Wang
f03a24ef9d Merge "Rename hint service into performance_hint service" am: 4ea9b0b9df am: c8ee9a85e9 am: 77e2c3841e
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1672505

Change-Id: Idf37a4be53029a6565dab626502136ab6d6dfbac
2021-04-10 02:05:28 +00:00
Wei Wang
7b039717a9 Rename hint service into performance_hint service
Bug: 158791282
Test: Compiles, boots
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I1bd2757f90c040353a176f2dfd0142222753cf8f
2021-04-09 12:35:10 -07:00
Wei Wang
a9a100fc1a Merge "Add SEpolicy for HintManagerService" am: a02227bd7a am: 9d42156d64 am: 415e3e994d
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1664996

Change-Id: I3c120ca74f9cf8b301ab923f0e5411c1da6bd796
2021-04-06 18:23:57 +00:00
Wei Wang
4b98ddfee4 Add SEpolicy for HintManagerService
Bug: 158791282
Test: Compiles, boots
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I76ad7858076b47990e5ddf3acb880443d0074e42
2021-04-06 00:01:57 -07:00
Kalesh Singh
d7de639f20 Merge "Memtrack Proxy Service Sepolicy" am: ca0e35d633 am: ebedb3dd20 am: 788990af1a
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1657039

Change-Id: Iaaa68abb8ab78b763b42040d4c333d6c502bdb2c
2021-04-05 20:52:52 +00:00
Kalesh Singh
58fdefc953 Memtrack Proxy Service Sepolicy
Bug: 177664629
Test: Boot; No avc denials;
Change-Id: Ieae6b1dc446a91aca26fdf1314690ca30b0ed5c5
2021-04-01 00:44:00 -04:00
Steven Moreland
53214fefd9 Merge "Remove old binder interface entry for keystore2" am: 0369e8ba9d am: 6a3aec4f4d am: f4c61816f8
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1654452

Change-Id: I78b6157c451dc253459a5bb3c59b29c223beed32
2021-03-31 00:21:14 +00:00
Stephen Crane
31f4eae342 Remove old binder interface entry for keystore2
Now that keystore2 is a VNDK stable interface, we need to remove the
legacy unqualified interface from the keystore service context.

Test: Compile, boot, and ensure no SELinux violations for keystore2 service
Change-Id: I770c08eae9690b0dc0e2bae86c9ef72f9540d2f4
2021-03-29 21:40:38 +00:00
Steven Moreland
74478747f0 Merge "Add IKeystoreService interface to keystore_service" am: 2d2f8af278 am: a5018de37c am: 057ee13375
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1627399

Change-Id: I6f5d81d4d0e49a15d64fd2c52f2701b1dbf59ce7
2021-03-29 19:08:45 +00:00
Steven Moreland
2d2f8af278 Merge "Add IKeystoreService interface to keystore_service" 2021-03-29 17:02:31 +00:00
Jeffrey Vander Stoep
e972d93ee2 Merge "virtmanager: add selinux domain" am: 48740d0d6b am: 49c5eeb4bd am: 29d3f92f0a
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1654408

Change-Id: I3b59de07d23b4db357843ae3686063a2424b3510
2021-03-29 09:04:42 +00:00
Jeff Vander Stoep
f16527f6cf virtmanager: add selinux domain
Address any denials in the log - currently just adding
the virtualization service.

Bug: 183583115
Test: ps -AZ | grep virtmanager
u: r:virtmanager:s0             virtmanager   2453     1 10930880  4544 0                   0 S virtmanager
Change-Id: Ie034dcc3b1dbee610c591220358065b8508d81cf
2021-03-25 22:22:05 +01:00
Treehugger Robot
289fef6cb5 Merge "Add soundtrigger3 HAL (AIDL) to sepolicy" am: 80acc2812e am: 08765f2b4e am: 5437929469
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1649829

Change-Id: I2173b5777c67a39b1534c79f35f6ed3b48794b21
2021-03-24 03:02:14 +00:00
Ytai Ben-Tsvi
9eaf3be545 Add soundtrigger3 HAL (AIDL) to sepolicy
Test: Compile and boot. Don't yet have a HAL implementation to test
      with.
Change-Id: I387abd0e8913eef865cba2aee0a4ef714232bb19
2021-03-23 10:34:19 -07:00
Stephen Crane
25a0df28a6 Add IKeystoreService interface to keystore_service
IKeystoreService is a VINTF stability interface, and keystore2 is now
using this interface correctly from Rust.

Test: m && adb shell start keystore2
Bug: 179907868
Change-Id: I3b583df2fac7e6bca7c1875efb7650f9ea0a548c
2021-03-22 11:46:59 -07:00
Thierry Strudel
49ef5dcf5e rename power_stats service to powerstats
Ignore-AOSP-First: powerstats service is new in Android S and not in AOSP
Tests: adb shell incident -b > incident_report.proto
Tests: dumpsys powerstats
Tests: atest FrameworksServicesTests:PowerStatsServiceTest
Bug: 159813106
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Change-Id: I25c9d5ea9af2e4768938342c977a6d888420de87
2021-03-15 16:58:13 -07:00
Aaron Huang
eaf9fa72c3 Merge "Add selinux policies for pac_proxy_service" am: 68e7eaf35d am: 14716bb880 am: 13e3769f74
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1553997

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4100b47e48094bfe86ca6ec43bc26c1a3efd55c7
2021-03-15 12:56:09 +00:00
Aaron Huang
68e7eaf35d Merge "Add selinux policies for pac_proxy_service" 2021-03-15 11:49:45 +00:00
Treehugger Robot
9b56cbc670 Merge "Keystore 2.0: Rename KeystoreUserManager to KeystoreMaintenance" am: 20a1a984ad am: 3a40fd261a am: 745e5fd871
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1622582

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifc82d58908c74fc2ae0f8807f9c99291cf5a8b93
2021-03-11 13:01:02 +00:00
Janis Danisevskis
f3fe4cfc06 Keystore 2.0: Rename KeystoreUserManager to KeystoreMaintenance
Test: N/A
Change-Id: I40c07e40cb0a852814058fe89d57c44ea85f1994
2021-03-09 14:35:16 -08:00
Aaron Huang
e2e39dfba3 Add selinux policies for pac_proxy_service
The policies allow system server to register a pac_proxy_service.

Bug: 177035719
Test: FrameworksNetTests

Change-Id: Idf64dc6e491f5bce66dcab2dbf15823c8d0c2403
2021-03-03 20:18:44 +08:00
Janis Danisevskis
360bc8c4b3 Merge "Keystore 2.0: Add policy for vpnprofilestore" am: ffdbf4370a am: 99590f81c5 am: 9a04a6e84f
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1569720

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I348a2761c8a65d57943c9531e4a1efd6711b61b0
2021-03-01 08:04:30 +00:00
Janis Danisevskis
291bc98a36 Keystore 2.0: Add policy for vpnprofilestore
Test: N/A
Change-Id: Iba6ca7be95dfcead8ce8ee17d6a6d78a5441d58f
2021-02-23 13:24:52 -08:00
Janis Danisevskis
13de5cd5b2 Merge "Keystore 2.0: Add permissions and policy for user manager AIDL." am: 1aad552cfd am: 5d5296e396 am: 17a5923e03
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1560611

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I708bf1c7939df174daaa4908f0fb828c5de5d66a
2021-02-19 01:25:11 +00:00
Janis Danisevskis
1aad552cfd Merge "Keystore 2.0: Add permissions and policy for user manager AIDL." 2021-02-18 23:00:29 +00:00
Hasini Gunasinghe
685ca0c888 Keystore 2.0: Add permissions and policy for user manager AIDL.
Bug: 176123105
Test: User can set a password and unlock the phone.
Change-Id: I96c033328eb360413e82e82c0c69210dea2ddac9
2021-02-17 08:55:31 -08:00
Treehugger Robot
5f5a9d836d Merge "Adding SEPolicy for IRemotelyProvisionedComponent" am: 5ace493461 am: d074d435c8 am: 621d0198c5
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1569961

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9d998ef60d046c571f5803b750b1b0c38fc47987
2021-02-17 01:38:12 +00:00
Max Bires
d2a9e6e630 Adding SEPolicy for IRemotelyProvisionedComponent
This SEPolicy change allows the hal_keymint domain to add
hal_remotelyprovisionedcomponent_service to hwservice_manager.

Test: The Keymint HAL can successfully start an instance of
IRemotelyProvisionedComponent

Change-Id: I15f34daf319e8de5b656bfacb8d050950bf8f250
2021-02-15 20:48:45 -08:00
Treehugger Robot
6cc2899475 Merge "The SE Policies to incorporate ISecureClock and ISharedSecret services along with IKeyMintDevice service into default keymint HAL Server. Test: Rebuild, execute and run atest VtsAidlSharedSecretTargetTest and atest VtsAidlSecureClockTargetTest. Bug: b/171844725, b/168673523." am: 98e48ac6b4 am: cf5f18538e am: b4781f0eca
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1562770

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idea77691f9239721d3254c397563924db7eac4e8
2021-02-12 05:50:19 +00:00
Shubang Lu
7336caac0d Merge "Add SE policy for media_metrics" am: a19f9d2455 am: fd40534a40 am: 31cd19cb1e
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1580990

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I914da5f2f5d9e4781db22823099de6df92653df8
2021-02-12 05:50:05 +00:00
Treehugger Robot
98e48ac6b4 Merge "The SE Policies to incorporate ISecureClock and ISharedSecret services along with IKeyMintDevice service into default keymint HAL Server. Test: Rebuild, execute and run atest VtsAidlSharedSecretTargetTest and atest VtsAidlSecureClockTargetTest. Bug: b/171844725, b/168673523." 2021-02-12 02:42:35 +00:00
shubang
2210767054 Add SE policy for media_metrics
Test: CTS;
Change-Id: Ib9382f2513d8fd0e6812d0157c710d0ad5817231
2021-02-11 18:38:07 +00:00
Vova Sharaienko
9a1fa1a5a5 Merge "Stats: new sepolicy for the AIDL service" am: e8d2732651 am: 28497aaed1 am: 5b1e49a609
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1570880

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ieb9cb60e84a824135efc824d8f4d13dcedc2bcc9
2021-02-11 04:44:52 +00:00
Vova Sharaienko
e8d2732651 Merge "Stats: new sepolicy for the AIDL service" 2021-02-11 03:07:56 +00:00
Vova Sharaienko
c64a5b42aa Stats: new sepolicy for the AIDL service
Allows the AIDL IStats service to be exposed via ServiceManager
Defines IStats service client domain to be used by pixelstats_vendor

Bug: 178859845
Test: Build, flash, and aidl_stats_client
Change-Id: If41e50d0182993d0b7f8501e9147e0becf526689
2021-02-10 23:48:35 +00:00
Chirag Pathak
814e89a1b2 The SE Policies to incorporate ISecureClock and ISharedSecret services along with IKeyMintDevice service into default keymint HAL Server.
Test: Rebuild, execute and run atest VtsAidlSharedSecretTargetTest and atest VtsAidlSecureClockTargetTest.
Bug: b/171844725, b/168673523.

Change-Id: I8b81ec12c45566d31edcd117e41fd559df32c37d
2021-02-10 18:45:07 +00:00
Treehugger Robot
654695c91b Merge "SEPolicy for RemoteProvisioning App" am: e6654e8bfd am: 1018f58e44 am: a49cceb4a3
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1536783

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0488fb9454347af8b93b55253f157757589733f7
2021-02-10 05:33:07 +00:00
Treehugger Robot
e6654e8bfd Merge "SEPolicy for RemoteProvisioning App" 2021-02-10 04:20:52 +00:00
Collin Fijalkovich
2420721a4d Merge "Configure sepolicy for TracingServiceProxy" am: 1f318c8cab am: 0ac7fa9374 am: 6890c61dab
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1528451

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I028cd1890fd00767a3e2e7023ecf27748b974ab0
2021-02-08 21:36:53 +00:00
Collin Fijalkovich
1f318c8cab Merge "Configure sepolicy for TracingServiceProxy" 2021-02-08 17:24:06 +00:00
Treehugger Robot
ad00e4b605 Merge "Fix service name for VPN_MANAGEMENT_SERVICE." am: 47d078e1d4 am: cdccadbb6c am: 21712f0049
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1579864

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If8a79459398dd325a500a3baf30057dd3ea8dfcf
2021-02-08 11:21:01 +00:00
Max Bires
23f0f3b28a SEPolicy for RemoteProvisioning App
This change adds the SEPolicy changes required to support the remote
provisioning flow. The notable additions are specifically labeling the
remote provisioning app and giving it access to find the remote
provisioning service which is added in keystore. It also requires
network access in order to communicate to the provisioning servers.

This functionality is extremely narrow to the point that it seems worth
it to define a separate domain for this app, rather than add this in to
the priv_app or platform_app permission files. Since this app also
communicates with the network, it also seems advantageous to limit its
permissions only to what is absolutely necessary to perform its
function.

Test: No denials!
Change-Id: I602c12365a575d914afc91f55e6a9b6aa2e14189
2021-02-08 01:33:12 -08:00
Lorenzo Colitti
d7c9de4e31 Fix service name for VPN_MANAGEMENT_SERVICE.
aosp/1574082 added sepolicy for a "vpnmanager" system service
which is being introduced to move code from ConnectivityService
to a new VpnManagerService.

Unfortunately that CL missed the fact that "vpn_management" is
already a service name and present in the public API since R.
Instead of adding another service name, use the existing service
name to lessen confusion. It is difficult to avoid confusion
entirely because there was already a public class called
VpnService when the VpnManager class was added to the public API
surface.

Bug: 173331190
Test: builds, boots, "dumpsys vpn_management" throws no errors
Change-Id: I4ab188ef62592aac167ba1f7b586accc882815e8
2021-02-07 17:51:53 +09:00
Collin Fijalkovich
6f4cfe8709 Configure sepolicy for TracingServiceProxy
Configures sepolicy to allow for the new TracingServiceProxy system
services, and to allow Perfetto to access the service.

Bug: 175591887
Test: Validated the service started successfullyy, and invoked via CLI
Change-Id: Idb6438948a9d96063f8455544b97ef66267cde23
2021-02-05 11:04:11 -08:00
Lorenzo Colitti
5a90802341 Merge "Add sepolicy for the vpnmanager service." am: 9b20cadf4a am: 22ec4b2218 am: 0848d6eb43
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1574082

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8fd00cd9d0ad66bac09516403a9d68957aebcb49
2021-02-04 12:16:11 +00:00
Lorenzo Colitti
5ee34a0ed3 Add sepolicy for the vpnmanager service.
The system server code that backs VPN APIs such as VpnService and
VpnManager currently lives in ConnectivityService and is accessed
via IConnectivityManager.

In S, ConnectivityService is being moved to the tethering
mainline module, but the VPN code is not. So add an new
service (vpnmanager, IVpnManager, VpnManagerService) to support
these APIs.

Service implementation at http://r.android.com/1572982 . That CL
cannot be in a topic with this one because it will conflict in
master and sc-dev.

Bug: 173331190
Test: builds, boots, "dumpsys vpnmanager" throws no errors
Change-Id: Ic09c93cc454ec959a3beda2b09efa74b8db30c27
2021-02-04 13:01:09 +09:00
Treehugger Robot
05c2ffa894 Merge "Add sepolicy for app hibernation system service" am: 4fb66f04d7 am: 50e905c408 am: 09276d791a
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1544944

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5632c479121670e23c5c3878476643f85f8cfb69
2021-01-27 07:56:38 +00:00
Treehugger Robot
4fb66f04d7 Merge "Add sepolicy for app hibernation system service" 2021-01-26 22:23:13 +00:00