OSDN Git Service

android-x86/system-extras.git
9 years agoam 9a6b9137: Merge "Implement simpleperf list subcommand."
Yabin Cui [Sat, 18 Apr 2015 21:49:18 +0000 (21:49 +0000)]
am 9a6b9137: Merge "Implement simpleperf list subcommand."

* commit '9a6b9137db9cd00e1189322a5db5581cd67e2867':
  Implement simpleperf list subcommand.

9 years agoMerge "Implement simpleperf list subcommand."
Yabin Cui [Sat, 18 Apr 2015 21:13:26 +0000 (21:13 +0000)]
Merge "Implement simpleperf list subcommand."

9 years agoImplement simpleperf list subcommand.
Yabin Cui [Thu, 16 Apr 2015 22:26:31 +0000 (15:26 -0700)]
Implement simpleperf list subcommand.

simpleperf is used to replace linux/tools/perf. And This CL implements
the list subcommand of it.

Change-Id: I3e6fe854e19cc370070d0fd8416d0aa6fa8f8e90

9 years agoam 7f223030: Merge "f2fs_utils: fix build break in static_sdk_tools"
Mark Salyzyn [Thu, 16 Apr 2015 18:45:51 +0000 (18:45 +0000)]
am 7f223030: Merge "f2fs_utils: fix build break in static_sdk_tools"

* commit '7f223030ffe1a24600b09f52f17209f42dc0dcc0':
  f2fs_utils: fix build break in static_sdk_tools

9 years agoMerge "f2fs_utils: fix build break in static_sdk_tools"
Mark Salyzyn [Thu, 16 Apr 2015 18:02:41 +0000 (18:02 +0000)]
Merge "f2fs_utils: fix build break in static_sdk_tools"

9 years agof2fs_utils: fix build break in static_sdk_tools
Mark Salyzyn [Thu, 16 Apr 2015 16:56:36 +0000 (09:56 -0700)]
f2fs_utils: fix build break in static_sdk_tools

external/f2fs-tools/mkfs/f2fs_format.c:357:
    error: undefined reference to dev_read_version
clang: error:
    linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj/lib/libf2fs_fmt_host_dyn.so] Error 1

Change-Id: I9bf1eec9ee60aa2fc55a3d0793a67d36f271acef

9 years agoam 81c39be5: Merge "make_ext4fs: use libcutils and libselinux shared libraries"
Mark Salyzyn [Wed, 15 Apr 2015 19:16:35 +0000 (19:16 +0000)]
am 81c39be5: Merge "make_ext4fs: use libcutils and libselinux shared libraries"

* commit '81c39be5ecdc37c32439c9b7d078be182505a34e':
  make_ext4fs: use libcutils and libselinux shared libraries

9 years agoam d16419e1: Merge "Move away from gr_surface."
Elliott Hughes [Wed, 15 Apr 2015 19:16:34 +0000 (19:16 +0000)]
am d16419e1: Merge "Move away from gr_surface."

* commit 'd16419e176efa26f1760a52a9b57df96d070147a':
  Move away from gr_surface.

9 years agoMerge "make_ext4fs: use libcutils and libselinux shared libraries"
Mark Salyzyn [Wed, 15 Apr 2015 18:14:37 +0000 (18:14 +0000)]
Merge "make_ext4fs: use libcutils and libselinux shared libraries"

9 years agoMerge "Move away from gr_surface."
Elliott Hughes [Wed, 15 Apr 2015 17:59:52 +0000 (17:59 +0000)]
Merge "Move away from gr_surface."

9 years agoMove away from gr_surface.
Elliott Hughes [Wed, 15 Apr 2015 17:23:15 +0000 (10:23 -0700)]
Move away from gr_surface.

Change-Id: Id23940a2e92bbfd56a2f2e1e021fb89114830dd4

9 years agomake_ext4fs: use libcutils and libselinux shared libraries
Mark Salyzyn [Tue, 7 Apr 2015 16:36:29 +0000 (09:36 -0700)]
make_ext4fs: use libcutils and libselinux shared libraries

- move libcutils and libselinux as shared now that they are
  in DISTTOOL.
- liblog dependency is part of libcutils, and need not be
  called out explicitly now. liblog is in DISTTOOL.
- libcutils fs_config has the right to add Android logging

