Commit graph

27370 commits

Author SHA1 Message Date
Pavlin Radoslavov
7534be53c3 Merge "Fix a crash when parsing fastboot command-line arguments" am: 517f6d476e
am: 1c1ee87e35

Change-Id: I5020f555a4181b78ee7ff744f05cf09268f33b8d
2017-01-26 07:32:01 +00:00
Pavlin Radoslavov
1c1ee87e35 Merge "Fix a crash when parsing fastboot command-line arguments"
am: 517f6d476e

Change-Id: I739fb29f259503f0fe39d7b0122cbbb134cfcee1
2017-01-26 07:29:30 +00:00
Treehugger Robot
517f6d476e Merge "Fix a crash when parsing fastboot command-line arguments" 2017-01-26 07:23:18 +00:00
George Burgess IV
88cd8ee286 Merge "Add mode bits to a call to open with O_CREAT" am: 294f7312dd
am: 990c4c611b

Change-Id: Ic77fc180ce60be530344aa0f9e6176c7a056f132
2017-01-26 07:01:27 +00:00
George Burgess IV
990c4c611b Merge "Add mode bits to a call to open with O_CREAT"
am: 294f7312dd

Change-Id: If4b9d8f5733606865a7efdcbfec015b2c07da807
2017-01-26 06:58:28 +00:00
Treehugger Robot
294f7312dd Merge "Add mode bits to a call to open with O_CREAT" 2017-01-26 06:55:59 +00:00
Pavlin Radoslavov
6adbd4e787 Fix a crash when parsing fastboot command-line arguments
Fix a crash when running "fastboot reboot bootloader"

Test: Manual run "fastboot reboot bootloader" and "fastboot reboot emergency"
Change-Id: I6d163a5b640afcae1dfa606f409e23ec5f499184
2017-01-25 19:07:46 -08:00
Yabin Cui
84ef8c8817 Merge "base: support logging before enter main function." am: a59c7bcc48
am: 14e66c5989

Change-Id: I736348033faeaba5ce88f1e513fbd879222028aa
2017-01-26 02:36:09 +00:00
bowgotsai
b9acb187f0 Merge "Switch fs_mgr/*.c to C++." am: 8c0cf30a6b
am: e41dc8e906

Change-Id: I97ace0eda2fa531977a0a014e4f6f2a0b63415d5
2017-01-26 02:35:43 +00:00
Yabin Cui
14e66c5989 Merge "base: support logging before enter main function."
am: a59c7bcc48

Change-Id: Icbb97c807bee8cc7394260dcb612f88855241fea
2017-01-26 02:32:33 +00:00
bowgotsai
e41dc8e906 Merge "Switch fs_mgr/*.c to C++."
am: 8c0cf30a6b

Change-Id: I9faf773fd39e4cbc1e7b500f4fa6aeaa60589441
2017-01-26 02:32:02 +00:00
Yabin Cui
a59c7bcc48 Merge "base: support logging before enter main function." 2017-01-26 02:30:58 +00:00
Treehugger Robot
8c0cf30a6b Merge "Switch fs_mgr/*.c to C++." 2017-01-26 02:24:23 +00:00
Vijay Venkatraman
a252f11da3 Merge "Exporting C++ headers from system/core" am: 812b7d5d52
am: f484dd3401

Change-Id: I1c60ff535ef1e11cfca8ff942bf6c2fd11313ede
2017-01-26 01:49:12 +00:00
Vijay Venkatraman
f484dd3401 Merge "Exporting C++ headers from system/core"
am: 812b7d5d52

Change-Id: I218819c51271db63d6ecbc1e5ac51674bfd6fc4a
2017-01-26 01:44:07 +00:00
Vijay Venkatraman
812b7d5d52 Merge "Exporting C++ headers from system/core" 2017-01-26 01:39:41 +00:00
George Burgess IV
09175a0264 Add mode bits to a call to open with O_CREAT
Open with O_CREAT needs mode bits: https://linux.die.net/man/3/open

Found by running clang FORTIFY over AOSP.

Bug: 32073964
Test: Now builds with clang FORTIFY.
Change-Id: Iee4c93c5482f510e0adf8104c27e394b5d87ec88
2017-01-25 17:31:43 -08:00
Steven Moreland
311e4295dc Merge "init.rc, typo: fs-post-data -> post-fs-data" am: 5b202c4376
am: e0ac5d8304

