Commit Graph

39035 Commits

Author SHA1 Message Date
Jeffrey Vander Stoep 5e5640f5ab Merge "Logd: include app package name in selinux metadata"
am: 24e87383f1

Change-Id: I0514b893d8575ea85f4a7cf6ea17d0f47bf87353
2018-05-04 14:16:42 -07:00
Jeffrey Vander Stoep 24e87383f1 Merge "Logd: include app package name in selinux metadata" 2018-05-04 21:09:19 +00:00
Christopher Ferris 74759f8380 Merge "Remove unnecessary references to libunwind."
am: 00c81fefd3

Change-Id: I52d4e601904cb5a432191b9f566cdb33c08d509b
2018-05-04 13:48:00 -07:00
Christopher Ferris 00c81fefd3 Merge "Remove unnecessary references to libunwind." 2018-05-04 20:40:42 +00:00
Jeff Vander Stoep d885890e78 Logd: include app package name in selinux metadata
Note: denial metadata is currently only included on debug builds.

avc: denied { read } for comm="getprop" name="u:object_r:net_dns_prop:s0"
dev="tmpfs" ino=19605 scontext=u:r:untrusted_app:s0:c164,c256,c512,c768
tcontext=u:object_r:net_dns_prop:s0 tclass=file permissive=0 b/12345678
app=android.selinuxtargetsdkcurrent.cts

Bug: 9496886
Bug: 68016944
Test: cts-tradefed run cts -m CtsSelinuxTargetSdkCurrentTestCases
Change-Id: I1700722a45b75d22f17ba4edc7b95cbaf99fdda8
2018-05-03 22:40:18 -07:00
android-build-prod (mdb) 68725eee80 Merge "Fixing a bug introduced due to refactoring var names"
am: 8cf185e542

Change-Id: Ic554b87d819c3396530bad1dc5360b9067601319
2018-05-03 22:38:26 -07:00
android-build-prod (mdb) 8cf185e542 Merge "Fixing a bug introduced due to refactoring var names" 2018-05-04 05:30:34 +00:00
Josh Gao 820fec506c Merge "tombstoned: make missing O_TMPFILE workaround actually work around."
am: a3d95cf2f8

Change-Id: If0948c05b7a2f21146003f5158190581f2d5bd2e
2018-05-03 18:03:35 -07:00
Christopher Ferris 25e2bbf874 Remove unnecessary references to libunwind.
Bug: 79209464

Test: Builds.
Change-Id: I4193ac664e3b118270a17fcc0131fb6c6e384c41
2018-05-03 17:59:45 -07:00
Josh Gao a3d95cf2f8 Merge "tombstoned: make missing O_TMPFILE workaround actually work around." 2018-05-04 00:55:08 +00:00
android-build-prod (mdb) 8c61bb63c9 Merge changes I809d8c2e,I11265375
am: 1d87ffd3f6

Change-Id: I587abf6d4c7efe36c2d7f98f462935f0621a64da
2018-05-03 16:43:20 -07:00
android-build-prod (mdb) 2ad163b417 Merge "tombstoned: don't bail out if we fail to unlink a file that isn't there."
am: 57adfb84aa

Change-Id: I4e00d24ff10d00a12e58f82a1a4c961b3d13b817
2018-05-03 16:38:48 -07:00
android-build-prod (mdb) 1d87ffd3f6 Merge changes I809d8c2e,I11265375
* changes:
  fs_mgr: clean up dm ioctl flags
  init: refactor first stage to not require fstab
2018-05-03 23:33:36 +00:00
android-build-prod (mdb) 57adfb84aa Merge "tombstoned: don't bail out if we fail to unlink a file that isn't there." 2018-05-03 23:28:48 +00:00
Christopher Ferris 08e5b5cba6 Merge "Remove unnecessary references to libunwind."
am: c5943fd3fa

Change-Id: I076c20a5bad525db62ef2e40cc84f72f3db29e20
2018-05-03 16:13:02 -07:00
Christopher Ferris c5943fd3fa Merge "Remove unnecessary references to libunwind." 2018-05-03 23:05:51 +00:00
Josh Gao f5974aedc4 tombstoned: make missing O_TMPFILE workaround actually work around.
We can't actually link an unlinked file back onto disk if it wasn't
opened with O_TMPFILE. Switch to using a temporary filename instead.

Bug: http://b/77729983
Test: agampe
Change-Id: I1970497114f0056065a1ba65f6358f08b51ec551
2018-05-03 16:05:32 -07:00
Max Bires b8716687f1 Fixing a bug introduced due to refactoring var names
SELinux messages weren't properly filtering into the events buffer
because message_len was being used to determine length of event data
instead of str_len

