Commit graph

90842 commits

Author SHA1 Message Date
Treehugger Robot
741ea4f1c6 Merge "ueventd: add support for driver section in ueventd.rc" into main am: 8b7d0aa8c0
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3357138

Change-Id: Iebd84185a6db7a1f3d2df6e8c37d121230c22e3f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 19:55:49 +00:00
Maciej Żenczykowski
4915189fa1 Merge "libcutils: create rust bindings for android ids" into main am: 932497ea1c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3364186

Change-Id: I2576780a5afd199ec7368114eb63e6733b255b3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 19:55:38 +00:00
Treehugger Robot
8b7d0aa8c0 Merge "ueventd: add support for driver section in ueventd.rc" into main 2024-11-19 19:49:13 +00:00
Maciej Żenczykowski
932497ea1c Merge "libcutils: create rust bindings for android ids" into main 2024-11-19 19:26:49 +00:00
Eric Caruso
d17d5c585e ueventd: add support for driver section in ueventd.rc
Allow ueventd configuration to specify what to do with
devices based on driver. This responds to bind events and
treats them similarly to add events.

The format of the driver stanza is exactly the same as
that of the subsystem stanza.

Bug: 376900376
Test: set up cbc_mbim driver stanza and ensure it properly
  creates and destroys device nodes when a USB device with
  that driver appears and disappears or is bound and unbound

Change-Id: I31f5c91bd074d14075b74fe7beefaa6ac07a7ac9
2024-11-19 12:07:30 -05:00
Treehugger Robot
6e61d69779 Merge "snapuserd: Use GTEST_SKIP in snapuserd_test." into main am: a7ce1a5975
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3363449

Change-Id: I7c269dfac4307039e51ecb59280dc6d8616d80e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 05:28:32 +00:00
Treehugger Robot
a7ce1a5975 Merge "snapuserd: Use GTEST_SKIP in snapuserd_test." into main 2024-11-19 05:01:23 +00:00
David Anderson
668ffc395d snapuserd: Use GTEST_SKIP in snapuserd_test.
The test harness treats an early exit as a failure, so use GTEST_SKIP()
instead.

Bug: 379242140
Test: vts_snapuserd_test
Change-Id: I25351bb7ebf65e6c56865662d297feb4a1f635b3
2024-11-18 19:24:29 -08:00
Neill Kapron
f1d00f0f2a libcutils: create rust bindings for android ids
For work on the new rust based bpfloader, we need access to the IDs in
android_filesystem_config.h for owner/group permissions of pinned bpf
programs and maps. Create android_ids crate to expose this
information to rust.

Bug: 359646531
Test: Manual
Change-Id: Iee827d8a80a82fbee02a76280668071713625abf
Signed-off-by: Neill Kapron <nkapron@google.com>
2024-11-19 02:47:16 +00:00
Christopher Ferris
aa62183b7c Merge "Remove non-UTF8 characters from string fields." into main am: d7f95d9e69
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3353805

Change-Id: I9c8384a41928e1c4021b26638c3de2bf1a74fa6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-18 21:46:30 +00:00
Christopher Ferris
d7f95d9e69 Merge "Remove non-UTF8 characters from string fields." into main 2024-11-18 21:26:08 +00:00
Treehugger Robot
ab934a214e Merge "Fix typo of snapuserd_verify.h" into main am: a747b7560a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3359022

Change-Id: I8b1bcf3e531916a05642adac93cfe8ce76380a97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-18 20:59:08 +00:00
Treehugger Robot
a747b7560a Merge "Fix typo of snapuserd_verify.h" into main 2024-11-18 20:35:08 +00:00
Treehugger Robot
2a0958b18f Merge changes Iae1cbfcc,I4466838c,I19c75e50,I2f49fab1 into main am: 569db94fa8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3353381

Change-Id: Ia0efeea6fff783b444be1396ca275352d88a5d97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-18 20:12:45 +00:00
Hung Nguyen
884efb9278 Merge "Add AID for memory management daemon" into main am: a0627e76ab
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3344544

Change-Id: I7334658d31b402a61e97b35c5238d3f70c19c9d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-18 20:11:43 +00:00
Treehugger Robot
569db94fa8 Merge changes Iae1cbfcc,I4466838c,I19c75e50,I2f49fab1 into main
* changes:
  libprocessgroup: Remove __BEGIN_DECLS and __END_DECLS
  libprocessgroup: Convert CGROUPV2_HIERARCHY_NAME to std::string
  libprocessgroup: Remove CGROUPV2_CONTROLLER_NAME
  libprocessgroup: Remove CGROUPS_RC_PATH
2024-11-18 19:57:51 +00:00
Hung Nguyen
a0627e76ab Merge "Add AID for memory management daemon" into main 2024-11-18 19:41:24 +00:00
Aeric
28b2556e90 Fix typo of snapuserd_verify.h
"advisible" should be "advisable"
"fucntionality" should be "functionality"

