Commit graph

43925 commits

Author SHA1 Message Date
Dennis Shen
b7052688e3 Merge "Update SELinux to allow vendor process access" into main 2023-09-12 12:19:14 +00:00
Wilson Sung
e804cc4342 Allow shell access to attestation properties am: 679b7cb04a
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2747474

Change-Id: Iff01f882609d1de339beb5dbc30f6e6c309e5d71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-12 08:49:56 +00:00
Wilson Sung
679b7cb04a Allow shell access to attestation properties
The properties for attestation are congifured in build.prop files and
used by frameworks Build.java.
Allow app to access them from 'adb shell am'

Bug: 296168846
Test: m selinux_policy
Change-Id: Ie749cf5d621c03c21aa538f96a06d21680a61569
2023-09-12 11:33:14 +08:00
Jooyung Han
0cde24b1d4 Merge "APEX file_context should have valid labels" into main am: 84b9b076ab
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2745099

Change-Id: If8170d47783132e432e34b41e5f84afc42611777
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 22:59:01 +00:00
Treehugger Robot
0d737278c2 Merge "Add device_config read access to priv_app" into main am: 6ac568d4ab
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2747353

Change-Id: Ia3ee33accbc40db7204f8db84c9d750bba90bd5f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 22:58:14 +00:00
Jooyung Han
84b9b076ab Merge "APEX file_context should have valid labels" into main 2023-09-11 22:30:20 +00:00
Treehugger Robot
6ac568d4ab Merge "Add device_config read access to priv_app" into main 2023-09-11 22:22:59 +00:00
Kangping Dong
044116c3e4 Merge "[Thread] move ot-daemon to the tethering module" into main am: e32751f748
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2736996

Change-Id: I15539e9663e50ba4d77f311d1e6a9b5fc12d9970
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-11 18:58:45 +00:00
Alexei Nicoara
957e8f37a1 Making sys.boot.reason.last restricted
sys.boot.reason.last needs to be readable by SysUI to correctly display the reason why authentication is required to unlock the phone.

Bug: 299327097
Test: presubmit
Change-Id: I9f83ade92858056609bc665ecb6ce9b93eb051e4
2023-09-11 18:29:24 +01:00
Dennis Shen
584852eaa7 Update SELinux to allow vendor process access
Bug: b/298934058, b/295379636
Change-Id: I2521ae27a88d471263ba4bff69947b2ce28b4b4e
2023-09-11 14:30:29 +00:00
Kangping Dong
e32751f748 Merge "[Thread] move ot-daemon to the tethering module" into main 2023-09-11 11:20:52 +00:00
Jooyung Han
92bfb372fc APEX file_context should have valid labels
A new test mode (--all) tests if every file context label used in APEX
is "known". It should fail if unknown label is used in APEX.

Bug: 299391194
Test: atest apex_sepolicy_tests_test
Change-Id: Ie467019a6dc74bba9901ba8d705b31e6de24cd62
2023-09-11 13:39:09 +09:00
Seigo Nonaka
5717c080c8 Add device_config read access to priv_app
Bug: 299830837
Test: manually done
Change-Id: Ie0490496bcb98d7c5894b2ada372fe76fea64d26
2023-09-11 09:53:44 +09:00
Jeff Pu
2b22cd44e4 Accept binder calls from servicemanger am: 3778cd4765
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2746858

Change-Id: Ie4c08f7b8d88fec9283aa31da9442f556253007a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 22:06:18 +00:00
Jeff Pu
3778cd4765 Accept binder calls from servicemanger
Bug: 228638448
Test: Manual
Change-Id: Iaa64d252417ffeda7c07365c5ecd1b517b07314b
2023-09-08 16:02:05 -04:00
Seungjae Yoo
12e4f6930b Merge "Change sepolicy of virtualizationservice and vfio_handler for VM DTBO" into main am: 2151f06ada
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2745015

Change-Id: I6631ae7bf84211e996f6f1375e13ea9d1791598f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 05:19:30 +00:00
Treehugger Robot
8d022b888c Merge "Use prebuilts for compat test if prebuilts exist" into main am: 6952d2f612
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2746580

Change-Id: I920639164d6e304b50046a17506be2972ee1199f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 05:18:40 +00:00
Seungjae Yoo
2151f06ada Merge "Change sepolicy of virtualizationservice and vfio_handler for VM DTBO" into main 2023-09-08 05:04:03 +00:00
Treehugger Robot
6952d2f612 Merge "Use prebuilts for compat test if prebuilts exist" into main 2023-09-08 04:35:02 +00:00
Inseob Kim
df2d29a4bb Fix se_freeze_test am: 472d7dcada
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2744995