Bug: 19908228
Change-Id: I85d6d0c1fd5cf22f7328fdfcbe9a8511a552857c

9 years agoam a8ac44e4: Merge "select(2) is bad, always use poll(2). Also remove unnecessary...
Paul Crowley [Thu, 9 Apr 2015 16:35:39 +0000 (16:35 +0000)]
am a8ac44e4: Merge "select(2) is bad, always use poll(2). Also remove unnecessary loop."

* commit 'a8ac44e4da690d8278e24b611a8cb00010f70fd2':
  select(2) is bad, always use poll(2). Also remove unnecessary loop.

9 years agoMerge "select(2) is bad, always use poll(2). Also remove unnecessary loop."
Paul Crowley [Thu, 9 Apr 2015 15:55:35 +0000 (15:55 +0000)]
Merge "select(2) is bad, always use poll(2). Also remove unnecessary loop."

9 years agoselect(2) is bad, always use poll(2). Also remove unnecessary loop.
Paul Crowley [Thu, 9 Apr 2015 09:18:54 +0000 (10:18 +0100)]
select(2) is bad, always use poll(2). Also remove unnecessary loop.

Change-Id: I18cb8d75945413e35dc904bc95362d9b579cb336

9 years agoam de9235d6: Merge "Add memmove benchmarking."
Christopher Ferris [Thu, 9 Apr 2015 01:15:23 +0000 (01:15 +0000)]
am de9235d6: Merge "Add memmove benchmarking."

* commit 'de9235d6fab42798cb32a772115f75e7bbf0bd3c':
  Add memmove benchmarking.

9 years agoMerge "Add memmove benchmarking."
Christopher Ferris [Wed, 8 Apr 2015 22:28:38 +0000 (22:28 +0000)]
Merge "Add memmove benchmarking."

9 years agoAdd memmove benchmarking.
Christopher Ferris [Wed, 8 Apr 2015 22:21:42 +0000 (15:21 -0700)]
Add memmove benchmarking.

Change-Id: I75bb907f5633d155cd411941ea6d9d39b9787983

9 years agoMerge "Add real UUID support to ext4_utils."
Jeff Sharkey [Tue, 7 Apr 2015 21:10:54 +0000 (21:10 +0000)]
Merge "Add real UUID support to ext4_utils."

9 years agoam 46b4f7d4: Merge "Perf profile collection daemon."
Elliott Hughes [Tue, 7 Apr 2015 20:53:20 +0000 (20:53 +0000)]
am 46b4f7d4: Merge "Perf profile collection daemon."

* commit '46b4f7d4288acfbf4c8a4aabcd70a47fa92744d9':
  Perf profile collection daemon.

9 years agoMerge "Perf profile collection daemon."
Elliott Hughes [Tue, 7 Apr 2015 20:10:14 +0000 (20:10 +0000)]
Merge "Perf profile collection daemon."

9 years agoAdd real UUID support to ext4_utils.
Jeff Sharkey [Tue, 7 Apr 2015 05:29:04 +0000 (22:29 -0700)]
Add real UUID support to ext4_utils.

For some unknown reason, we've always been generating the same UUID
for every single ext4 partition that we formatted.  Yikes.

Add a flag to request that a real UUID be generated when creating
filesystem.

Bug: 19993667
Change-Id: I6f3f6aa373021cb8b6779e5354ac36436c4d98d3

9 years agoPerf profile collection daemon.
Than McIntosh [Thu, 5 Mar 2015 16:05:02 +0000 (11:05 -0500)]
Perf profile collection daemon.

Collects system-wide profiles via periodic invocation of
/system/bin/perf, placing the resulting data files in a destination
directory selected via config file.  Behavior of the daemon, e.g how
often to profile, duration of profiling runs, etc, can also be
controlled with config file settings.

Change-Id: I7978cab62aa0c2507ecf8d70ba073e77db730120

9 years agoam 01869e7a: Merge "Introduce squashfs-utils that includes helper functions"
Mohamad Ayyash [Tue, 7 Apr 2015 02:07:06 +0000 (02:07 +0000)]
am 01869e7a: Merge "Introduce squashfs-utils that includes helper functions"

* commit '01869e7a7c7afb0074c0caa2bda34f38aa83ed2a':
  Introduce squashfs-utils that includes helper functions

