Commit Graph

38222 Commits

Author SHA1 Message Date
Jeff Sharkey c16340c646 Merge changes from topic "resgidz" am: a7004e5fed
am: b162da3a47

Change-Id: Iebe526ef318e7602ac55fb9822261554002df255
2018-01-09 00:51:41 +00:00
Andreas Gampe 9c7799345c Merge "Nativeloader: Add minimal effort for host library path" am: 01ccde321f
am: f9138787d3

Change-Id: I069435892c78f45138dd72a54be94f0316ac4cb4
2018-01-09 00:45:06 +00:00
Steve Muckle 34f29a86fd Merge "rootdir: make sure the /odm mountpoint is always available" am: fcec40de0b
am: ada4b7782d

Change-Id: I4bba06db4f3a3bd1a43692231ed4c8d11ddc2229
2018-01-09 00:39:45 +00:00
Jeff Sharkey b162da3a47 Merge changes from topic "resgidz"
am: a7004e5fed

Change-Id: I96946e0d0788771511e5027cf18d52684d4cce06
2018-01-08 18:26:50 +00:00
Jeff Sharkey a7004e5fed Merge changes from topic "resgidz"
* changes:
  Add reserved disk GID to critical component.
  Set reserved GID when setting reserved blocks.
  Allocate GID to use reserved disk space.
2018-01-08 18:17:50 +00:00
Christopher Morin a7f3fef5cb Merge "fs_mgr: fix memory leak" am: 9bbcea1878
am: 9b205334d6

Change-Id: I7275080a3f44f96e5fde1fbfab0c0d84c6e25bbc
2018-01-08 09:53:36 +00:00
Andreas Gampe f9138787d3 Merge "Nativeloader: Add minimal effort for host library path"
am: 01ccde321f

Change-Id: I0a5c00295f83757927268c7eb63bcf332a162d9b
2018-01-08 09:47:21 +00:00
Treehugger Robot 01ccde321f Merge "Nativeloader: Add minimal effort for host library path" 2018-01-08 09:40:50 +00:00
Jeff Sharkey 9410d572fb Add reserved disk GID to critical component.
We recently created a new GID that can be granted to critical system
processes, so that the system is usable enough for the user to free
up disk space used by abusive apps.

Test: builds, boots
Bug: 62024591
Change-Id: Ia5af7535cc05a214f8720ac08c594c6db888597a
2018-01-07 19:25:00 -07:00
Jeff Sharkey 47dc236d2f Set reserved GID when setting reserved blocks.
If we're setting up the number of reserved blocks, we also want to
set our new AID_DISK_RESERVED as the GID that's allowed to use those
blocks.

Test: builds, boots
Bug: 62024591
Change-Id: Iaabfa7d63ad9ff0b9732e2b9996937607d622fe2
2018-01-07 19:24:55 -07:00
Jeff Sharkey 354417a7fb Allocate GID to use reserved disk space.
Filesystems allow the setting of the "resgid" parameter to designate
a GID that is allowed to use the "reserved" disk space (in addition
to UID 0).  We'll be granting this GID to critical system processes,
so that the system is usable enough for the user to free up disk
space used by abusive apps.

Test: builds, boots
Bug: 62024591
Change-Id: I2d166f3b730f0a3e7279fb40f12db7413c1dadad
2018-01-07 19:21:51 -07:00
Steve Muckle ada4b7782d Merge "rootdir: make sure the /odm mountpoint is always available"
am: fcec40de0b

Change-Id: I29672e57f16e43449bcb868e463705f23bf1f722
2018-01-06 05:56:43 +00:00
Christopher Morin 9b205334d6 Merge "fs_mgr: fix memory leak"
am: 9bbcea1878

Change-Id: I4c82760de7301be80fe2bc39fe8aa9d2f5e7f698
2018-01-06 05:56:01 +00:00
Treehugger Robot fcec40de0b Merge "rootdir: make sure the /odm mountpoint is always available" 2018-01-05 22:19:05 +00:00
Christopher Morin 9bbcea1878 Merge "fs_mgr: fix memory leak" 2018-01-05 21:37:08 +00:00
Tom Cherry 01d62bf347 Merge "PropertyService: Exclude sanitization for darwin" am: 5a7a8f2f17
am: 040b849f5a

Change-Id: Idc017ee189d9ebe5acdb59c9fb379b46f8dfa1f1
2018-01-05 17:38:15 +00:00
Tom Cherry 040b849f5a Merge "PropertyService: Exclude sanitization for darwin"
am: 5a7a8f2f17