Bug: 379603290
Test: build pass
Change-Id: I6c95f2b186f479ba51df8603ce87c0522e91bf64
2024-11-18 17:32:55 +08:00
Chan Wang
d65d54a577 Merge "Use the new 'partition' field in 'ApexInfo' to identify vendor apexes" into main am: c759f23f2f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3351258

Change-Id: I6dbd2b808549375c2916b41bd38e198a73c1260c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-16 12:05:50 +00:00
Chan Wang
c759f23f2f Merge "Use the new 'partition' field in 'ApexInfo' to identify vendor apexes" into main 2024-11-16 11:41:00 +00:00
Orlando Arbildo
ddb1810afc Merge "trusty: utils: rpmb_dev: add wv secure storage init.rc" into main am: e4414f5856
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3294774

Change-Id: Id83d066376194127a78d1ba7741b785d3db7158a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-15 22:45:47 +00:00
Christopher Ferris
6a5db68385 Remove non-UTF8 characters from string fields.
The string type in the tombstone proto does not support non-UTF8
characters. Therefore, use the oct_encode function to encode the
abort_message field and message field from LogMessage.

Fix up stl includes, add ones that were missing and remove those not
being used.

Add new unit test to verify that the abort and log messages are
sanitized.

Bug: 279496937
Bug: 377940849
Bug: 378185483

Test: All unit tests pass.
Test: Ran pbtombstone on a crash with non-UTF8 characters and verified
Test: it processes properly after this change and fails before the change.
Change-Id: I3554d56caf9fcbfc410b4d554f6c3b4888b37e28
2024-11-15 22:44:42 +00:00
Orlando Arbildo
e4414f5856 Merge "trusty: utils: rpmb_dev: add wv secure storage init.rc" into main 2024-11-15 22:26:21 +00:00
Treehugger Robot
a11317c047 Merge "snapuserd: Change error message to verbose" into main am: 664f16c830
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3353119

Change-Id: Ib9e2e1230eda9a0fc1e74a36211ea338e9fcdcae
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-15 19:58:50 +00:00
Treehugger Robot
99a59649ce Merge "Revert^5 "Set block device as RO/RW before mount"" into main am: 07f977220e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3335053

Change-Id: I0486e278c22c15d041e8b08c4683a8fb3725e24d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-15 19:58:13 +00:00
Treehugger Robot
664f16c830 Merge "snapuserd: Change error message to verbose" into main 2024-11-15 19:42:17 +00:00
Treehugger Robot
07f977220e Merge "Revert^5 "Set block device as RO/RW before mount"" into main 2024-11-15 19:30:21 +00:00
Akilesh Kailash
d02b74411b snapuserd: Change error message to verbose
These error logs gets printed even when I/O gracefully
terminates which might be confusing.

Bug: 377819507
Test: Build
Change-Id: I93d4ec2203566e75195215babc0042370be43ccb
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-11-15 09:54:44 -08:00
Elliott Hughes
d2c67b3673 Merge "Stop explicitly adding bionic subdirectories to the include path." into main am: d68632becc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3352958

Change-Id: Idae44755f445ac9aaee0767842667209075418c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-15 17:48:44 +00:00
Elliott Hughes
d68632becc Merge "Stop explicitly adding bionic subdirectories to the include path." into main 2024-11-15 17:08:09 +00:00
Chan Wang
5996d608af Use the new 'partition' field in 'ApexInfo' to identify vendor apexes
A new field 'partition' was added to `ApexInfo` recently which stores
pre-installed partition information as string (e.g. 'SYSTEM') in
aosp/3335753. Using 'partition' field for Subcontext vendor apex
initialization because the existing field `preinstalledModulePath` won't
be populated for brand-new apex (a new type we introduced recently).

Bug: 377111286

Test: atest CtsInitTestCases
Change-Id: I8970b3cb5884bdb949035f5bdc5b2e18618cc9cc
2024-11-15 16:21:50 +00:00
Treehugger Robot
e878654989 Merge "init: Add NVME support to the boot_part_uuid method of managing boot devices" into main am: 2c11c48434
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3352666

Change-Id: I03e39765022b79b8744a902d6856a06a6591ae2b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-15 15:38:05 +00:00
Treehugger Robot
2c11c48434 Merge "init: Add NVME support to the boot_part_uuid method of managing boot devices" into main 2024-11-15 15:15:15 +00:00
Alice Wang
f3751ac99a Merge "Rename system property to enable KeyMint VM" into main am: e4193a055f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3342655

