Commit graph

1222 commits

Author SHA1 Message Date
Jeff Sharkey
59e8e5b6cc am 88fbc742: am 7206b42b: (-s ours) am eddf9bd6: Request specific tags from blkid.
* commit '88fbc742958684f171e79159b40edfee07127916':
2015-08-27 14:46:06 +00:00
Jeff Sharkey
78b7bfb8e9 am fce8034b: am 2b8f194f: (-s ours) am 1bd078fa: Protect runtime storage mount points.
* commit 'fce8034b3ee211c565d5afd2a98ef241c57079fd':
2015-08-27 14:46:05 +00:00
Jeff Sharkey
7a3a03f6bc am 489fce1c: am 3a60599a: (-s ours) am 8474ee32: Return useful path when not visible.
* commit '489fce1c852f546410f175be0a9244b7dd149913':
2015-08-27 14:46:04 +00:00
Jeff Sharkey
238dec3507 am c4ecb517: am 26934b09: (-s ours) am d46687ee: Use random data for benchmark instead of zeros.
* commit 'c4ecb5175079439932ec33e5126e47dae0e82a56':
2015-08-27 14:46:03 +00:00
Jeff Sharkey
8d8b741d0a am e7556ee8: am 09b542f2: (-s ours) am 20642ae7: Give secondary users read-only physical cards.
* commit 'e7556ee8146bde034ccd534732d785b03d15d394':
2015-08-27 14:46:02 +00:00
Jeff Sharkey
fd8cda2de7 am 8a286762: am 15c6489a: (-s ours) am 32679a82: Create user directory on emulated storage.
* commit '8a286762893788a9b21b486e7e5ad25ae6a728b8':
2015-08-27 14:46:01 +00:00
Jeff Sharkey
9c73451464 am 287cc74d: am 0d3fe815: (-s ours) am 81f55c6d: Mount emulated volumes as consistent location.
* commit '287cc74d0e379e2dfdc5157b840954a721862db2':
2015-08-27 14:46:00 +00:00
Tom Cherry
fa68681ac7 am 79b6fdfc: (-s ours) update bundled rc files to their contents from rootdir/init.rc
* commit '79b6fdfcea593b9f1a2422f1327a279ee77a54c2':
  update bundled rc files to their contents from rootdir/init.rc
2015-08-27 11:17:54 +00:00
Tom Cherry
efbaf0de36 am 685439bb: (-s ours) am 218f48d6: Merge "bundle init.rc contents with its service"
* commit '685439bbc7ef958a3472465ebdabf2b997889e76':
2015-08-27 11:17:53 +00:00
Elliott Hughes
debb3f8cba am b1259ffd: (-s ours) am f298f6be: Merge "Use errno correctly."
* commit 'b1259ffd92f8965521f3f934548936dfd7650262':
2015-08-27 11:17:53 +00:00
Elliott Hughes
d9aea039e8 am 3097d0e1: (-s ours) am 6d24e086: Merge "Remove dead code."
* commit '3097d0e151b4f07552e987ee5819e9e7c6953a71':
2015-08-27 11:17:52 +00:00
Jeff Sharkey
88fbc74295 am 7206b42b: (-s ours) am eddf9bd6: Request specific tags from blkid.
* commit '7206b42badd044e3fcc75c1e1e842bf6d5475867':
2015-08-27 11:17:51 +00:00
Jeff Sharkey
fce8034b3e am 2b8f194f: (-s ours) am 1bd078fa: Protect runtime storage mount points.
* commit '2b8f194f1a3c4929e7921a3cb31defd98579e87c':
2015-08-27 11:17:51 +00:00
Jeff Sharkey
489fce1c85 am 3a60599a: (-s ours) am 8474ee32: Return useful path when not visible.
* commit '3a60599ae83aadc9eb2dcc5f645508100ede58f9':
2015-08-27 11:17:49 +00:00
Jeff Sharkey
c4ecb51750 am 26934b09: (-s ours) am d46687ee: Use random data for benchmark instead of zeros.
* commit '26934b0954f28d2d465097bf78f6be0139839b14':
2015-08-27 11:17:48 +00:00
Jeff Sharkey
e7556ee814 am 09b542f2: (-s ours) am 20642ae7: Give secondary users read-only physical cards.
* commit '09b542f269bfd0726de53c2d230c5266f5227f1c':
2015-08-27 11:17:47 +00:00
Jeff Sharkey
8a28676289 am 15c6489a: (-s ours) am 32679a82: Create user directory on emulated storage.
* commit '15c6489aa9de4a11f4ec25b69841fb1c936b6380':
2015-08-27 11:17:46 +00:00
Jeff Sharkey
287cc74d0e am 0d3fe815: (-s ours) am 81f55c6d: Mount emulated volumes as consistent location.
* commit '0d3fe8152ef0e15bd4105013faaee7961e6a6ea9':
2015-08-27 11:17:46 +00:00
Paul Crowley
480fcd2750 Set uid/gid of newly created user dirs to system/system.
Bug: 23395513
Change-Id: I3d76b77339f995103c0aec09c6de77b3c8cdc0dd
2015-08-24 14:53:28 +01:00
Tom Cherry
ca341fc896 am 205a874e: update bundled rc files to their contents from rootdir/init.rc
* commit '205a874e860cb33420226e9a345e4fa2c97d14aa':
  update bundled rc files to their contents from rootdir/init.rc
