Commit graph

89133 commits

Author SHA1 Message Date
Akilesh Kailash
a38e7fed0a Merge "snapuserd_test: check writer != nullptr" into main am: 844ce86595 am: baae2f3a5c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3001312

Change-Id: I94072b6cd274fbb6dd6f0e797118a6db797bcca3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 03:25:46 +00:00
Akilesh Kailash
baae2f3a5c Merge "snapuserd_test: check writer != nullptr" into main am: 844ce86595
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3001312

Change-Id: Ib9c27d895e4ebe3947984dc78a352da3794673a2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-21 03:08:46 +00:00
Akilesh Kailash
844ce86595 Merge "snapuserd_test: check writer != nullptr" into main 2024-03-21 02:53:03 +00:00
Akilesh Kailash
92b7d837b9 snapuserd_test: check writer != nullptr
Cow Writer used to fail with ENOSPC during initialization.

Try temporaryFile creation with path set to current working directory.

Bug: 328879200
Test: th, snapuserd_test
Change-Id: I7b3833967952c74142f1d5a35cb8d94dd6d894fc
Signed-off-by: Akilesh Kailash <akailash@google.com>
2024-03-21 00:21:11 +00:00
Hansen Kurli
5575b29f0a Merge "Create directory for /data/misc/connectivityblobdb" into main am: 6ec79b5605 am: 66951ac52c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2880828

Change-Id: Iaeebb978b95d6516751a32a2e1ab839216254c8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 20:48:51 +00:00
Hansen Kurli
66951ac52c Merge "Create directory for /data/misc/connectivityblobdb" into main am: 6ec79b5605
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2880828

Change-Id: I3ce432643de5c80a4a3e120560fb2bd4ce8002df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 20:29:35 +00:00
Hansen Kurli
6ec79b5605 Merge "Create directory for /data/misc/connectivityblobdb" into main 2024-03-20 20:27:18 +00:00
Treehugger Robot
ab38a5a0b6 Merge "turn on aconfigd in init" into main am: 12c4de877e am: afa2a2caa8
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3008533

Change-Id: I9af42fc578d36506e8246461a484d3d624221b5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 19:21:41 +00:00
Treehugger Robot
afa2a2caa8 Merge "turn on aconfigd in init" into main am: 12c4de877e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3008533

Change-Id: Ic79102b291c6fe79542568200513b2ce3709e9c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 19:07:00 +00:00
Treehugger Robot
12c4de877e Merge "turn on aconfigd in init" into main 2024-03-20 18:49:51 +00:00
Dennis Shen
9e17d3a032 turn on aconfigd in init
Bug: b/312444587
Test: avd
Change-Id: Ibc88b57f88f924318d54ae81c70fd8da1fc1b437
2024-03-20 16:33:28 +00:00
Justin Yun
b055317324 Merge "Avoid duplicated definition in llndk-versioning.h" into main am: d49456a11f am: 1f276d3732
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3002662

Change-Id: I6c73054575cc220a40eed039445ca34ef363143f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 00:58:49 +00:00
Justin Yun
1f276d3732 Merge "Avoid duplicated definition in llndk-versioning.h" into main am: d49456a11f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3002662

Change-Id: I0b8ef973d079d68ebe19182e06341121369b646a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-20 00:31:29 +00:00
Justin Yun
d49456a11f Merge "Avoid duplicated definition in llndk-versioning.h" into main 2024-03-20 00:17:15 +00:00
Treehugger Robot
8f2d1f4653 Merge "trusty: rpmb_dev: Use socket from init and update init script" into main am: f52256ea25 am: 1cdf883156
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2845115

Change-Id: I72264c169be36d140a5a4730972c1c722d926359
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 22:30:47 +00:00
Treehugger Robot
1cdf883156 Merge "trusty: rpmb_dev: Use socket from init and update init script" into main am: f52256ea25
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2845115

Change-Id: Iddaea131e5ab0161f147adaef227dd2b3dfcf1d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 22:16:07 +00:00
Treehugger Robot
f52256ea25 Merge "trusty: rpmb_dev: Use socket from init and update init script" into main 2024-03-19 21:28:30 +00:00
Treehugger Robot
c741508513 Merge "toolbox/libmodprobe: add toolbox to vendor_ramdisk" into main am: b03f02bca4 am: 874b24bffe
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3002577

Change-Id: Ice952ea55f1883eecb82bd80a78b5c304d84c28d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 20:50:45 +00:00
Treehugger Robot
874b24bffe Merge "toolbox/libmodprobe: add toolbox to vendor_ramdisk" into main am: b03f02bca4
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3002577