Change-Id: Ic71bdb430e8ae3fb05371731bac759cfdce6ca72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-15 10:10:23 +00:00
Alice Wang
e4193a055f Merge "Rename system property to enable KeyMint VM" into main 2024-11-15 09:45:25 +00:00
T.J. Mercier
fdf4432356 libprocessgroup: Remove __BEGIN_DECLS and __END_DECLS
These macros have been useless in this file since commit 82b72a566
("libprocessgroup: Add support for task profiles") in 2018 which added
C++ includes, and C++ types and keywords inside an extern "C" block.

Change-Id: Iae1cbfcc5cb974034d88fb466b79088496190940
2024-11-14 23:04:10 +00:00
T.J. Mercier
b6071f19c3 libprocessgroup: Convert CGROUPV2_HIERARCHY_NAME to std::string
Almost everywhere CGROUPV2_HIERARCHY_NAME is used a std::string is
required, so change its type to avoid temporaries.

Change-Id: I4466838c510f2eb8212fc71999cdaa47359ce9c3
2024-11-14 22:56:11 +00:00
T.J. Mercier
9e5f74d4e4 libprocessgroup: Remove CGROUPV2_CONTROLLER_NAME
This was deprecated a year ago, and should no longer be used.

Change-Id: I19c75e50fd3cc86734fa9cc7f3d883260b2484ca
2024-11-14 22:44:33 +00:00
T.J. Mercier
148c2531ee libprocessgroup: Remove CGROUPS_RC_PATH
/dev/cgroup_info/cgroup.rc doesn't exist anymore!

Bug: 349105928
Change-Id: I2f49fab15d083f0c1617989ccf96ca843f998140
2024-11-14 22:44:33 +00:00
Douglas Anderson
dd8edea859 init: Add NVME support to the boot_part_uuid method of managing boot devices
NVME devices have a subsystem of "class/nvme". Add that to the list of
subsystems we check so we can identify them properly.

Bug: 316324155
Test: Boot on a device with nvme
Change-Id: I2ab3f6890f62f525dba150a0368c666a1c4c875e
2024-11-14 13:53:54 -08:00
Treehugger Robot
9591fb4e65 Merge "Fix failure in CowTest#InvalidMergeOrderTest." into main am: 243850ca5f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3353378

Change-Id: I9decd544d258404433776fb047709284d11c0271
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-14 20:12:12 +00:00
Christopher Ferris
f65b6cc7df Merge "Add source of unwind when fatal error." into main am: 122a57630e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3349258

Change-Id: I58cb531dd256e18fd73500f6edf66b0f03af7966
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-14 20:10:14 +00:00
Treehugger Robot
243850ca5f Merge "Fix failure in CowTest#InvalidMergeOrderTest." into main 2024-11-14 20:04:21 +00:00
Christopher Ferris
122a57630e Merge "Add source of unwind when fatal error." into main 2024-11-14 19:23:45 +00:00
Treehugger Robot
09d5517211 Merge "libprocessgroup: Remove libcgrouprc_format" into main am: de8fa774c3
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3343257

Change-Id: I6da18833b1bf411da5b202cfd15422ce12eaade8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-14 18:49:45 +00:00
David Anderson
9d06208826 Fix failure in CowTest#InvalidMergeOrderTest.
This is failing on hwasan builds due to a typo in the test method. The
actual writer logic is unaffected.

Bug: 377298650
Test: valgrind cow_api_test
Change-Id: I5c3f32ae57bf90b9fd29c7446bf34bdcb004328c
2024-11-14 10:41:07 -08:00
Treehugger Robot
de8fa774c3 Merge "libprocessgroup: Remove libcgrouprc_format" into main 2024-11-14 18:23:42 +00:00
Elliott Hughes
a4e852d032 Stop explicitly adding bionic subdirectories to the include path.
Change-Id: I9961fa6ac957d8613f93fa33731da797f9ba8615
2024-11-14 18:14:26 +00:00
Alice Wang
16693fae25 Rename system property to enable KeyMint VM
This allows us to regroup Widevine VM under the same trusty
group.

Bug: 368502791
Test: launch_cvd --secure_hals=guest_keymint_trusty_insecure
Test: atest VtsAidlSharedSecretTargetTest
Change-Id: Ica76a896e99f70a64af229bda68622a2ce0dea1f
2024-11-14 14:37:19 +00:00
Christopher Ferris
cbb59dd240 Add source of unwind when fatal error.
Sometimes the only log left is the errors messages. This means that
the information about why the unwind part of debuggerd is being called.
Therefore, add a little bit of extra information in the error message
to indicate why the unwind was triggered.

Bug: 377050125

Test: Forced the exec of the crash dump to fail and verified that the
Test: message is crash for a crash and unwind for debuggerd -b <PID>
Test: and debuggerd <PID>.
Change-Id: I0632ed9118c79caf4dabe6f174b25066fa9058fc
2024-11-14 03:59:29 +00:00