9 years agoMerge "Introduce squashfs-utils that includes helper functions"
Mohamad Ayyash [Tue, 7 Apr 2015 01:24:21 +0000 (01:24 +0000)]
Merge "Introduce squashfs-utils that includes helper functions"

9 years agoIntroduce squashfs-utils that includes helper functions
Mohamad Ayyash [Thu, 2 Apr 2015 02:25:28 +0000 (19:25 -0700)]
Introduce squashfs-utils that includes helper functions

For example: extracting filesystem size from superblock

Change-Id: I97c79d80ebb767a977c8ca27f7e0877b5ead8fdc
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoam 0a726d10: Merge "ext_utils: xattr_free_space assert"
Mark Salyzyn [Mon, 6 Apr 2015 23:14:48 +0000 (23:14 +0000)]
am 0a726d10: Merge "ext_utils: xattr_free_space assert"

* commit '0a726d107744add5ea656bca6b214ba3c8100ee6':
  ext_utils: xattr_free_space assert

9 years agoam 0f68c105: Merge "ext4_utils: xattr_assert_sane false positives"
Mark Salyzyn [Mon, 6 Apr 2015 23:14:41 +0000 (23:14 +0000)]
am 0f68c105: Merge "ext4_utils: xattr_assert_sane false positives"

* commit '0f68c105ffaf80b9619b8970572b213d284ce117':
  ext4_utils: xattr_assert_sane false positives

9 years agoMerge "ext_utils: xattr_free_space assert"
Mark Salyzyn [Mon, 6 Apr 2015 19:41:07 +0000 (19:41 +0000)]
Merge "ext_utils: xattr_free_space assert"

9 years agoext_utils: xattr_free_space assert
Mark Salyzyn [Mon, 6 Apr 2015 19:37:28 +0000 (12:37 -0700)]
ext_utils: xattr_free_space assert

Commit 636d848860e5eac4225a830706fc34d48d8cc01e failed
to modify the assert checking to compensate for the
four null bytes.

Change-Id: Iec618f94f05f8700683507a3c797521689103b5a

9 years agoMerge "ext4_utils: xattr_assert_sane false positives"
Mark Salyzyn [Mon, 6 Apr 2015 19:22:48 +0000 (19:22 +0000)]
Merge "ext4_utils: xattr_assert_sane false positives"

9 years agoext4_utils: xattr_assert_sane false positives
Mark Salyzyn [Mon, 6 Apr 2015 19:16:42 +0000 (12:16 -0700)]
ext4_utils: xattr_assert_sane false positives

xattr_free_space() does not match kernel, it subtracts
sizeof(__u32) as a buffer zone to permit IS_LAST_ENTRY
to function. As documented in .../linux/fs/ext4/xattr.c:

+------------------+
| header           |
| entry 1          | |
| entry 2          | | growing downwards
| entry 3          | v
| four null bytes  | <<<< HERE is why sizeof(__u32)
| . . .            |
| value 1          | ^
| value 3          | | growing upwards
| value 2          | |
+------------------+

Change-Id: Iee6e4e90664a3c2c5056006870b0f2f22b236bad

9 years agoam 01764adb: Merge "Fix missing \'\n\'s in kernel logging."
Elliott Hughes [Sat, 4 Apr 2015 19:43:15 +0000 (19:43 +0000)]
am 01764adb: Merge "Fix missing \'\n\'s in kernel logging."

* commit '01764adb2c182ef593fba3b9cdece112c26a4765':
  Fix missing '\n's in kernel logging.

9 years agoMerge "Fix missing '\n's in kernel logging."
Elliott Hughes [Sat, 4 Apr 2015 19:06:34 +0000 (19:06 +0000)]
Merge "Fix missing '\n's in kernel logging."

9 years agoFix missing '\n's in kernel logging.
Elliott Hughes [Sat, 4 Apr 2015 19:03:52 +0000 (12:03 -0700)]
Fix missing '\n's in kernel logging.

Change-Id: I3a127b2d50012fec2f91fd302bbc611e47e04aff

9 years agoam e3267421: Merge "ext4_utils: move fs_config to libcutils"
Mark Salyzyn [Thu, 2 Apr 2015 21:40:13 +0000 (21:40 +0000)]
am e3267421: Merge "ext4_utils: move fs_config to libcutils"