Change-Id: Id00cb797fa66cdd986576c7a6e109fb4e33d8cd6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 20:35:47 +00:00
Treehugger Robot
b03f02bca4 Merge "toolbox/libmodprobe: add toolbox to vendor_ramdisk" into main 2024-03-19 20:08:30 +00:00
Arve Hjønnevåg
294ba38082 trusty: rpmb_dev: Use socket from init and update init script
Stop creating a socket on a persistent filesystem and use a socket
created by init in /dev/socket/ instead.

Many init script changes to make rpmb_dev.rc usable on cuttlefish.

Test: Build and run aosp_cf_x86_64_phone_trusty_vm-trunk_staging-userdebug
Bug: 309007107
Change-Id: Idc830211b3298d25bbb310dcb7489dd89fe5afc6
2024-03-19 20:02:34 +00:00
Mitch Phillips
2e82f3e871 Merge "[MTE] Implement permissive (recoverable) MTE for apps" into main am: da9ec0cd05 am: 152a5750c3
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3003971

Change-Id: Idd3a5bef14b0e5ffbcd6c8beec95a3c8cac369c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 19:43:13 +00:00
Mitch Phillips
152a5750c3 Merge "[MTE] Implement permissive (recoverable) MTE for apps" into main am: da9ec0cd05
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3003971

Change-Id: I53b85fb7f3eacf38d49193f2b901a7c1e64e17a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 19:22:43 +00:00
Mitch Phillips
da9ec0cd05 Merge "[MTE] Implement permissive (recoverable) MTE for apps" into main 2024-03-19 19:06:13 +00:00
Florian Mayer
88bf7eb4fe Merge "Do not chmod ANRs" into main am: effe539c30 am: b55b5e7433
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3006788

Change-Id: I7157a9d3f48c0f32511d9db56b7f3c17622e2909
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 18:58:31 +00:00
Florian Mayer
b55b5e7433 Merge "Do not chmod ANRs" into main am: effe539c30
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3006788

Change-Id: I3ef7f0ad6cb79f148d1ffc5c690f0dc704c21732
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 18:36:56 +00:00
Florian Mayer
effe539c30 Merge "Do not chmod ANRs" into main 2024-03-19 18:25:42 +00:00
Elliott Hughes
01c06bbb86 Merge "Use _Fork()." into main am: 0fee60a79a am: 28c35296cc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2983920

Change-Id: I2bcf6e2ae9d62014729ab7ef03a482459c8377b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 15:16:56 +00:00
Elliott Hughes
28c35296cc Merge "Use _Fork()." into main am: 0fee60a79a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2983920

Change-Id: Iaf926a6dcaa69b8218b44ed2edab5d3ba2d54495
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 15:03:26 +00:00
Elliott Hughes
0fee60a79a Merge "Use _Fork()." into main 2024-03-19 14:48:20 +00:00
Mitch Phillips
31407917f8 [MTE] Implement permissive (recoverable) MTE for apps
Extends the recoverable native crash handling support to also allow for
MTE crashes to be recovered from in apps. Backs onto the existing
GWP-ASan recoverable handling.

At least for system/core, I've renamed the (now) generic "recoverable
crash" variables to remove the notion of GWP-ASan.

Permissive MTE should no longer crash an app, and crashes are still
visible in the AppExitInfo API and tombstones.

Test: atest CtsTaggingHostTestCases
Bug: 328793166
Change-Id: I4c6ffa85af0e0d9b72d0ccd606bb6e1ca464cfff
2024-03-19 11:26:02 +01:00
Daniel Zheng
5b6044fd62 Merge "libsnapshot: reserve 16x space for ops" into main am: 550a176551 am: a9670fee81
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3004570

Change-Id: I7bc8c121e4f21b7f06e96d07f4d445a7a17d29c6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 08:00:46 +00:00
Daniel Zheng
a9670fee81 Merge "libsnapshot: reserve 16x space for ops" into main am: 550a176551
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3004570

Change-Id: I09b49ce984e8e1829a6af0be5baf0e51063a7d81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-19 07:48:16 +00:00
Justin Yun
0fb8da9a05 Avoid duplicated definition in llndk-versioning.h
Non-vendor modules may define llndk versioning macros manually. Avoid
redefining the macros if they are already defined outside of
llndk-versioning.h header.

Bug: 302113279
Test: m && m cts

Change-Id: Ibf984f2f2eed3594c824f2e97e17f2698e0515dd
2024-03-19 16:42:26 +09:00
Daniel Zheng
550a176551 Merge "libsnapshot: reserve 16x space for ops" into main 2024-03-19 07:34:57 +00:00
Daniel Zheng
8e6ab87328 libsnapshot: reserve 16x space for ops
We have updated logic for v3 cow we should allow non-data ops to be
cached at 16x the amount of data ops. Changing the reserve size to match
this.