Change-Id: Id551e8ae3aa635ea2fe893da008aace9d9508420
2017-01-26 00:54:43 +00:00
Steven Moreland
e0ac5d8304 Merge "init.rc, typo: fs-post-data -> post-fs-data"
am: 5b202c4376

Change-Id: Ia61968e7d1e5cd94c0657c710f763501f2ef1f77
2017-01-26 00:52:04 +00:00
Treehugger Robot
5b202c4376 Merge "init.rc, typo: fs-post-data -> post-fs-data" 2017-01-26 00:47:18 +00:00
Yabin Cui
0c68953778 base: support logging before enter main function.
Bug: http://b/30974760
Test: run libbase_test.

Change-Id: I3f45fc21e8fe6301b5fef027728ea91f2188911d
2017-01-25 15:50:47 -08:00
bowgotsai
cea7ea7825 Switch fs_mgr/*.c to C++.
This is the minimal change just to keep it building, and doesn't
attempt to clean up the code.

Bug: 34336098
Test: check device can boot

Change-Id: I5ff897874f1f14a9a5d1f14fedf1b0749e86dbb3
2017-01-26 07:49:41 +08:00
Vijay Venkatraman
2d37a4ff16 Merge "Revert "Revert "Exporting C headers from system/core""" am: 01678a0c84
am: e6588b4bfa

Change-Id: I420c3209c8f6fdca53da56dd8e2a2aed3ad5591e
2017-01-25 23:42:31 +00:00
Vijay Venkatraman
e6588b4bfa Merge "Revert "Revert "Exporting C headers from system/core"""
am: 01678a0c84

Change-Id: I1d7d67b45e71bfc6b7bb33ab77bc61c9cf7b8538
2017-01-25 23:40:00 +00:00
Vijay Venkatraman
01678a0c84 Merge "Revert "Revert "Exporting C headers from system/core""" 2017-01-25 23:37:01 +00:00
Josh Gao
e301f19ad6 Merge changes I21eefab9,I0ac7d78a am: 4c38a921c2
am: 21e681aaf3

Change-Id: If439f16d2ad3003bbd1323f64e890dcbf4ccc176
2017-01-25 21:58:33 +00:00
Josh Gao
5ca7b8bcf1 adb: move usb_* to client/usb_*. am: 456e1ad420
am: 9d9113352b

Change-Id: Iccd3a602d90931d14df94ff3c8ccf2b7b209a405
2017-01-25 21:58:28 +00:00
Josh Gao
36d0229be7 adb: reorganize adbd USB handling code. am: 44c688ca19
am: aee5d2a13b

Change-Id: Iff16d8d8001347a5951beb6ebe9925a26483afa0
2017-01-25 21:58:22 +00:00
Josh Gao
21e681aaf3 Merge changes I21eefab9,I0ac7d78a
am: 4c38a921c2

Change-Id: I2de89c9d7c6fdcd1b7904701dcc575e9709011f1
2017-01-25 21:55:30 +00:00
Josh Gao
9d9113352b adb: move usb_* to client/usb_*.
am: 456e1ad420

Change-Id: I4429618a7661c2ef7cb6cb8717995d85c5030905
2017-01-25 21:55:29 +00:00
Josh Gao
aee5d2a13b adb: reorganize adbd USB handling code.
am: 44c688ca19

Change-Id: I8dc36b41c60a919d3ae2ac1335c6627420cec89d
2017-01-25 21:55:23 +00:00
Josh Gao
4c38a921c2 Merge changes I21eefab9,I0ac7d78a
* changes:
  adb: move usb_* to client/usb_*.
  adb: reorganize adbd USB handling code.
2017-01-25 21:52:45 +00:00
Josh Gao
55cb039f55 Merge "Give crash_dump CAP_SYS_PTRACE." am: 9e60a54f67
am: a417d90e36

Change-Id: I6a5f4f47d45d11fef7203473f5b1dd9922e69dd1
2017-01-25 21:24:29 +00:00
Josh Gao
a417d90e36 Merge "Give crash_dump CAP_SYS_PTRACE."
am: 9e60a54f67

Change-Id: I978d8533e7257fdb61c554451c304d7f30628e59
2017-01-25 21:20:16 +00:00
Josh Gao
9e60a54f67 Merge "Give crash_dump CAP_SYS_PTRACE." 2017-01-25 21:16:58 +00:00
Vijay Venkatraman
651f8383e6 Revert "Revert "Exporting C headers from system/core""
This reverts commit a3f2be2b73.

Test: compile
Change-Id: I04b3a8e47e1fa3eb9d80c14ae3a90c68a780e858
2017-01-25 12:50:29 -08:00
Josh Gao
9939009d1d Merge changes Ie6c1832a,I0275ffca am: 4d61417997
am: c2631b348a

Change-Id: I64c3691ac90482ea9e708c19f27e4e034230f1f5
2017-01-25 20:08:57 +00:00
Josh Gao
43308bb366 debuggerd_handler: don't dump PR_NO_NEW_PRIVS processes. am: 7e14d020f1
am: 44212f19a5

Change-Id: If49cce292c620b9dca8e89b22544f594960c1979
2017-01-25 20:08:51 +00:00
Josh Gao
6814099778 debuggerd_handler: don't resend nonfatal signals when not dumping. am: 529b3066d5
am: df9b3059a8

Change-Id: I3a128b20c0b5410a9eb06323b5f24933db0306c5
2017-01-25 20:08:45 +00:00
Josh Gao
c2631b348a Merge changes Ie6c1832a,I0275ffca
am: 4d61417997

Change-Id: Ib91acdef4fe77256d48788cca2fa754fa02d52d0
2017-01-25 20:06:55 +00:00
Josh Gao
44212f19a5 debuggerd_handler: don't dump PR_NO_NEW_PRIVS processes.
am: 7e14d020f1

Change-Id: Ib0eb227b37ec31a9a5260c0dbfbaf8a4fd760bf6
2017-01-25 20:06:53 +00:00
Josh Gao
df9b3059a8 debuggerd_handler: don't resend nonfatal signals when not dumping.
am: 529b3066d5

Change-Id: Ib5e3d0e46cbc38abb88ad1c9360887c83beb7ee8
2017-01-25 20:06:47 +00:00
Josh Gao
4d61417997 Merge changes Ie6c1832a,I0275ffca
* changes:
  debuggerd_handler: don't dump PR_NO_NEW_PRIVS processes.
  debuggerd_handler: don't resend nonfatal signals when not dumping.
2017-01-25 20:03:22 +00:00
Josh Gao
36397cb168 Give crash_dump CAP_SYS_PTRACE.
CAP_SYS_PTRACE is needed to ptrace processes that have capabilities
greater than their bounding set. Eventually, this will still be an
improvement, because we can ptrace attach, and then turn on a seccomp
filter that blocks further attaches.

Bug: http://b/34694637
Test: debuggerd `pidof system_server`
Change-Id: I4b9da164ec1fbb5060fdba590e886ac24b6a0785
2017-01-25 11:48:23 -08:00
Josh Gao
b56f545469 Merge "crash_dump: properly dump when we can't talk to tombstoned." am: fc12c4b81e
am: deec0278ab

Change-Id: I39627c0ddd30bad2019fd8b31a3a3472a23efaa8
2017-01-25 19:21:42 +00:00
Josh Gao
deec0278ab Merge "crash_dump: properly dump when we can't talk to tombstoned."
am: fc12c4b81e

Change-Id: If730dde16be81105eab2ff4fd1ef48185e130f7f
2017-01-25 19:19:12 +00:00
Josh Gao
7e14d020f1 debuggerd_handler: don't dump PR_NO_NEW_PRIVS processes.
We can't do an selinux transition when this is on.

Bug: http://b/34472671
Test: logcat -c; debuggerd `pidof media.codec`; logcat
Change-Id: Ie6c1832ab838df48879c32a86126862de9a15420
2017-01-25 11:16:03 -08:00
Josh Gao
529b3066d5 debuggerd_handler: don't resend nonfatal signals when not dumping.
Bug: http://b/34516140
Test: debuggerd -b `pidof surfaceflinger`
Change-Id: I0275ffca24bf4840e264eaa4b79611e2404edfb0
2017-01-25 11:15:01 -08:00
Josh Gao
fc12c4b81e Merge "crash_dump: properly dump when we can't talk to tombstoned." 2017-01-25 19:14:09 +00:00
Steven Moreland
f38aab4621 init.rc, typo: fs-post-data -> post-fs-data
Test: pass
Change-Id: Icafdb7ec61935b35db85096b49e7f232a456f620
2017-01-25 10:52:40 -08:00