* commit 'e32674213dc5ad2375423e43b3f2419ead19f568':
  ext4_utils: move fs_config to libcutils

9 years agoMerge "ext4_utils: move fs_config to libcutils"
Mark Salyzyn [Thu, 2 Apr 2015 20:59:05 +0000 (20:59 +0000)]
Merge "ext4_utils: move fs_config to libcutils"

9 years agoext4_utils: move fs_config to libcutils
Mark Salyzyn [Wed, 1 Apr 2015 14:31:14 +0000 (07:31 -0700)]
ext4_utils: move fs_config to libcutils

Bug: 19908228
Change-Id: Ic868d3e71d2a166603f3f0618aca5ea69639bdaf

9 years agoam 0dbb7d33: Merge "ext4_utils: Abstracting ext4 encryption property system"
Paul Lawrence [Thu, 2 Apr 2015 16:20:13 +0000 (16:20 +0000)]
am 0dbb7d33: Merge "ext4_utils: Abstracting ext4 encryption property system"

* commit '0dbb7d33082ac3f12d2422d9af941f34686028e4':
  ext4_utils: Abstracting ext4 encryption property system

9 years agoMerge "ext4_utils: Abstracting ext4 encryption property system"
Paul Lawrence [Thu, 2 Apr 2015 15:39:01 +0000 (15:39 +0000)]
Merge "ext4_utils: Abstracting ext4 encryption property system"

9 years agoext4_utils: Abstracting ext4 encryption property system
Paul Lawrence [Mon, 16 Mar 2015 22:35:55 +0000 (15:35 -0700)]
ext4_utils: Abstracting ext4 encryption property system

Change-Id: Iddca42328e9249eb09eb68e6d5339a02cfebecd0

9 years agoam 252cea86: Merge "build_verity_tree: Add verbose flag"
Mohamad Ayyash [Wed, 1 Apr 2015 18:57:40 +0000 (18:57 +0000)]
am 252cea86: Merge "build_verity_tree: Add verbose flag"

* commit '252cea86c4aa8bf363ebe5928d9bd09c55d6cc90':
  build_verity_tree: Add verbose flag

9 years agobuild_verity_tree: Add verbose flag
Mohamad Ayyash [Tue, 31 Mar 2015 19:27:29 +0000 (12:27 -0700)]
build_verity_tree: Add verbose flag

Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
(cherry picked from commit 70f72fb1035e753f5cef176339618723fba943e2)

Change-Id: Ic1f4c843e9597a9e7c0f43eb908c17420c259d9a

9 years agoam 960dbff3: Merge "slideshow: fix format string type"
Sami Tolvanen [Wed, 1 Apr 2015 17:43:05 +0000 (17:43 +0000)]
am 960dbff3: Merge "slideshow: fix format string type"

* commit '960dbff3838c6731420a9f796cf527f0d205bf18':
  slideshow: fix format string type

9 years agoMerge "build_verity_tree: Add verbose flag"
Mohamad Ayyash [Wed, 1 Apr 2015 17:35:05 +0000 (17:35 +0000)]
Merge "build_verity_tree: Add verbose flag"

9 years agoMerge "slideshow: fix format string type"
Sami Tolvanen [Wed, 1 Apr 2015 17:02:48 +0000 (17:02 +0000)]
Merge "slideshow: fix format string type"

9 years agoslideshow: fix format string type
Sami Tolvanen [Wed, 1 Apr 2015 16:53:41 +0000 (17:53 +0100)]
slideshow: fix format string type

Format string specifies %u, even though long int is passed.

Change-Id: I541c15552e403e16bef7a78f53d81eaacb605120

9 years agobuild_verity_tree: Add verbose flag
Mohamad Ayyash [Tue, 31 Mar 2015 19:27:29 +0000 (12:27 -0700)]
build_verity_tree: Add verbose flag

Change-Id: I0c5607f7aa5e964abc2031bbe71ff5c6e6ef56cc
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoam b7f56ac0: Merge "fs_mgr exports its headers."
Elliott Hughes [Tue, 31 Mar 2015 02:05:10 +0000 (02:05 +0000)]
am b7f56ac0: Merge "fs_mgr exports its headers."

* commit 'b7f56ac0176ae78e083bc8f95081b0befe2b17a2':
  fs_mgr exports its headers.