2015-08-21 22:20:41 +00:00
Tom Cherry
205a874e86 update bundled rc files to their contents from rootdir/init.rc
Bug 23186545

Change-Id: I634b682b7a4cef9e1b817561b4458e1442443c63
(cherry picked from commit 6cb234dc57)
2015-08-21 22:10:23 +00:00
Tom Cherry
79b6fdfcea update bundled rc files to their contents from rootdir/init.rc
Bug 23186545

Change-Id: I634b682b7a4cef9e1b817561b4458e1442443c63
(cherry picked from commit 6cb234dc57)
2015-08-21 21:55:01 +00:00
Tom Cherry
6cb234dc57 update bundled rc files to their contents from rootdir/init.rc
Bug 23186545

Change-Id: I634b682b7a4cef9e1b817561b4458e1442443c63
2015-08-21 12:39:39 -07:00
Tom Cherry
a9e2648184 am 10b02df8: am 218f48d6: Merge "bundle init.rc contents with its service"
* commit '10b02df820ece261b621a1f46838995249a1082c':
  bundle init.rc contents with its service
2015-08-21 18:31:27 +00:00
Tom Cherry
10b02df820 am 218f48d6: Merge "bundle init.rc contents with its service"
* commit '218f48d6c55a7ee5115a7a8fc4248d33ea01811f':
  bundle init.rc contents with its service
2015-08-21 18:24:14 +00:00
Tom Cherry
685439bbc7 am 218f48d6: Merge "bundle init.rc contents with its service"
* commit '218f48d6c55a7ee5115a7a8fc4248d33ea01811f':
  bundle init.rc contents with its service
2015-08-21 18:20:19 +00:00
Tom Cherry
218f48d6c5 Merge "bundle init.rc contents with its service" 2015-08-21 17:42:33 +00:00
Tom Cherry
a285984ae4 bundle init.rc contents with its service
Bug: 23186545
Change-Id: I82d8b6dc54ebe32ceb1ed997aaab3701ee7b6c4a
2015-08-19 17:36:11 -07:00
Elliott Hughes
72ec78511a am ad6bd043: am f298f6be: Merge "Use errno correctly."
* commit 'ad6bd0438745aeb9a4484448e4392dc23ea3b351':
  Use errno correctly.
2015-08-17 17:48:38 +00:00
Elliott Hughes
b1259ffd92 am f298f6be: Merge "Use errno correctly."
* commit 'f298f6be4c8df8745735676e37ccc963909ff3b2':
  Use errno correctly.
2015-08-17 17:43:54 +00:00
Elliott Hughes
ad6bd04387 am f298f6be: Merge "Use errno correctly."
* commit 'f298f6be4c8df8745735676e37ccc963909ff3b2':
  Use errno correctly.
2015-08-17 17:43:52 +00:00
Elliott Hughes
f298f6be4c Merge "Use errno correctly." 2015-08-17 17:33:35 +00:00
tao.pei
a1038a9566 Use errno correctly.
Make sure to check errno prior to doing anything
else that can modify it.

Change-Id: Id81ecc2c3fa07c222ab1e2ef6441331a1eaad635
2015-08-17 20:22:17 +08:00
Elliott Hughes
3d83948032 am 5e7f772d: am 6d24e086: Merge "Remove dead code."
* commit '5e7f772dbd27d5d93b15f004991749d321b6d62d':
  Remove dead code.
