Alan Stokes
a45646c024
Allow CompOS to read VM config properties
...
We want to allow both the VM and ART to contribute to the VM config
(e.g. memory size), so define labels for 2 sets of properties and
grant the necessary access.
Bug: 274102209
Test: builds
Change-Id: Iaca1e0704301c9155f44e1859fc5a36198917568
2023-03-23 15:40:14 +00:00
Tri Vo
0099ba37f3
Merge "Remove RemoteProvisioner and remoteprovisioning services"
2023-03-17 17:18:01 +00:00
Tri Vo
4bb2d30701
Remove RemoteProvisioner and remoteprovisioning services
...
Bug: 273325840
Test: keystore2_test
Change-Id: I295ccdda5a3d87b568098fdf97b0ca5923e378bf
2023-03-14 15:45:35 -07:00
Alice Wang
13e58cf7b1
[dice] Remove all the sepolicy relating the hal service dice am: 5e94b1698c
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2426073
Change-Id: I60664669f08fa3d83dfacb57ebd7da912951ad0a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-24 19:57:23 +00:00
Alice Wang
5e94b1698c
[dice] Remove all the sepolicy relating the hal service dice
...
As the service is not used anywhere for now and in the near future.
Bug: 268322533
Test: m
Change-Id: I0350f5e7e0d025de8069a9116662fee5ce1d5150
2023-02-24 08:34:26 +00:00
Treehugger Robot
c82b062d97
Merge "Allow dumpstate to read /data/system/shutdown-checkpoints/" am: 863cedfae6
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2422419
Change-Id: I8c47edbc31e2bf7bf0142ed0cb63af32385c6160
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-22 11:44:51 +00:00
Treehugger Robot
863cedfae6
Merge "Allow dumpstate to read /data/system/shutdown-checkpoints/"
2023-02-22 10:21:25 +00:00
Ioannis Ilkos
2a73c910d3
Merge "Sysprop for the count of active OOME tracing sessions" am: 300f93bf5a
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2433415
Change-Id: I94c868305fc6c681b01bc86b6f3d9ffaf8fac9d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-17 18:51:54 +00:00
Ioannis Ilkos
300f93bf5a
Merge "Sysprop for the count of active OOME tracing sessions"
2023-02-17 17:50:59 +00:00
Alfred Piccioni
89cd736d8d
Merge "Adds support for fuseblk binaries." am: dd4c5fa93b
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2393296
Change-Id: Ic1a8d2a297848430a672826f1780bbb3e976f1be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-17 16:23:38 +00:00
Alfred Piccioni
dd4c5fa93b
Merge "Adds support for fuseblk binaries."
2023-02-17 15:15:31 +00:00
Woody Lin
35541e183f
Allow dumpstate to read /data/system/shutdown-checkpoints/
...
Bug: 260366497
Bug: 264600011
Test: Take bugreport and check dmesg for avc error
Test: Reboot and check shutdown-checkpoints
Change-Id: Ifcc7de30ee64e18f78af147cd3da39d7c6dc6f5f
2023-02-16 14:23:33 +08:00
Feiyu Chen
e68fe11b3a
Merge "Add SELinux policy for edgetpu_native device_config prop" am: b4b757cd83
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2434232
Change-Id: Iba932201fe56697b23f25a7ecb41a2f9829dd48a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-15 03:31:01 +00:00
Feiyu Chen
b4b757cd83
Merge "Add SELinux policy for edgetpu_native device_config prop"
2023-02-15 02:32:22 +00:00
Ioannis Ilkos
8d168e2d8a
Sysprop for the count of active OOME tracing sessions
...
In order for ART code to call perfetto DataSource::Trace() we need to
wait for all data source instances to have completed their setup. To do
so, we need to know how many of them exist.
This introduces a new sysprop traced.oome_heap_session.count, writeable
by perfetto traced and readable by apps and system_server that can be
used to communicate this.
See go/art-oom-heap-dump for more details
Test: manual, atest HeapprofdJavaCtsTest
Bug: 269246893
Change-Id: Ib8220879a40854f98bc2f550ff2e7ebf3e077756
2023-02-14 15:14:39 +00:00
Pedro Loureiro
14060332c7
Merge "Add SEPolicy for device config service" am: 43b0b8a65c
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2430374
Change-Id: I16624fc06f8cd15de32734e31a47acc504a5dea1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 12:16:51 +00:00
Pedro Loureiro
43b0b8a65c
Merge "Add SEPolicy for device config service"
2023-02-14 11:18:41 +00:00
Akilesh Kailash
12e344b7de
Merge "Set sepolicy for ublk control device and block device" am: a3c0ca4e67
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2433673
Change-Id: Ia1104a335a2932a48bc2f9eecb547c65e13fe334
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-14 04:41:42 +00:00
Akilesh Kailash
a3c0ca4e67
Merge "Set sepolicy for ublk control device and block device"
2023-02-14 03:59:06 +00:00
Akilesh Kailash
63a21044f2
Set sepolicy for ublk control device and block device
...
ublk-control device: /dev/ublk-control
ublk-block device: /dev/block/ublkbN where N is 0,1,2..
Bug: 269144965
Test: Verify sepolicy changes through kernel logs when user-space daemon
communicates with ublk driver
Change-Id: I10de557566e3c0628ea72fbbda4cff21e7cda68f
Signed-off-by: Akilesh Kailash <akailash@google.com>
2023-02-13 16:30:40 -08:00
Jeffrey Huang
e53a5b25b6
Merge "Restrict system server from reading statsd data" am: 01fd5eb907
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2410783
Change-Id: I18a4d57758865141a9e0b6f479ff5aabf8db0ece
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-13 23:07:21 +00:00
Jeffrey Huang
01fd5eb907
Merge "Restrict system server from reading statsd data"
2023-02-13 22:37:09 +00:00
feiyuchen
70e1942fb3
Add SELinux policy for edgetpu_native device_config prop
...
The new android property namespace will store the configurations which are set on the server side and read by the EdgeTpu HAL.
Notes:
* This CL is similar to nnapi_native CL: https://android-review.git.corp.google.com/c/platform/system/sepolicy/+/1844919
* The read permission of EdgeTpu HAL will be added in another internal CL.
Test: mm
Bug: 243553703
Bug: 246401730
Change-Id: I5705f679148b313d919f334c51e31f7645aca82a
2023-02-13 21:55:57 +00:00
Pedro Loureiro
58847ab171
Add SEPolicy for device config service
...
A new mainline module that will have the device config logic requires a new service (device_config_updatable).
Bug: 252703257
Test: manual because logic that launches service is behind flag
Change-Id: I4ffba0c7d2afc44af8438b7d84d836e42388bd7d
2023-02-13 09:37:12 +00:00
Brian Julian
e346f2fe80
Merge "Backports sepolicy for AltitudeService to T." am: f388934ffe
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2406792
Change-Id: I8cd9387e7b27e032e38b23a531a710a8801c6a5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-08 18:51:22 +00:00
Brian Julian
32b0a39d27
Backports sepolicy for AltitudeService to T.
...
Test: VtsHalAltitudeServiceTargetTest
Bug: 265013616
Change-Id: I8eb6af8b9350e0d021ef781eb9f3776b4adf3b7f
Merged-In: I8eb6af8b9350e0d021ef781eb9f3776b4adf3b7f
2023-02-07 19:38:17 +00:00
Jeffrey Huang
fcf5a91e00
Restrict system server from reading statsd data
...
Bug: 267367423
Test: m -j
Change-Id: I0628142c2380cf568643f864ae211fbf5380550c
2023-02-06 18:29:21 -08:00
Treehugger Robot
d1c26af880
Merge "Add selinux permissions for DeviceAsWebcam Service" am: 870b368ec5
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2410788
Change-Id: I4f2f7feac7862ff525e1ebf15c7ee1f036ca9fb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-03 02:00:29 +00:00
Avichal Rakesh
e0929241a1
Add selinux permissions for DeviceAsWebcam Service
...
DeviceAsWebcam is a new service that turns an android device into a
webcam. It requires access to all services that a
regular app needs access to, and it requires read/write permission to
/dev/video* nodes which is how the linux kernel mounts the UVC gadget.
Bug: 242344221
Bug: 242344229
Test: Manually tested that the service can access all the nodes it
needs, and no selinux exceptions are reported for the service
when running.
Change-Id: I45c5df105f5b0c31dd6a733f50eb764479d18e9f
2023-02-02 12:26:33 -08:00
Alfred Piccioni
30ae427ed0
Adds support for fuseblk binaries.
...
This is a rather large, single change to the SEPolicies, as fuseblk
required multiple new domains. The goal is to allow any fuseblk
drivers to also use the same sepolicy.
Note the compartmentalized domain for sys_admin and mount/unmount
permissions.
Bug: 254407246
Test: Extensive testing with an ADT-4 and NTFS USB drives.
Change-Id: I6619ac77ce44ba60edd6ab10e8436a8712459b48
2023-02-02 15:32:39 +01:00
Alex Hong
41d99a9951
Merge changes from topic "fix_missing_set_denials" am: e79c506fe4
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2410790
Change-Id: I24358b23b958974800af032577f7b6758e0f05c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-02 14:23:14 +00:00
Alex Hong
255a5ae441
Allow vendor_init to set properties for recovery/fastbootd USB IDs am: 1abf80e5c1
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2388472
Change-Id: I01ea3a4ebb6d5111941e61f8a7e41bbff2d83a3c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-02 14:23:10 +00:00
Alex Hong
e79c506fe4
Merge changes from topic "fix_missing_set_denials"
...
* changes:
Add build properties for attestation feature
Allow vendor_init to set properties for recovery/fastbootd USB IDs
2023-02-02 14:04:36 +00:00
Alex Hong
4c23abb282
Add build properties for attestation feature
...
The properties for attestation are congifured in build.prop files and
used by frameworks Build.java.
Allow vendor_init to set these properties and allow Zygote to access
them.
Bug: 211547922
Test: SELinuxUncheckedDenialBootTest
Change-Id: I5666524a9708c6fefe113ad4109b8a344405ad57
2023-02-02 18:52:35 +08:00
Karthik Mahesh
4fc055b5cd
Merge "Add sepolicy for ODP system server service." am: 4fd76147c4
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2402876
Change-Id: I0aea8a5cc639ad2bd70b59148dfc2c463827497a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-02 10:39:26 +00:00
Karthik Mahesh
4fd76147c4
Merge "Add sepolicy for ODP system server service."
2023-02-02 08:21:46 +00:00
Karthik Mahesh
52e5914ca4
Add sepolicy for ODP system server service.
...
Bug: 236174677
Test: build
Change-Id: Ief208b795dd05ddaa406f50a5fa91f46fe52fd71
2023-02-01 22:27:36 -08:00
Florian Mayer
e17c5905a6
Merge "[MTE] Add memory_safety_native_boot namespace" am: cbeec8f821
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2411338
Change-Id: I68c6e7830b622bcbd6d9f10527378183a53044ae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 22:21:23 +00:00
Florian Mayer
cbeec8f821
Merge "[MTE] Add memory_safety_native_boot namespace"
2023-02-01 21:41:45 +00:00
Charles Chen
5317542847
Merge changes from topic "iso_compute" am: b36ecf6caa
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2390967
Change-Id: Ib84377f876f96dfcbac94bcee9a4a9c7cf408eed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 18:29:18 +00:00
Charles Chen
b36ecf6caa
Merge changes from topic "iso_compute"
...
* changes:
Add isolated_compute_app domain
Share isolated properties across islolated apps
2023-02-01 17:33:59 +00:00
Alex Hong
1abf80e5c1
Allow vendor_init to set properties for recovery/fastbootd USB IDs
...
Bug: 211547922
Test: SELinuxUncheckedDenialBootTest
Test: Enter recovery/fastbootd mode
$ lsusb -d 18d1:
Change-Id: Ibee1210c1a70a3165e70f9b3b57e11949e412c97
2023-02-01 17:49:32 +08:00
Treehugger Robot
a2cb810593
Merge "Add selinux permissions for ro.usb.uvc.enabled" am: 11eb002e83
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2410787
Change-Id: Ie38aa8c6a5be43b53cd72214cd6f4fe16f872407
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-01 07:43:58 +00:00
Florian Mayer
94926f51df
[MTE] Add memory_safety_native_boot namespace
...
Bug: 267234468
Change-Id: I248fdf58a744f0c70a26d6a8f7d4caa0a6ce8edb
2023-01-31 15:48:40 -08:00
Avichal Rakesh
a12d3103be
Add selinux permissions for ro.usb.uvc.enabled
...
This CL the selinux rules for the property ro.usb.uvc.enabled which will
be used to toggle UVC Gadget functionality on the Android Device.
Bug: 242344221
Bug: 242344229
Test: Manually tested that the property can only be read at runtime,
not written to.
Change-Id: I0fd6051666d9554037acc68fa81226503f514a45
2023-01-31 11:17:50 -08:00
Charles Chen
3d4a6b7474
Add isolated_compute_app domain
...
Provides a new domain to enable secure sensitive data processing. This
allows processing of sensitive data, while enforcing necessary privacy
restrictions to prevent the egress of data via network, IPC or file
system.
Bug: 255597123
Test: m && manual - sample app with IsolatedProcess=True can use camera
service
Change-Id: I401667dbcf492a1cf8c020a79f8820d61990e72d
2023-01-31 15:24:55 +00:00
Inseob Kim
1dba2f058a
Merge "Add comments on compat files" am: beee8849a6
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2405373
Change-Id: I09be668bc0fe182d1a87c046c1002a865f7b9342
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-31 07:32:10 +00:00
Inseob Kim
338f81baac
Add comments on compat files
...
To prevent further confusion.
Bug: 258029505
Test: manual
Change-Id: Iaa145e4480833a224b1a07fc68adb7d3e8a36e4b
2023-01-31 09:57:26 +09:00
Yuyang Huang
32788d6842
Blocks untrusted apps to access /dev/socket/mdnsd from U am: cfdea5f4f3
...
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2388478
Change-Id: I9cee4d4b5d13612b02f63b377d32efae99d3ca67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-20 10:09:07 +00:00
Yuyang Huang
cfdea5f4f3
Blocks untrusted apps to access /dev/socket/mdnsd from U
...
The untrusted apps should not directly access /dev/socket/mdnsd since
API level 34 (U). Only adbd and netd should remain to have access to
/dev/socket/mdnsd. For untrusted apps running with API level 33-, they
still have access to /dev/socket/mdnsd for backward compatibility.
Bug: 265364111
Test: Manual test
Change-Id: Id37998fcb9379fda6917782b0eaee29cd3c51525
2023-01-20 15:25:46 +09:00