Bug: 65597269
Test: SELinux denials show up in the events buffer
Change-Id: I857e10211f71dd0db33a272241c7051c5d0c59ca
(cherry picked from commit 3a5acdaa8d)
2018-05-03 15:25:02 -07:00
android-build-prod (mdb) d44f72ddb5 Merge "bootstat: add reboot,rescueparty"
am: 708364e650

Change-Id: Ia8823cd9bda22a91d452fc3e78870cbd01a9bc40
2018-05-03 14:54:38 -07:00
android-build-prod (mdb) 708364e650 Merge "bootstat: add reboot,rescueparty" 2018-05-03 21:46:22 +00:00
Josh Gao 28f8cf0f97 tombstoned: don't bail out if we fail to unlink a file that isn't there.
Test: crasher with no tombstones
Change-Id: I20e0537a347dd1f83877150ab13f53441dd65d95
2018-05-03 14:31:08 -07:00
Christopher Ferris 8548d55b45 Remove unnecessary references to libunwind.
Bug: 79209464

Test: Builds.

Change-Id: I79f7b0123bc802e3e12d218e888c30dedf5204dc
2018-05-03 14:24:38 -07:00
android-build-prod (mdb) 2a38926b9d Merge "healthd: Add elsk as OWNERS"
am: abf6a2e1ad

Change-Id: I23881432915128c0399cf758168cdea1fabf6114
2018-05-03 14:02:11 -07:00
android-build-prod (mdb) abf6a2e1ad Merge "healthd: Add elsk as OWNERS" 2018-05-03 20:54:37 +00:00
Elliott Hughes 82a80c5220 Merge "Tell the build system about APCT's requirements."
am: c1d4026341

Change-Id: I98602949a6dc3d3596baa9b5382b6ff25aa9494f
2018-05-03 13:21:29 -07:00
Elliott Hughes c1d4026341 Merge "Tell the build system about APCT's requirements." 2018-05-03 20:14:32 +00:00
Mark Salyzyn 75046897b3 bootstat: add reboot,rescueparty
Reserve this for Android system use.

Test: none
Change-Id: Iaf29f0fcd1fe68962cf1109843d6452d0ab42e3c
2018-05-03 13:13:34 -07:00
android-build-prod (mdb) 54cfee18a3 Merge "Update shell and utilities docs."
am: fcfbaa2ad6

Change-Id: Ie716910d9d43e665c6c10a4da08ec5ed1959275b
2018-05-03 12:54:55 -07:00
android-build-prod (mdb) fcfbaa2ad6 Merge "Update shell and utilities docs." 2018-05-03 19:44:18 +00:00
Yifan Hong a922d6b596 healthd: Add elsk as OWNERS
Test: none
Change-Id: I676621ced38308296c32259c9525a8d55948e937
2018-05-03 12:25:00 -07:00
Elliott Hughes 4c4b30d7b7 Update shell and utilities docs.
For both P and Q.

Bug: N/A
Test: N/A
Change-Id: I85572bd71871a30c5e6761e098c0d4c63563e873
2018-05-03 11:02:07 -07:00
Elliott Hughes 03d183aecc Tell the build system about APCT's requirements.
Bug: N/A
Test: N/A
Change-Id: I8a67e1ce5acc4142387878ba0bb542da0861e700
2018-05-03 10:06:45 -07:00
David Anderson 5a4db628ee fs_mgr: clean up dm ioctl flags
DM_READONLY_FLAG should only be used when loading tables, and
DM_STATUS_TABLE_FLAG should only be used when querying a table's status. This
patch cleans up how we set flags to reflect when the kernel actually cares
about them.

Bug: 78914864
Test: AVB device still boots

Change-Id: I809d8c2ef2105849ebdd095bbe7f08f15ae63465
2018-05-02 18:46:20 -07:00
android-build-prod (mdb) 1f6980b42b Merge "Compile toolbox's newfs_msdos for the host"
am: fb8b76fe55

Change-Id: Ia69e2697fc597dbb2f76cabd71877baf215b9baf
2018-05-02 15:07:09 -07:00
android-build-prod (mdb) fb8b76fe55 Merge "Compile toolbox's newfs_msdos for the host" 2018-05-02 21:55:04 +00:00
android-build-prod (mdb) d40a081623 Merge "tombstoned: don't create tombstones for failed dumps."
am: 294d41cb83