9 years agoMerge "fs_mgr exports its headers."
Elliott Hughes [Tue, 31 Mar 2015 01:36:03 +0000 (01:36 +0000)]
Merge "fs_mgr exports its headers."

9 years agofs_mgr exports its headers.
Elliott Hughes [Tue, 31 Mar 2015 00:48:49 +0000 (17:48 -0700)]
fs_mgr exports its headers.

Change-Id: I6fddb60a902be5ac216d32a751ec8c178c26ebaf

9 years agoam 17fb21d0: Merge "Clean up includes"
Paul Lawrence [Mon, 30 Mar 2015 17:27:35 +0000 (17:27 +0000)]
am 17fb21d0: Merge "Clean up includes"

* commit '17fb21d013743a93bab3cdfc899e952184cae58c':
  Clean up includes

9 years agoMerge "Clean up includes"
Paul Lawrence [Mon, 30 Mar 2015 16:51:54 +0000 (16:51 +0000)]
Merge "Clean up includes"

9 years agoClean up includes
Paul Lawrence [Mon, 30 Mar 2015 16:16:09 +0000 (09:16 -0700)]
Clean up includes

Remove two system files
Remove a circular include dependency by using a callback function

Change-Id: I159357b3a0ad06d0a7ebf45feb82989bcc1b303a

9 years agoam abe6f251: Merge "Don\'t #include "../"."
Elliott Hughes [Sat, 28 Mar 2015 18:16:28 +0000 (18:16 +0000)]
am abe6f251: Merge "Don\'t #include "../"."

* commit 'abe6f251d1b836516514b88a6f2582fdb1f23ec4':
  Don't #include "../".

9 years agoMerge "Don't #include "../"."
Elliott Hughes [Sat, 28 Mar 2015 17:49:57 +0000 (17:49 +0000)]
Merge "Don't #include "../"."

9 years agoDon't #include "../".
Elliott Hughes [Sat, 28 Mar 2015 17:39:46 +0000 (10:39 -0700)]
Don't #include "../".

If you have to use a relative path (especially one out of the current
git project), you probably shouldn't be using those headers...

(cherrypick of 0c58a04b5567b84a13269835d9365a045d85b95e.)

Change-Id: Ifef6945cf1e884a4aa7f8f5532f1de660a22dafc

9 years agoDon't #include "../".
Elliott Hughes [Sat, 28 Mar 2015 17:39:46 +0000 (10:39 -0700)]
Don't #include "../".

If you have to use a relative path (especially one out of the current
git project), you probably shouldn't be using those headers...

Change-Id: Ifef6945cf1e884a4aa7f8f5532f1de660a22dafc

9 years agoam 75c6509b: Merge "[HACK] Adding e4crypt support"
Paul Lawrence [Fri, 27 Mar 2015 23:43:18 +0000 (23:43 +0000)]
am 75c6509b: Merge "[HACK] Adding e4crypt support"

* commit '75c6509ba647dd3d6fb61df6e59c52b16b7cda3f':
  [HACK] Adding e4crypt support

9 years agoMerge "[HACK] Adding e4crypt support"
Paul Lawrence [Fri, 27 Mar 2015 20:36:19 +0000 (20:36 +0000)]
Merge "[HACK] Adding e4crypt support"

9 years ago[HACK] Adding e4crypt support
Paul Lawrence [Wed, 25 Feb 2015 23:11:13 +0000 (15:11 -0800)]
[HACK] Adding e4crypt support

This is a dirty hack requiring a lot of clean up.
Needed to allow other parts to make progress.

Add e4crypt functions to libext4_utils
Add e4crypt command line tool

Change-Id: Iac5ae75e7f39cccc87701faf1f590e44f5209c0e

9 years agoam 99918d02: Merge "Special-case "su --help"."
Elliott Hughes [Fri, 27 Mar 2015 02:28:01 +0000 (02:28 +0000)]
am 99918d02: Merge "Special-case "su --help"."

* commit '99918d024a0b361f48162599c968fb100e1dcc3e':
  Special-case "su --help".

9 years agoMerge "Special-case "su --help"."
Elliott Hughes [Fri, 27 Mar 2015 02:01:27 +0000 (02:01 +0000)]
Merge "Special-case "su --help"."