Change-Id: I1c394b6079e2ff2bec9ad6ac54aa03bcc9f5ac8e
2018-01-05 17:35:40 +00:00
Tom Cherry 5a7a8f2f17 Merge "PropertyService: Exclude sanitization for darwin" 2018-01-05 17:32:55 +00:00
Andreas Gampe e4c9acb767 PropertyService: Exclude sanitization for darwin
This doesn't seem to work. All other projects restrict sanitization,
too.

Mac build not actually tested.

Test: m
Test: linux host build still contains ubsan symbols
Change-Id: I60532a46177632320ba3b15b4a7c2d5e31ef2bfc
2018-01-04 19:25:52 -08:00
Chris Morin 517ed633c2 fs_mgr: fix memory leak
The fstab struct wasn't properly being freed.

Test: Ensure a user of fs_mgr (vold) runs without errors.
Change-Id: I4dcb8ae2ab3e831fbdb13372eb31a67a5d9fb735
2018-01-04 18:48:21 -08:00
Tom Cherry 8518daecd0 Merge "Create a host side checker for property info file correctness" am: db976aa526
am: 1b42dece61

Change-Id: Ic2f23ea145af0aef96671aefb574fafa7aad2b87
2018-01-04 22:11:07 +00:00
Tom Cherry 2993f7ac5e Merge "Add OWNERS file" am: 2af1be4c16
am: 956a264a2b

Change-Id: Ib24c2c9453ec9b8904b2d5d345e48f52051afbaa
2018-01-04 22:10:21 +00:00
Tom Cherry 1b42dece61 Merge "Create a host side checker for property info file correctness"
am: db976aa526

Change-Id: I07b009c4214f7b104a2c90ebb58149c49bbc5235
2018-01-04 22:06:18 +00:00
Tom Cherry 956a264a2b Merge "Add OWNERS file"
am: 2af1be4c16

Change-Id: Ie1b139a48e045116d9a22d690b94c2baf0bb8b1b
2018-01-04 22:05:43 +00:00
Treehugger Robot db976aa526 Merge "Create a host side checker for property info file correctness" 2018-01-04 22:00:22 +00:00
Tom Cherry 919458c350 Create a host side checker for property info file correctness
Bug: 36001741
Test: verify a valid property info file and fail due to various failures
Change-Id: Iadd38796aa619f87ec559fe5687bbe2009df8b2d
2018-01-04 22:00:11 +00:00
Tom Cherry 2af1be4c16 Merge "Add OWNERS file" 2018-01-04 21:59:30 +00:00
Tom Cherry b6917a3c99 Add OWNERS file
Change-Id: I13315585ecc74978689d0e033ce93a94b1560d1d
Exempted-From-Owner-Approval: Vacation
2018-01-04 13:54:45 -08:00
Jeff Vander Stoep 9de839aeb7 Merge "LogAudit: remove dynamic rate limiter" am: 9e7cec22e0
am: cf7f19f4b9

Change-Id: I8567fe9b6e589408ec794c0ab846ea7726be364c
2018-01-04 17:36:37 +00:00
Jeff Vander Stoep cf7f19f4b9 Merge "LogAudit: remove dynamic rate limiter"
am: 9e7cec22e0

Change-Id: I332b64922dbe52fe0e254de7150e36fa6bc0fdb9
2018-01-04 17:33:04 +00:00
Treehugger Robot 9e7cec22e0 Merge "LogAudit: remove dynamic rate limiter" 2018-01-04 17:21:32 +00:00
Tom Cherry daef77ed4c Merge "system property: property set without time spent asleep" am: 0f65650859
am: 2b4d5e6958

Change-Id: Ia82dbaf01943f29d4f50cc133137b62184b15860
2018-01-04 17:16:03 +00:00
Tom Cherry 2b4d5e6958 Merge "system property: property set without time spent asleep"
am: 0f65650859

Change-Id: I902193d830e94fa9bb4032768d980487224f45d3
2018-01-04 17:12:01 +00:00
Tom Cherry 0f65650859 Merge "system property: property set without time spent asleep" 2018-01-04 17:06:59 +00:00
Steve Muckle 1a3e3065fb rootdir: make sure the /odm mountpoint is always available
The odm partition will eventually be required. Prepare for this by
creating its mount point.

Bug: 37322799
Test: run cts-dev -m CtsPermissionTestCases
Change-Id: Ibd031b68dd7328c853ded401bb2690dbd6675141
2018-01-04 08:45:20 -08:00
Jiyong Park b22c5a1aa9 Merge "Don't install unnecessary VNDK libs" am: 2fdf9da669
am: 3ef1ce174d

Change-Id: I71f560f184a6e3945978140dec55d7db6cd1cc1e
2018-01-04 13:43:08 +00:00
Jiyong Park 3ef1ce174d Merge "Don't install unnecessary VNDK libs"
am: 2fdf9da669