Test: th
Change-Id: I825ffef4e1a2ce4eb5c105d266bf95cb3d776ed9
2024-03-19 00:34:15 -07:00
Florian Mayer
e95d781041 Do not chmod ANRs
The code was only meant for native tombstones. It might be a good idea
to make ANRs also readable by shell / adb, but in that case we have to
do more changes to make sure all files in /data/anr are. We can revert
if we implement that

Test: m
Bug: 329827513
Change-Id: Ic98c452ca500fe766a70173bef4ac1ea57438989
2024-03-18 17:19:51 -07:00
Treehugger Robot
799e4c1a58 Merge "dmctl: add report of IMA" into main am: 0b671f4432 am: 7554b4f511
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3001314

Change-Id: I154f71f14bc99431e4f0d893ec0d8d02ab9e780a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-18 17:46:48 +00:00
Treehugger Robot
7554b4f511 Merge "dmctl: add report of IMA" into main am: 0b671f4432
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3001314

Change-Id: If81ba8adff2f74970cf8ffec2b0546c6cf602c5d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-18 17:31:51 +00:00
Treehugger Robot
0b671f4432 Merge "dmctl: add report of IMA" into main 2024-03-18 16:59:31 +00:00
Junki Min
c8dc7ffd5e toolbox/libmodprobe: add toolbox to vendor_ramdisk
toolbox and libmodprobe are required for module loading before
first stage init begin.

BUG: 329807942
Signed-off-by: Junki Min <joonki.min@samsung.com>
Change-Id: Icf04888e602b012758ebf353ed8e4aff2585fd07
2024-03-18 17:35:26 +09:00
Jeongik Cha
e29e63502a Merge "Declare init.*.rc modules in Android.bp" into main am: 4df565db4c am: 6209203f9e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2926193

Change-Id: I79e71643f64359b09220654cd63e4230963464e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-18 02:10:19 +00:00
Jeongik Cha
6209203f9e Merge "Declare init.*.rc modules in Android.bp" into main am: 4df565db4c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2926193

Change-Id: Ifecc6a0d37624a81275ace681922ec623d538c1e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-18 01:45:47 +00:00
Jeongik Cha
4df565db4c Merge "Declare init.*.rc modules in Android.bp" into main 2024-03-18 01:25:16 +00:00
Treehugger Robot
126914d3d0 Merge "Remove bionic dependency from llndk-versioning.h" into main am: a17fa25959 am: a03dd6a53f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3002802

Change-Id: I7bd84389ece3b0017b5a179fb8747435a3cef98d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-18 00:50:47 +00:00
Treehugger Robot
a03dd6a53f Merge "Remove bionic dependency from llndk-versioning.h" into main am: a17fa25959
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3002802

Change-Id: Ib5b7609b8bd2ddca202e58432ee6b5293316e847
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-18 00:29:05 +00:00
Treehugger Robot
a17fa25959 Merge "Remove bionic dependency from llndk-versioning.h" into main 2024-03-18 00:11:43 +00:00
Treehugger Robot
68bc3e4d60 Merge "toolbox/modprobe: Use libmodprobe to load modules from FILE" into main am: a09542807f am: c3ab43099b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2995300

Change-Id: Ia4e0402dcd64234f1f799350bbe46152aeb513f5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-15 23:58:09 +00:00
Treehugger Robot
c3ab43099b Merge "toolbox/modprobe: Use libmodprobe to load modules from FILE" into main am: a09542807f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2995300

Change-Id: Iec01df8d7be695252398089ff7fb795e605fa11c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-03-15 23:45:36 +00:00
Jaegeuk Kim
9459f7c09c dmctl: add report of IMA
This adds an option "ima" in dmctl.

$ dmctl ima product-verity
Targets in the device-mapper table for product-verity:
0-7463768: verity, target_name=verity,target_version=1.9.0,hash_failed=V,verity_version=1,data_device_name=254:4,hash_device_name=254:4,verity_algorithm=sha256,root_digest=d7af9fcb04d184219ba5477b97bb2bbc89fd23a46e03d1dea31d674cc4934769,salt=19d4f2345adfc8b7cc22a3c2f21dd413e5020fc7920a08a33f46f3c61492dfcc,ignore_zero_blocks=y,check_at_most_once=n,verity_mode=restart_on_corruption;

Change-Id: I057970b6c786b3f9a394b4919f5f5115b27cbc08
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2024-03-15 16:34:20 -07:00