9 years agoSpecial-case "su --help".
Elliott Hughes [Fri, 27 Mar 2015 00:09:41 +0000 (17:09 -0700)]
Special-case "su --help".

Rather than force people to move from "su system echo -n hello", where
the -n gets interpreted by getopt_long(3), to "su system -- echo -n hello",
just hard-code the recognition of --help. This seems easier than moving
people over to the more traditional "su -c 'echo -n hello'" style.

Bug: 19948740
Change-Id: I248269343b452a381effb7b8926ac7f2522b941b

9 years agoMerge "[HACK] Adding e4crypt support"
Paul Lawrence [Thu, 26 Mar 2015 14:15:11 +0000 (14:15 +0000)]
Merge "[HACK] Adding e4crypt support"

9 years ago[HACK] Adding e4crypt support
Paul Lawrence [Wed, 25 Feb 2015 23:11:13 +0000 (15:11 -0800)]
[HACK] Adding e4crypt support

This is a dirty hack requiring a lot of clean up.
Needed to allow other parts to make progress.

Add e4crypt functions to libext4_utils
Add e4crypt command line tool

Change-Id: Iac5ae75e7f39cccc87701faf1f590e44f5209c0e

9 years agoam d56e76f0: Merge "Use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP."
Elliott Hughes [Tue, 24 Mar 2015 04:07:20 +0000 (04:07 +0000)]
am d56e76f0: Merge "Use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP."

* commit 'd56e76f04b1f2ec89c52f68941591c54b8da21b3':
  Use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP.

9 years agoMerge "Use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP."
Elliott Hughes [Tue, 24 Mar 2015 03:41:09 +0000 (03:41 +0000)]
Merge "Use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP."

9 years agoUse PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP.
Elliott Hughes [Tue, 24 Mar 2015 03:20:54 +0000 (20:20 -0700)]
Use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP.

Change-Id: Ifa87d9a9406acec1d5cdf7dd63af0df52c5cfb3c

9 years agoam efa04370: Merge "system/extras/verity: BoringSSL fix."
Kenny Root [Wed, 18 Mar 2015 17:51:48 +0000 (17:51 +0000)]
am efa04370: Merge "system/extras/verity: BoringSSL fix."

* commit 'efa043704bcbdc98b6c29a27f3a42caccb174664':
  system/extras/verity: BoringSSL fix.

9 years agoMerge "system/extras/verity: BoringSSL fix."
Kenny Root [Wed, 18 Mar 2015 17:35:47 +0000 (17:35 +0000)]
Merge "system/extras/verity: BoringSSL fix."

9 years agoam 04892232: Merge "Remove perm_checker and mounts-test.sh."
Elliott Hughes [Wed, 18 Mar 2015 16:08:06 +0000 (16:08 +0000)]
am 04892232: Merge "Remove perm_checker and mounts-test.sh."

* commit '04892232fb748347f4b6ebbe2b41db80b58b86a0':
  Remove perm_checker and mounts-test.sh.

9 years agoMerge "Remove perm_checker and mounts-test.sh."
Elliott Hughes [Wed, 18 Mar 2015 15:47:55 +0000 (15:47 +0000)]
Merge "Remove perm_checker and mounts-test.sh."

9 years agoRemove perm_checker and mounts-test.sh.
Elliott Hughes [Wed, 18 Mar 2015 15:37:08 +0000 (08:37 -0700)]
Remove perm_checker and mounts-test.sh.

These are enforced by SELinux and tested by CTS now.

Change-Id: If506327f108c39449c611264a10623be9f1782fa

9 years agoam c87b4134: Merge "Add 64 bit support to verity build."
Sami Tolvanen [Wed, 18 Mar 2015 10:58:27 +0000 (10:58 +0000)]
am c87b4134: Merge "Add 64 bit support to verity build."

* commit 'c87b4134e5504bec39c4ed36b97863d7ed51dee1':
  Add 64 bit support to verity build.

9 years agoam 57526daf: Merge "su should reset PATH, IFS, LOGNAME, and USER."
Elliott Hughes [Wed, 18 Mar 2015 10:58:26 +0000 (10:58 +0000)]
am 57526daf: Merge "su should reset PATH, IFS, LOGNAME, and USER."

* commit '57526dafbf62f003d74fc48084cc252843f061f7':
  su should reset PATH, IFS, LOGNAME, and USER.