Change-Id: Ie98763c9ec0ad65aa96f2b5e0fdf7102841a743c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08 04:30:23 +00:00
Inseob Kim
472d7dcada Fix se_freeze_test
The module name is changed but it isn't applied to Android.mk

Bug: 296875906
Test: m selinux_policy and see se_freeze_test run
Change-Id: Ia25845a1aff2c2b5f910f8432a455ee93a157580
2023-09-08 11:54:11 +09:00
Inseob Kim
2aac33597d Use prebuilts for compat test if prebuilts exist
system/sepolicy should support both REL build and ToT build. That means
that system/sepolicy and prebuilts may differ. As the frozen sepolicy is
what vendor sepolicy uses, so we need to use prebuilts to run Treble
compat test.

Bug: 296875906
Test: m selinux_policy on REL
Change-Id: I4b290266ba87e3f011d640bec133fc88359ea52f
2023-09-08 10:44:49 +09:00
Ady Abraham
6ffc794089 Merge "sepolicy: allow surfaceflinger to read device_config_aconfig_flags_prop" into main am: ab64129dbb
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2743784

Change-Id: Iae18b26bf74ae987212370d8c173bf32b4aa0f05
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 19:54:28 +00:00
Treehugger Robot
d065d025ed Merge "C2 AIDL sepolicy update" into main am: 8342def00a
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2721424

Change-Id: I096e99c403f513a203040cf97e199392dc794177
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 19:52:25 +00:00
Ady Abraham
ab64129dbb Merge "sepolicy: allow surfaceflinger to read device_config_aconfig_flags_prop" into main 2023-09-07 19:16:18 +00:00
Treehugger Robot
8342def00a Merge "C2 AIDL sepolicy update" into main 2023-09-07 17:54:05 +00:00
Treehugger Robot
31406c242e Merge changes Ia2c07331,I93f0d222 into main am: f476f5c8f1
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2742356

Change-Id: If3a6af8553b6d645653ae38e898c3770b7dab868
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 09:14:47 +00:00
Treehugger Robot
f476f5c8f1 Merge changes Ia2c07331,I93f0d222 into main
* changes:
  Use only public cil files for Treble compat test
  Build prebuilt policy with Soong
2023-09-07 08:52:45 +00:00
Kangping Dong
07bc7d3243 Merge "[Thread] move ot-ctl to vendor" into main am: 1348776bed
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2737114

Change-Id: I133f6f04d542130cbbd80a3a941991d560eb3ca5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 08:25:53 +00:00
Seungjae Yoo
f0aaa15d28 Change sepolicy of virtualizationservice and vfio_handler for VM DTBO
Bug: 297103622
Test: adb shell /apex/com.android.virt/bin/vm run-microdroid --devices /sys/bus/platform/devices/16d00000.eh --protected
Change-Id: Icebba7f441a94f8ba54b4a9d35036d4202a513ab
2023-09-07 17:07:44 +09:00
Kangping Dong
1348776bed Merge "[Thread] move ot-ctl to vendor" into main 2023-09-07 07:58:17 +00:00
Inseob Kim
0d49b9bc28 Use only public cil files for Treble compat test
Rationale for this change:

1) Vendors use only public files, so we should be able to use only
   public cil files for compatibility test.
2) treble_sepolicy_tests_for_release.mk is too complex, because it
   requires compiled sepolicy. Reducing the complexity will help migrate
   into REL build.
3) This fixes a tiny bug of treble_sepolicy_tests that it can't catch
   public types being moved to private types, and then removed. 29.0.cil
   and 30.0.cil change contains such missing public types.

Bug: 296875906
Test: m selinux_policy (with/without intentional breakage)
Change-Id: Ia2c0733176df898f268b5680195da25b588b09c7
2023-09-07 16:35:08 +09:00
Inseob Kim
5d7423ff3d Build prebuilt policy with Soong
... and remove redundant Makefile codes. This also updates commit hook
as we now only use Soong to build sepolicy.

Bug: 296875906
Test: m selinux_policy
Change-Id: I93f0d222a0c10e31c51c9380780a8927c47d62b1
2023-09-07 16:32:30 +09:00
Ady Abraham
62d337ec6d sepolicy: allow surfaceflinger to read device_config_aconfig_flags_prop
Bug: 297528870
Change-Id: I711bc8fa3aa1c8f90588327a411f46421f14da90
Test: presubmit
2023-09-07 02:47:45 +00:00
Wonsik Kim
53e5ae799d Add a fuzzer for media.c2 HAL
Bug: 251850069
Test: presubmit
Change-Id: I4c58df29641465c019147b86bfd58b0e37961b1f
2023-09-06 14:31:27 -07:00
Wonsik Kim
a981983e70 C2 AIDL sepolicy update
Bug: 251850069
Test: presubmit
Change-Id: Ica39920472de154aa01b8e270297553aedda6782
2023-09-06 14:30:26 -07:00
Inseob Kim
2753f2f6df Move tests from treble_sepolicy_tests am: eb0d40aa85
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2736197

