summaryrefslogtreecommitdiffstats
path: root/include/private
Commit message (Collapse)AuthorAgeFilesLines
* logd: Don't embed a flexible array member within another structNick Kralevich2015-04-071-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | C (but not C++) has a concept of a flexible array member, which is documented at https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html . Using a flexible array member indicates that the structure is really a header for a variable length object. In logd's case, the variable length structure android_event_string_t was embedded within another structure called android_log_event_string_t. This makes gcc's __builtin_object_size() function really confused. When compiling with C++, __builtin_object_size(android_log_event_string_t.payload.data, 1) would return 0, whereas if you compiled the code with C, the same call would (properly) return -1. Code which does automatic bounds checking, such as the proposed patch at https://android-review.googlesource.com/145411 , will cause problems for logd if this syntax is used. Don't try to embed a variable length structure within another structure. This doesn't appear to be valid C nor C++, and while it's worked, it seems problematic. Instead, inline the structure so it's one big happy structure. Change-Id: I8ac02b7142a4f6560f5f80df2effcf720f9896fc
* android_filesystem_config.h: use __BEGIN_DECLS and __END_DECLSMark Salyzyn2015-04-061-6/+3
| | | | Change-Id: Idb050b9ef4e7947664295b173e1b09d65accd3e9
* Allow inputflinger to have CAP_BLOCK_SUSPEND.Tim Kilbourn2015-04-061-1/+3
| | | | | | | | | (Cherry picked from commit 83e6f2606b9c3488454a7bb01c7341fb43b59ac7) Resolved conflict in include/private/android_filesystem_config.h, content already in libcutils/fs_config.c. Change-Id: I817707721786e9b920fef14ebe836fdcd65a8606
* android_filesystem_config: move fs_config to libcutilsMark Salyzyn2015-04-061-109/+27
| | | | | Bug: 19908228 Change-Id: Id51c0c50eb2677824d052882f4263193a08e1402
* pixelflinger: make self-containedGreg Hackmann2015-03-192-1198/+0
| | | | | | | | | | pixelflinger should not be used for new projects and should be moved out of system/core at some point. As the first step, move all its headers under system/core/libpixelflinger/include and update its Android.mk files so they're not referring to the absolute system/core path anymore. Change-Id: Idead273ab2c0450409d770f5402c4dba916192a9 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* Remove obsolete files from fs_config's list.Elliott Hughes2015-03-181-7/+0
| | | | Change-Id: I83716f48754de889d811d74074f9a32dc666c05e
* Revert "pixelflinger: make self-contained"Paul Eastham2015-03-162-0/+1198
| | | | | | This reverts commit 56350fe387e77824a1e360d39a22f983b0a8ab20. Change-Id: I4cda5773f39abd3b24df65d7bd9daaef92314b52
* pixelflinger: make self-containedGreg Hackmann2015-03-122-1198/+0
| | | | | | | | | | pixelflinger should not be used for new projects and should be moved out of system/core at some point. As the first step, move all its headers under system/core/libpixelflinger/include and update its Android.mk files so they're not referring to the absolute system/core path anymore. Change-Id: I7acc3ef5b2e21d8ba6fe939ea8d3ec4c41959591 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* am 4487c605: Merge changes I0ec0fe3e,I9e5fccbaMark Salyzyn2015-03-041-0/+42
|\ | | | | | | | | | | * commit '4487c605eaeea2b85c8511fe915a286c3aaf4da4': liblog: logprint use <endian.h> private: Add event payload structures to android_logger.h
| * private: Add event payload structures to android_logger.hMark Salyzyn2015-03-041-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | - common android_event_header_t - android_event_int_t ANDROID_TYPE_INT payload - android_log_event_int_t single ANDROID_TYPE_INT event - android_event_long_t ANDROID_TYPE_LONG payload - android_log_event_long_t single ANDROID_TYPE_LONG event - android_event_string_t ANDROID_TYPE_STRING payload - android_log_event_string_t single ANDROID_TYPE_STRING event Change-Id: I9e5fccba38e3f230c2c4ec7dec51ed110c460f95
* | am 91581f19: Merge "liblog: add pstore write"Mark Salyzyn2015-01-231-1/+11
|\ \ | |/ | | | | | | * commit '91581f19906ade01eabc6e10a7dac209e710117a': liblog: add pstore write
| * liblog: add pstore writeMark Salyzyn2015-01-231-1/+11
| | | | | | | | | | | | | | Used to push the Android log messages into pstore (when available, and no propagation of error). Change-Id: I9def8cf796d35d347f502d9745d5f42ec1200253
* | am 4730328d: Merge "logd: create private/android_logger.h"Mark Salyzyn2015-01-231-0/+34
|\ \ | |/ | | | | | | * commit '4730328da72ef9b7aeaefc120358155fdfd8dde8': logd: create private/android_logger.h
| * logd: create private/android_logger.hMark Salyzyn2015-01-231-0/+34
| | | | | | | | | | | | | | | | | | - create a structure to depict the private header expected at logd end of socket. - utilize this new structure instead of unscalable byte stream technique used to unpack in logd. Change-Id: I2d0e5c3531c279f2dc1fbd74807210ff8d804de0
* | am 70f6dea9: Merge "android_filesystem: Remove setuid bits from tcpdump" ↵Dmitry Shmidt2015-01-151-1/+0
|\ \ | |/ |/| | | | | | | | | into lmp-mr1-dev * commit '70f6dea9d06876bc65181c40ee9e623be196fb4c': android_filesystem: Remove setuid bits from tcpdump
| * android_filesystem: Remove setuid bits from tcpdumpDmitry Shmidt2015-01-151-1/+0
| | | | | | | | | | | | | | Bug: 18669116 Change-Id: I25486f2fe0e994f569b788fc9f03ef6d383f54d4 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
| * Change /dalvik-cache to be owned by root.Alex Light2014-08-281-1/+1
| | | | | | | | | | | | | | | | Bug: 16875245 (cherry picked from commit 3878ebd72493427ea5537b36dfb9cd7cb38677bb) Change-Id: I29a70215a2207bc4e0db02ab751d32a68edf4b66
* | Remove long-dead readtty.Elliott Hughes2014-11-241-1/+0
| | | | | | | | Change-Id: I15ae14542214a3802d43892da0d03cfb33e63c96
* | Reserve some AIDs for OEMsJohan Redestig2014-11-101-0/+5
| | | | | | | | | | | | | | OEMs frequently add some AIDs on their own. Reserve some range for them to use. Change-Id: I3c729c889c9bd3e105ae4f6fb0c04a42a10eb25c
* | am 24d2adba: am 188d4396: Merge "Change /dalvik-cache to be owned by root."Brian Carlstrom2014-08-291-1/+1
|\ \ | | | | | | | | | | | | * commit '24d2adba7a2f9caa82a88be70ad2fe7397ab310a': Change /dalvik-cache to be owned by root.
| * | Change /dalvik-cache to be owned by root.Alex Light2014-08-271-1/+1
| | | | | | | | | | | | | | | | | | Bug: 16875245 Change-Id: I29a70215a2207bc4e0db02ab751d32a68edf4b66
* | | am e07a6e63: am 6d9a5ac3: Merge "[MIPSR6] Skip pixelflinger, memset ↵Elliott Hughes2014-08-051-1/+1
|\ \ \ | |/ / | | / | |/ |/| | | | | assembler code on mips32r6" * commit 'e07a6e6337a959c45ab71acf6ff1fad8a8ac5dfd': [MIPSR6] Skip pixelflinger, memset assembler code on mips32r6
| * [MIPSR6] Skip pixelflinger, memset assembler code on mips32r6Duane Sand2014-07-311-1/+1
| | | | | | | | | | | | Temporarily use generic C-coded libpixelflinger & memset on mips32r6. Change-Id: I629b11ba955eaba323cba1df96c39f75f4d24d62
* | am 0487e50a: am 24fc60c7: am 304d31f0: Merge "Make su 04750"Nick Kralevich2014-06-111-1/+1
|\ \ | |/ | | | | | | * commit '0487e50accf44f13acafad5fb5d76b4958d86550': Make su 04750
| * Make su 04750Nick Kralevich2014-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, /system/xbin/su is world executable. Prior to SELinux enforcement, anyone (including third party apps) could run su. The su code itself checks to see if the calling UID is root or shell. Rather than relying on enforcement within the su binary, modify the binary so it has group=shell, and remove world-execute permission. This helps avoid some annoying SELinux denial messages as third party apps call su on userdebug/eng builds. Change-Id: I61c9231bb7e201d14ee3a5b6fe81b3fa7b12599f
* | am 63cdd840: am e948c9fa: am 489797c2: Merge "Add new AID shared by all apps ↵Robin Lee2014-06-041-0/+2
|\ \ | |/ | | | | | | | | | | in a profile" * commit '63cdd840f81839bf6ce6e3723c42f09256cf4b3e': Add new AID shared by all apps in a profile
| * Merge "Add new AID shared by all apps in a profile"Robin Lee2014-06-041-0/+2
| |\
| | * Add new AID shared by all apps in a profileRobin Lee2014-04-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically assigned as a GID to all apps running under the same Android profile. Used for exposing to or sharing files with apps running in a specific profile. Analogous to AID_SHARED_GID only the sharing is between processes with the same userId rather than with the same appId. The name to be displayed for uids/gids with this AID is 'u*_everyone'. Change-Id: I46efb749f74cb86868c5609a0ce1a6aab2f9e9c9
* | | am 4f3ad823: am a8329a36: am 96109cf3: Merge "Add UID and directory for ↵Torne (Richard Coles)2014-05-281-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | RELRO sharing support." * commit '4f3ad823eaf97fcbcbb1afac67371aff76677b1d': Add UID and directory for RELRO sharing support.
| * | Add UID and directory for RELRO sharing support.Torne (Richard Coles)2014-05-271-0/+3
| |/ | | | | | | | | | | | | | | | | Define a UID to be used by the process responsible for creating shared RELRO files for the WebView native library, and create a directory owned by that UID to use to store the files. Bug: 13005501 Change-Id: I5bbb1e1035405e5534b2681f554fe16f74e3da1a
* | am c5aff686: am cda31324: am 4706320e: Merge "Include 64bit valgrind in the ↵Narayan Kamath2014-04-141-0/+1
|\ \ | |/ | | | | | | | | | | android_filesystem_config." * commit 'c5aff68693dee788a28a0d0256782cc8521aa2a5': Include 64bit valgrind in the android_filesystem_config.
| * Include 64bit valgrind in the android_filesystem_config.Narayan Kamath2014-04-121-0/+1
| | | | | | | | | | | | Required so that we set the exectuable bit correctly. Change-Id: If59bd0ff47d2b4b2b8f92a1c007b4ba414ea1876
| * logd: initial checkin.Mark Salyzyn2014-02-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create a new userspace log daemon for handling logging messages. Original-Change-Id: I75267df16359684490121e6c31cca48614d79856 Signed-off-by: Nick Kralevich <nnk@google.com> * Merge conflicts * rename new syslog daemon to logd to prevent confusion with bionic syslog * replace racy getGroups call with KISS call to client->getGid() * Timestamps are filed at logging source * insert entries into list in timestamp order * Added LogTimeEntry tail filtration handling * Added region locking around LogWriter list * separate threads for each writer * /dev/socket/logd* permissions Signed-off-by: Mark Salyzyn <salyzyn@google.com> (cherry picked from commit 3e76e0a49760c4970b7cda6153e51026af98e4f3) Author: Nick Kralevich <nnk@google.com> Change-Id: Ice88b1412d8f9daa7f9119b2b5aaf684a5e28098
* | logd: initial checkin.Nick Kralevich2014-02-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Create a new userspace log daemon for handling logging messages. Original-Change-Id: I75267df16359684490121e6c31cca48614d79856 Signed-off-by: Nick Kralevich <nnk@google.com> * Merge conflicts * rename new syslog daemon to logd to prevent confusion with bionic syslog * replace racy getGroups call with KISS call to client->getGid() * Timestamps are filed at logging source * insert entries into list in timestamp order * Added LogTimeEntry tail filtration handling * Added region locking around LogWriter list * separate threads for each writer * /dev/socket/logd* permissions Signed-off-by: Mark Salyzyn <salyzyn@google.com> Change-Id: Ice88b1412d8f9daa7f9119b2b5aaf684a5e28098
* | set permissions of recovery install scriptDoug Zongker2014-02-041-0/+1
| | | | | | | | | | | | | | | | | | The script that writes the recovery partition after a successful update of system needs to be made executable. This change also moves it from /system/etc to /system/bin. Bug: 12893978 Change-Id: I686e2392a2392515a6859a7381b735de1007b7ea
* | add the pre-recovery serviceDoug Zongker2014-01-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | Add a service called "pre-recovery" which is normally stopped but can be started by the system server when we want to go into recovery. It will do any preparation needed (currently needed to handle update packages that reside on an encrypted /data partition) and then set sys.powerctl when it's ready to actually reboot. Bug: 12188746 Change-Id: I894a4cb200395a0f6d7fe643ed4c2ac0a45d2052
* | am 63824e92: am 980093ca: am 348856fa: am 532f4658: Merge "AArch64: ↵Elliott Hughes2013-12-161-9/+11
|\ \ | |/ | | | | | | | | | | Correction of struct surface_t" * commit '63824e923aca6fe15942beee00b258ea6119e459': AArch64: Correction of struct surface_t
| * Merge "AArch64: Correction of struct surface_t"Elliott Hughes2013-12-161-9/+11
| |\
| | * AArch64: Correction of struct surface_tMarcus Oakland2013-12-101-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The struct in the union with GGLSurface in struct surface_t assumed that the reserved field, which corresponds to the GGLsizei version field in the GGLSurface structure (where GGLsizei is define as being ssize_t in the system/core/include/pixelflinger/pixelflinger.h header file) is uint32_t. That is appropriate to the 32-bit system but is not appropriate to the 64-bit system, where ssize_t is 64-bits rather than 32-bits. The 32-bit system has also been tested and has no regression because of this change. Change-Id: I5cd84fd4a18fa0e63e27975f7b3d3e95b99cea58 Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
* | | am 49a88c3c: am 410a1966: am fd382f2e: am fd7eabe4: Merge "Pixelflinger: Add ↵Elliott Hughes2013-12-161-1/+66
|\ \ \ | |/ / | | | | | | | | | | | | | | | AArch64 support to pixelflinger JIT." * commit '49a88c3cf38e9c17a756434880fb01971018a9c6': Pixelflinger: Add AArch64 support to pixelflinger JIT.
| * | Pixelflinger: Add AArch64 support to pixelflinger JIT.Ashok Bhat2013-12-121-1/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See the comment-block at the top of Aarch64Assembler.cpp for overview on how AArch64 support has been implemented In addition, this commit contains [x] AArch64 inline asm versions of gglmul series of functions and a new unit test bench to test the functions [x] Assembly implementations of scanline_col32cb16blend and scanline_t32cb16blend for AArch64, with unit test bench Change-Id: I915cded9e1d39d9a2a70bf8a0394b8a0064d1eb4 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
* | | am ed20fef0: am a99f0b6e: am 5b8daae0: am a67b39cb: Merge "Pixelflinger: Fix ↵Elliott Hughes2013-12-121-2/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | issue of pointers being stored in ints" * commit 'ed20fef0630d02395abab6a073a5717ddfbfaa8d': Pixelflinger: Fix issue of pointers being stored in ints
| * | Pixelflinger: Fix issue of pointers being stored in intsAshok Bhat2013-12-121-2/+2
| |/ | | | | | | | | | | | | | | | | | | Pixelflinger's code makes assumptions, at certain places, that pointers can be stored as ints. This patch makes use of uintptr_t wherever pointers are stored as int or cast to int. Change-Id: Ie76f425cbc82ac038a747f77a95bd31774f4a8e8 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
* | healthd: move charger executable to healthd charger modeTodd Poynor2013-09-171-1/+0
|/ | | | | | | | * Add healthd charger mode ops * Check for executable invocation as "charger", set charger mode if so * Incorporate charger executable as healthd charger mode Change-Id: I4a44e7a4c3a65ae9be94491f7f498aa48d4f8a84
* Richer SD card permissions through FUSE.Jeff Sharkey2013-08-081-46/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes the FUSE daemon to synthesize an Android-specific set of filesystem permissions, even when the underlying media storage is permissionless. This is designed to support several features: First, apps can access their own files in /Android/data/com.example/ without requiring any external storage permissions. This is enabled by allowing o+x on parent directories, and assigning the UID owner based on the directory name (package name). The mapping from package to appId is parsed from packages.list, which is updated when apps are added/removed. Changes are observed through inotify. It creates missing package name directories when requested and valid. Second, support for separate permissions for photos and audio/video content on the device through new GIDs which are assigned based on top-level directory names. Finally, support for multi-user separation on the same physical media through new /Android/user/ directory, which will be bind-mounted into place. It recursively applies the above rules to each secondary user. rwxrwx--x root:sdcard_rw / rwxrwx--- root:sdcard_pics /Pictures rwxrwx--- root:sdcard_av /Music rwxrwx--x root:sdcard_rw /Android rwxrwx--x root:sdcard_rw /Android/data rwxrwx--- u0_a12:sdcard_rw /Android/data/com.example rwxrwx--x root:sdcard_rw /Android/obb/ rwxrwx--- u0_a12:sdcard_rw /Android/obb/com.example rwxrwx--- root:sdcard_all /Android/user rwxrwx--x root:sdcard_rw /Android/user/10 rwxrwx--- u10_a12:sdcard_rw /Android/user/10/Android/data/com.example These derived permissions are disabled by default. Switched option parsing to getopt(). Change-Id: I21bf5d79d13f0f07a6a116122b16395f4f97505b
* am 9e9ed1b4: am 131ee07b: Merge "Add a new group for MediaDrm engine ↵Jeff Tinker2013-04-241-0/+2
|\ | | | | | | | | | | | | plugins" into jb-mr2-dev * commit '9e9ed1b40010745e709157a6977ba6d053d46c49': Add a new group for MediaDrm engine plugins
| * Merge "Add a new group for MediaDrm engine plugins" into jb-mr2-devJeff Tinker2013-04-251-0/+2
| |\
| | * Add a new group for MediaDrm engine pluginsJeff Tinker2013-04-231-0/+2
| | | | | | | | | | | | | | | bug: 8702754 Change-Id: I3b7988b64b1dcf4685624e4c1af938e132b82696
* | | am 0db6600a: am 7ee2e26e: Remove DBUS from make and header filesMatthew Xie2013-04-241-1/+0
|\ \ \ | |/ / | | | | | | | | | * commit '0db6600a60e8d604aaef5e43db9ae52ed7380979': Remove DBUS from make and header files
| * | Remove DBUS from make and header filesMatthew Xie2013-04-231-1/+0
| |/ | | | | | | | | | | | | | | DBUS had been needed by bluetooth bluz stack. It is not needed after we replaced bluez stack with bluedroid stack. bug 6872904 Change-Id: I3fa41c1dd4ac80bc679d5950b3b20c7f6d12265f