9 years agoMerge "Add 64 bit support to verity build."
Sami Tolvanen [Wed, 18 Mar 2015 09:02:13 +0000 (09:02 +0000)]
Merge "Add 64 bit support to verity build."

9 years agoMerge "su should reset PATH, IFS, LOGNAME, and USER."
Elliott Hughes [Wed, 18 Mar 2015 04:30:03 +0000 (04:30 +0000)]
Merge "su should reset PATH, IFS, LOGNAME, and USER."

9 years agosu should reset PATH, IFS, LOGNAME, and USER.
Elliott Hughes [Wed, 18 Mar 2015 04:19:25 +0000 (21:19 -0700)]
su should reset PATH, IFS, LOGNAME, and USER.

Also add -h and --help while we're here (since all the toybox commands carry
their own documentation, and our su isn't much like the real su).

Bug: 19647373
Bug: 19564110
Change-Id: If2e6117b6701dcac03b5831f251e60a272bf0d61

9 years agoam f1380e5b: Merge "Fix su."
Elliott Hughes [Tue, 17 Mar 2015 21:29:09 +0000 (21:29 +0000)]
am f1380e5b: Merge "Fix su."

* commit 'f1380e5ba41393dd2fd605692a0cd207782418b6':
  Fix su.

9 years agoMerge "Fix su."
Elliott Hughes [Tue, 17 Mar 2015 21:14:28 +0000 (21:14 +0000)]
Merge "Fix su."

9 years agosystem/extras/verity: BoringSSL fix.
Adam Langley [Tue, 17 Mar 2015 21:08:40 +0000 (14:08 -0700)]
system/extras/verity: BoringSSL fix.

In BoringSSL, the functions that references BIOs have been moved out of
ERR in order to have some reasonable layering of the code.

A recent addition here referenced ERR_print_errors, which is now
BIO_print_errors in BoringSSL for that reason. Additionally, the
BoringSSL headers don't #include so many standard headers for you so an
explicit #include of errno.h is needed here.

Change-Id: Iebcc353b1354bd85d432deebeb7873aae46b0d2a

9 years agoFix su.
Elliott Hughes [Tue, 17 Mar 2015 19:35:45 +0000 (12:35 -0700)]
Fix su.

Manually NULL-terminate the arguments array instead of trying to use memset.
This was accidentally working on LP64 but fails reliably on LP32.

Change-Id: Ic2ecb8ed2019f260c720f27dbd018a55e7cfa569

9 years agoam 79522851: Merge "Clean up su."
Elliott Hughes [Sun, 15 Mar 2015 22:34:17 +0000 (22:34 +0000)]
am 79522851: Merge "Clean up su."

* commit '79522851f014d82768d7d27d5676bdf98cbb595a':
  Clean up su.

9 years agoMerge "Clean up su."
Elliott Hughes [Sun, 15 Mar 2015 17:00:43 +0000 (17:00 +0000)]
Merge "Clean up su."

9 years agoClean up su.
Elliott Hughes [Sat, 14 Mar 2015 17:15:06 +0000 (10:15 -0700)]
Clean up su.

Stop building su as a static executable. We don't rely on the getuid
implementation for security, so we have nothing to fear from the dynamic
linker.

Add some missing error checking and improve error reporting.

Remove various special cases that can all be rolled into the general
case.

Bug: 19647373
Change-Id: I2689b8957a89da1f3be571fcdc966b1084efca9a

9 years agoAdd 64 bit support to verity build.
Qin Ying [Tue, 14 Oct 2014 02:53:23 +0000 (11:53 +0900)]
Add 64 bit support to verity build.

Now build verity only support 32bit environment, when the image
size is bigger than 2^32 the verity image size calculation will
be mistake.

Change-Id: I41e5fe720c1269d6c06e23bfce5bc65226fb6e77

9 years agoam 50cf3c84: am d62c4159: Merge "Add tests for cross-family bind() and connect()...
Lorenzo Colitti [Thu, 5 Mar 2015 08:44:38 +0000 (08:44 +0000)]
am 50cf3c84: am d62c4159: Merge "Add tests for cross-family bind() and connect() operations."

* commit '50cf3c84c5bb88b3798a561d742c2e87ef02a8b3':
  Add tests for cross-family bind() and connect() operations.