Change-Id: Iac44f8662cd1d0adcfd11515945d678a9a82e346
2018-01-04 13:39:07 +00:00
Treehugger Robot 2fdf9da669 Merge "Don't install unnecessary VNDK libs" 2018-01-04 13:36:14 +00:00
Dong Jinguang bb877e273b system property: property set without time spent asleep
There is a 2s timeout for system property set that currently
uses boot_clock as its clock source. If the system goes to sleep
during a property set, it may erroneously cause the timeout to
be reached as boot_clock increments during sleep. This patch
changes from boot_clock to steady_clock to ignore time spent
asleep when determining this timeout.

bug: 71497234
Test: 1. System service process try to set a system property
      with timeout 2s
      2. At the same time, the system go into sleep mode more
      than 2s
      3. System property set will be ok.

Change-Id: I808b9af16974a0f4de60a4ca30ae64d095a13422
2018-01-04 09:35:40 +08:00
Daniel Colascione 9d32261de6 Merge "Pin lmkd for real" am: 625d1383d3
am: da0d209ba1

Change-Id: I774bef622b77a1cfb5cfd1b8efbe0e2bb92ea422
2018-01-03 23:40:48 +00:00
Daniel Colascione da0d209ba1 Merge "Pin lmkd for real"
am: 625d1383d3

Change-Id: If813c79b3f321faa5fc34d70078c30c0966a3676
2018-01-03 23:30:53 +00:00
Treehugger Robot 625d1383d3 Merge "Pin lmkd for real" 2018-01-03 23:23:38 +00:00
Jeff Vander Stoep 54c7a5f1e7 LogAudit: remove dynamic rate limiter
Select a low rate-limit to cut down on logspam and resulting
performance regressions.

Functionally reverts 247d682fe1
(logd: sepolicy dynamic rate limiting) and sets a static low
rate-limit. Before 247d682f, the limit was statically set to 20.
247d682f continued to support 20, but if sustained dropped the limit
to 5. This revert leaves us at 5 so as not to impact performance.

Test: /data/nativetest/logd-unit-tests/logd-unit-tests \
    --gtest_filter=logd.sepolicy_rate_limiter
    [  PASSED  ] 1 test.
Bug: 71538411
Change-Id: I6c92f4ba825cc24beb8f1f1b79258fa8097c837b
2018-01-03 12:52:58 -08:00
Daniel Colascione 4dd5d00ecc Pin lmkd for real
We pin lmkd in memory so that we don't take page faults (and thus
requisition memory) while we're in the process of responding to a
low-memory condition. mlockall(2) is the right primitive for this
pinning. Previously, we used the MCL_FUTURE flag to mlockall: used
this way, mlockall doesn't actually pin all pages in memory, since
MCL_FUTURE affects only the default flags for future mappings and
doesn't affect mapping already in existence at the time of the
mlockall call --- like the lmkd executable itself.

This patch adds the MCL_CURRENT flag, which also pins all pages
already mapped.

Test: code inspection
Change-Id: I4563959367a2f0a9cadc3ea41731b7f311326685
2018-01-03 12:32:14 -08:00
Yi Kong 53d69290a7 Merge "Use correct format specifier" am: 370d2e02e0
am: ef44dd2325

Change-Id: Ic17b42e30a2971782491797c5374e765deec3082
2018-01-03 20:13:56 +00:00
Yi Kong ef44dd2325 Merge "Use correct format specifier"
am: 370d2e02e0

Change-Id: I167f8bfdd819945b53bb8fa29555f593f8687fa8
2018-01-03 20:01:38 +00:00
Yi Kong 370d2e02e0 Merge "Use correct format specifier" 2018-01-03 19:49:08 +00:00
Andreas Gampe 5c7d582be4 Nativeloader: Add minimal effort for host library path
Attempt to (somewhat) support the given library path on a non-Android
device. Iterate through the given list and construct a complete path.
This will of course not handle dependencies correctly and is best
effort.

Required (and enough) for agent-related testing in ART.

Bug: 70901841
Test: m
Change-Id: I9ecb27d662c8a2c79a70b6c5464483c449c5d034
2018-01-02 09:05:55 -08:00
Yi Kong 21c515ad1c Use correct format specifier
Discovered by the upcoming compiler update.

Test: m checkbuild
Change-Id: I8dd4bb711bfa4f4b71a3345a2ee38f689cee5257
2017-12-27 13:42:49 -08:00
Narayan Kamath 5c39aa53a9 Merge "zip_archive: Fix a few more badly written tests." am: 93d344d98c
am: 000e0bfff4

Change-Id: I6af4ce2a977e0fbc21974e8e80516fb39ec8156a
2017-12-27 11:47:41 +00:00