Change-Id: Ia2a601c7ed8378d18909a83f6689e67ef1586089
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 08:49:51 +00:00
Kangping Dong
0c9f48d6ef [Thread] move ot-daemon to the tethering module
The com.android.threadnetwork module is merged into
the com.android.tethering module now.

Bug: 296211911
Change-Id: I9fec91fff4e2ae4be26da4b0f52e739c4a251cd2
2023-09-06 14:07:14 +08:00
Kangping Dong
fd10f344dc [Thread] move ot-ctl to vendor
"ot-ctl" is a command line tool which is useful for debugging or
testing with "ot-daemon". It's not required to be part of the
system image. It was previously added to the com.android.threadnetwork
apex package, and this commits removes it from the apex.

Test: ot-ctl is removed from /apex/com/android/threadnetwork/bin
Bug: 299224389
Change-Id: I607a02c9efb26f404ea9da2e5b7109094d3232b6
2023-09-06 14:07:02 +08:00
Inseob Kim
eb0d40aa85 Move tests from treble_sepolicy_tests
Contrast to its name, sepolicy_tests also contains tests related to
Treble. Also tests other than the compat mapping test in
treble_sepoliy_tests don't need to be run several times.

Moving tests except for compat mapping test to sepolicy_tests to
simplify treble_sepolicy_tests and to reduce build time.

Bug: 288807412
Test: m selinux_policy
Test: atest SELinuxHostTest
Change-Id: I102fa48faf49b7028dc1bb5f21de65fa99babe6f
2023-09-06 14:26:25 +09:00
Treehugger Robot
a1ea121d5c Merge "Skip UP1A.230905.019" into aosp-main-future 2023-09-05 19:54:47 +00:00
Treehugger Robot
b8fc41e802 Merge "Allow crash_dump to read vendor apex dir." into main am: 0acb54ce2c
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2739077

Change-Id: Ie9ea65da57de2ed0ecbe144428f9a3f98c97c58b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 13:04:46 +00:00
Treehugger Robot
0acb54ce2c Merge "Allow crash_dump to read vendor apex dir." into main 2023-09-05 12:04:20 +00:00
Jooyung Han
18a42afb49 Allow crash_dump to read vendor apex dir.
Bug: 298699169
Test: crash dumps from a binary in vendor apex
Change-Id: I4eb2c4162ae2e78ef126987e7de0f838b6db205c
2023-09-05 17:51:38 +09:00
Treehugger Robot
d1710c749b Merge "Relax freeze_test to check only compatibility" into main am: b316f8bf95
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2737118

Change-Id: I575c28928e4c5690fc1b87ee09938cf0ed451476
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 07:06:46 +00:00
Treehugger Robot
b316f8bf95 Merge "Relax freeze_test to check only compatibility" into main 2023-09-05 06:29:39 +00:00
Thiébaud Weksteen
1d899a3fa9 Merge "Remove SeamendcHostTest from TEST_MAPPING" into main am: 70dc0bb5dc
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2733316

Change-Id: I2a20cf7a978640fa6622232439f85c3932fb1c72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-05 06:15:32 +00:00
Thiébaud Weksteen
70dc0bb5dc Merge "Remove SeamendcHostTest from TEST_MAPPING" into main 2023-09-05 05:10:01 +00:00
Inseob Kim
36d9d39e6e Relax freeze_test to check only compatibility
For now, freeze_test compares prebuilts against sources with diff, to
ensure that sources are identical to prebuilts. However, it could be the
case that the branch should be able to build both REL and ToT. In that
case, changes to the sources are inevitable and the freeze test will
fail.

To fix the issue, freeze_test will now only check compatibility. To be
specific, it will check if any public types or attributes are removed.
Contexts files and neverallow rules are not checked, but they may be
added later. Also to support the new freeze_test

- build_files module is changed to use glob (because REL version won't
  be in compat versions list)
- plat_pub_policy modules are added under prebuilts/api (because
  freeze_test needs that)

Bug: 296875906
Test: m selinux_policy
Change-Id: I39c40992965b98664facea3b760d9d6be1f6b87e
2023-09-05 03:37:18 +00:00
Treehugger Robot
bf807744ad Merge "[service-vm] Adjust sepolicy for running service VM" into main am: 3e4b7bf2ce
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/2735894

Change-Id: Ia0868d86d649329f40122b3d51d521bcdd4aa5c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-04 17:30:47 +00:00