2015-08-15 02:24:13 +00:00
Elliott Hughes
5e7f772dbd am 6d24e086: Merge "Remove dead code."
* commit '6d24e0866f61aba0ac3023408ead083ad9b6cdab':
  Remove dead code.
2015-08-15 02:19:16 +00:00
Elliott Hughes
3097d0e151 am 6d24e086: Merge "Remove dead code."
* commit '6d24e0866f61aba0ac3023408ead083ad9b6cdab':
  Remove dead code.
2015-08-15 02:19:04 +00:00
Elliott Hughes
6d24e0866f Merge "Remove dead code." 2015-08-15 02:06:36 +00:00
Elliott Hughes
c569f528a2 Remove dead code.
Change-Id: I042f8aacfa8a7900b5684aaa24da368cdcb41b1f
2015-08-14 18:41:14 -07:00
Jeff Sharkey
7206b42bad am eddf9bd6: Request specific tags from blkid.
* commit 'eddf9bd63c1f7e0f9709f7c58a1035fa43338325':
  Request specific tags from blkid.
2015-08-13 00:43:05 +00:00
Jeff Sharkey
e7fead0424 am 0c4ce9b0: am 008c1ac2: am eddf9bd6: Request specific tags from blkid.
* commit '0c4ce9b030a8e72ca4c5c8580183bc0e94896a1b':
  Request specific tags from blkid.
2015-08-13 00:22:09 +00:00
Jeff Sharkey
0c4ce9b030 am 008c1ac2: am eddf9bd6: Request specific tags from blkid.
* commit '008c1ac225c1ca29f38b57203d82a63f6f85b865':
  Request specific tags from blkid.
2015-08-13 00:15:51 +00:00
Jeff Sharkey
008c1ac225 am eddf9bd6: Request specific tags from blkid.
* commit 'eddf9bd63c1f7e0f9709f7c58a1035fa43338325':
  Request specific tags from blkid.
2015-08-12 23:55:26 +00:00
Jeff Sharkey
eddf9bd63c Request specific tags from blkid.
Otherwise blkid can emit tags like SEC_TYPE which mess with the value
extraction code.

Bug: 23069906
Change-Id: Id2a588ff43a538747d1e44cd8218c96ebd0192c2
2015-08-12 16:04:52 -07:00
Jeff Sharkey
228f9509e1 am 47f0531e: am 4fc30636: am 1bd078fa: Protect runtime storage mount points.
* commit '47f0531ec9adf7a29873ccdb11a1ee7b11e76c80':
  Protect runtime storage mount points.
2015-08-06 21:45:56 +00:00
Jeff Sharkey
47f0531ec9 am 4fc30636: am 1bd078fa: Protect runtime storage mount points.
* commit '4fc30636065aa819a866cfcb3962d55b37db3312':
  Protect runtime storage mount points.
2015-08-06 21:31:57 +00:00
Jeff Sharkey
2b8f194f1a am 1bd078fa: Protect runtime storage mount points.
* commit '1bd078fa7b5ca613cb3e793d67ccd86d2602787d':
  Protect runtime storage mount points.
2015-08-06 19:58:08 +00:00
Jeff Sharkey
4fc3063606 am 1bd078fa: Protect runtime storage mount points.
* commit '1bd078fa7b5ca613cb3e793d67ccd86d2602787d':
  Protect runtime storage mount points.
2015-08-06 19:41:34 +00:00
Jeff Sharkey
1bd078fa7b Protect runtime storage mount points.
We have a bunch of magic that mounts the correct view of storage
access based on the runtime permissions of an app, but we forgot to
protect the real underlying data sources; oops.

This series of changes just bumps the directory heirarchy one level
to give us /mnt/runtime which we can mask off as 0700 to prevent
people from jumping to the exposed internals.

Also add CTS tests to verify that we're protecting access to
internal mount points like this.

Bug: 22964288
Change-Id: I83f09f0423f4993e766273c50389dd29b1c50589
2015-08-06 11:45:50 -07:00
Jeff Sharkey
a95e66afba am 6d71977d: am 157ba435: am 8474ee32: Return useful path when not visible.
* commit '6d71977d142f42a4646f23c2fba79fed4fbfd7d7':
  Return useful path when not visible.
2015-07-31 02:17:55 +00:00
Jeff Sharkey
6d71977d14 am 157ba435: am 8474ee32: Return useful path when not visible.
* commit '157ba4356da6d771194f0276ed1fdd69a14b85a5':
  Return useful path when not visible.
2015-07-31 02:12:10 +00:00