Change-Id: Ia94317bd46773d6199853ded19ea804abbaf68c9
2018-05-02 14:50:46 -07:00
android-build-prod (mdb) d724371524 Merge "Fix a debuggerd test expectation."
am: dbc4aa1ded

Change-Id: Ic415ee262efa603fadfee7e2e95ef7ed36d6f966
2018-05-02 14:50:17 -07:00
android-build-prod (mdb) 294d41cb83 Merge "tombstoned: don't create tombstones for failed dumps." 2018-05-02 21:43:03 +00:00
android-build-prod (mdb) dbc4aa1ded Merge "Fix a debuggerd test expectation." 2018-05-02 21:41:43 +00:00
Dan Willemsen a228822c7d Compile toolbox's newfs_msdos for the host
For potential use with build/make/tools/fat16copy.py

Bug: 63035155
Test: mmma system/core/toolbox; newfs_msdos
Change-Id: I8ad50b8c181fc4ec21e191ec9fea8e9aa11d2d9b
2018-05-02 13:14:51 -07:00
David Anderson 29954f6062 init: refactor first stage to not require fstab
In order to support dm-linear devices, we need an additional first-stage
step to ensure that required devices are created. This must happen before
setting up dm-verity or mounting any first-stage partitions.

This patch refactors FirstStageMount so that having a compatible fstab
is optional. This will let us use InitRequiredDevices on systems that
would not otherwise perform first-stage mounts.

Bug: 78914864
Test: non-AVB devices still boot
Change-Id: I11265375a9900d983da8cabcc77d32c503ded02e
2018-05-02 12:23:15 -07:00
Elliott Hughes 89722709b4 Fix a debuggerd test expectation.
70d8f28945 broke a test that was not
expecting to see the new detail about the signal's sender.

Bug: http://b/78594105
Test: ran tests
Change-Id: Idfa3a53b9e664308efdba560ffbb1401c1904530
2018-05-02 10:49:13 -07:00
Bowgo Tsai d8829d7a4f Merge "First-stage mount: avoid triggering a FATAL error"
am: 78393951de

Change-Id: Idac1a2c9b922308ec8861c15979e29184dde5bdb
2018-05-01 19:31:30 -07:00
Bowgo Tsai 78393951de Merge "First-stage mount: avoid triggering a FATAL error" 2018-05-02 02:16:58 +00:00
android-build-prod (mdb) 142eeae546 Merge "adb: Avoid waiting for emulator connections"
am: 8ef8d1eb6b

Change-Id: I3720cad78b1d8449c3e1cfedc57bc3c673c73b80
2018-05-01 18:55:31 -07:00
android-build-prod (mdb) 8ef8d1eb6b Merge "adb: Avoid waiting for emulator connections" 2018-05-02 01:46:12 +00:00
Luis Hector Chavez c587f02cc6 adb: Avoid waiting for emulator connections
This change exempts the emulator connections from
WaitableConnection.WaitForConnection(). This is because emulator
connections are a) more reliable and b) handled a bit differently than
normal TCP connections.

Bug: 78991667
Test: emulator -showkernel ; adb shell
Change-Id: I552946198889a82d6c265f45e8c3b38f6ac9d045
2018-05-01 17:12:16 -07:00
Bowgo Tsai 8fe363f260 First-stage mount: avoid triggering a FATAL error
Related AOSP changes:
  1. https://android-review.googlesource.com/#/c/platform/system/core/+/405009/
  2. https://android-review.googlesource.com/#/c/platform/system/core/+/532637/

The second CL raises a FATAL error when it detects fstab-dt has no content
during first-stage mount. However, with the first CL, the fstab-dt entry
might be "skipped" when bootloader sets the status property to a value
other than "ok"/"okay". (e.g., to skip mounting /vendor on upgrading
devices which have no vendor partition).

Use LOG(INFO) when there is nothing to mount here. The later stages
should trigger a FATAL error when some important files in those
partitions are not available, e.g., SEPolicy files.

Bug: 78441220
Test: boot a device
Change-Id: Iae2f47d455679298bdb067d96b771a30c1a82e6f
2018-05-01 16:39:36 +08:00
Tao Bao b2cacbb983 Merge changes from topic "libsparse-callback"
am: 49b7f296b9

Change-Id: I106758e1ba319e0b2f1a912fe383f5ab5752ee2f
2018-04-30 16:02:15 -07:00
Tao Bao 315efbeb9a libsparse: Use 'size_t' for the 'len' parameter in callbacks.
am: e18c03165b

Change-Id: I8ac1fc964bf8245dcc274c57656eb12425693b77
2018-04-30 16:01:43 -07:00