9 years agoam d62c4159: Merge "Add tests for cross-family bind() and connect() operations."
Lorenzo Colitti [Thu, 5 Mar 2015 08:35:35 +0000 (08:35 +0000)]
am d62c4159: Merge "Add tests for cross-family bind() and connect() operations."

* commit 'd62c415953ebc69b179cc2d250965754917dccd9':
  Add tests for cross-family bind() and connect() operations.

9 years agoMerge "Add tests for cross-family bind() and connect() operations."
Lorenzo Colitti [Thu, 5 Mar 2015 08:29:01 +0000 (08:29 +0000)]
Merge "Add tests for cross-family bind() and connect() operations."

9 years agoAdd tests for cross-family bind() and connect() operations.
Lorenzo Colitti [Tue, 3 Mar 2015 06:30:23 +0000 (15:30 +0900)]
Add tests for cross-family bind() and connect() operations.

Change-Id: Ie11d593c1ed16e674da6f64dc153dd15b9a4c988

9 years agoam ba00318a: am 7846062d: Merge "Introduce mksquashfsimage.sh"
Mohamad Ayyash [Wed, 4 Mar 2015 03:13:54 +0000 (03:13 +0000)]
am ba00318a: am 7846062d: Merge "Introduce mksquashfsimage.sh"

* commit 'ba00318ad2303f66c7bd99408ff2872c14437c7d':
  Introduce mksquashfsimage.sh

9 years agoam 7846062d: Merge "Introduce mksquashfsimage.sh"
Mohamad Ayyash [Wed, 4 Mar 2015 03:04:16 +0000 (03:04 +0000)]
am 7846062d: Merge "Introduce mksquashfsimage.sh"

* commit '7846062d8e8b545f8a54a0ddc950f3e9fb7f5eb1':
  Introduce mksquashfsimage.sh

9 years agoMerge "Introduce mksquashfsimage.sh"
Mohamad Ayyash [Wed, 4 Mar 2015 02:58:26 +0000 (02:58 +0000)]
Merge "Introduce mksquashfsimage.sh"

9 years agoIntroduce mksquashfsimage.sh
Mohamad Ayyash [Tue, 3 Mar 2015 20:33:48 +0000 (12:33 -0800)]
Introduce mksquashfsimage.sh

Change-Id: I2b916ef3ef60b40f506e1f1be59482f7b071cdb2
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoMerge "Introduce mksquashfsimage.sh"
Mohamad Ayyash [Tue, 3 Mar 2015 23:21:04 +0000 (23:21 +0000)]
Merge "Introduce mksquashfsimage.sh"

9 years agoam 8a226653: am f924e231: Merge "Make UID rules specify "iif lo" to match real device...
Lorenzo Colitti [Tue, 3 Mar 2015 22:23:59 +0000 (22:23 +0000)]
am 8a226653: am f924e231: Merge "Make UID rules specify "iif lo" to match real device configs."

* commit '8a226653ee8e4b39f373cb2d805e7b5c9d23d2ec':
  Make UID rules specify "iif lo" to match real device configs.

9 years agoam f911182c: am 312d567a: Merge "Add Python wrappers for bind and connect as well...
Lorenzo Colitti [Tue, 3 Mar 2015 22:23:26 +0000 (22:23 +0000)]
am f911182c: am 312d567a: Merge "Add Python wrappers for bind and connect as well as sendmsg."

* commit 'f911182ccf9d6972b6edb522c4aba71b7b7da4d3':
  Add Python wrappers for bind and connect as well as sendmsg.

9 years agoIntroduce mksquashfsimage.sh
Mohamad Ayyash [Tue, 3 Mar 2015 20:33:48 +0000 (12:33 -0800)]
Introduce mksquashfsimage.sh

Change-Id: I2b916ef3ef60b40f506e1f1be59482f7b071cdb2
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
9 years agoam f924e231: Merge "Make UID rules specify "iif lo" to match real device configs."
Lorenzo Colitti [Tue, 3 Mar 2015 12:57:52 +0000 (12:57 +0000)]
am f924e231: Merge "Make UID rules specify "iif lo" to match real device configs."

* commit 'f924e231377fbf13c9ec352b5de0e79501c41c0f':
  Make UID rules specify "iif lo" to match real device configs.