platform_bionic/libc/include
Paul Lawrence 71ade013f4 Listen on property_service_for_system socket for powerctl messages
It is easy to dos the property_service socket, since it will wait for a
complete data packet from one command before moving on to the next one.

To prevent low privilege apps interfering with system and root apps,
add a second property_service socket that only they can use.

However, since writes to properties are not thread-safe, limit use of
this second socket to just sys.powerctl messages. These are the messages
that this security issue is concerned about, and they do not actually
write to the properties, rather they are acted upon immediately.

Bug: 262208935
Test: Builds, boots
Ignore-AOSP-First: Security fix
Change-Id: I1e96444115de4cc0b021c6864922845de331f6a7
2023-07-18 08:51:19 -07:00
..
android Merge "Revert^2 "fdsan android::Parcel"" 2023-06-30 17:02:54 +00:00
arpa Merge "Remove the always-true __INTRODUCED_IN() annotations." 2023-06-20 20:47:49 +00:00
bits Update to v6.4 kernel headers. 2023-07-10 10:59:05 -07:00
net Nullability check for if module. 2023-05-11 17:15:57 +00:00
netinet Nullability check for modules in the netinet directory. 2023-04-25 20:10:14 +00:00
netpacket
sys Listen on property_service_for_system socket for powerctl messages 2023-07-18 08:51:19 -07:00
.clang-format
alloca.h
ar.h
assert.h static_assert is a keyword in C23. 2023-05-24 08:48:42 -07:00
byteswap.h
complex.h <complex.h>: stop using __INTRODUCED_IN_(32|64). 2023-06-12 10:22:12 -07:00
cpio.h
ctype.h
dirent.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
dlfcn.h Nullability check for dlfcn module 2023-03-01 21:29:41 +00:00
elf.h
endian.h
err.h
errno.h
error.h
execinfo.h
fcntl.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
features.h
fenv.h <fenv.h>: documentation, and __INTRODUCED_IN removal. 2023-06-06 20:32:12 +00:00
fnmatch.h
fts.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
ftw.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
getopt.h Nullability check for getopt module 2023-03-13 18:03:29 +00:00
glob.h
grp.h Nullability check for grp module 2023-03-08 00:15:01 +00:00
iconv.h <iconv.h>: clarify the docs a bit more. 2023-06-14 20:55:58 +00:00
ifaddrs.h Nullability check for ifaddrs module 2023-03-01 01:36:30 +00:00
inttypes.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
langinfo.h
lastlog.h
libgen.h
limits.h
link.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
locale.h Remove __INTRODUCED_IN_NO_GUARD_FOR_NDK(21). 2023-06-20 14:32:58 -07:00
malloc.h Explicitly document overcommit and adb shell's use of oom_score_adj. 2023-06-26 19:03:41 +00:00
math.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
memory.h
mntent.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
netdb.h Nullability check for inet module. 2023-05-24 22:02:49 +00:00
nl_types.h
paths.h
poll.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
pthread.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
pty.h
pwd.h Nullability check for pwd module 2023-03-17 02:53:37 +00:00
regex.h
resolv.h Nullability check for resolv module 2023-03-10 01:40:04 +00:00
sched.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
search.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
semaphore.h Nullability check for semaphore module 2023-04-12 18:07:11 +00:00
setjmp.h setjmp.h: add some historical detail about the _JBLEN values. 2023-04-12 12:43:10 -07:00
signal.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
spawn.h <spawn.h>: add posix_spawn_file_actions_addchdir_np()/posix_spawn_file_actions_addfchdir_np(). 2023-04-04 17:28:39 -07:00
stdatomic.h
stdint.h
stdio.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
stdio_ext.h Nullability check for stdio_ext module 2023-02-27 23:34:25 +00:00
stdlib.h Remove __INTRODUCED_IN_NO_GUARD_FOR_NDK(21). 2023-06-20 14:32:58 -07:00
string.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
strings.h
syscall.h
sysexits.h
syslog.h syslog.h: implement LOG_PERROR. 2023-05-03 14:19:40 -07:00
tar.h
termio.h
termios.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
threads.h Nullability check for thread module 2023-03-10 20:37:27 +00:00
time.h Document how to use tzalloc()/tzfree() with std::unique_ptr. 2023-06-22 20:54:12 +00:00
time64.h
uchar.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
ucontext.h
unistd.h Mark getpagesize() const. 2023-06-23 22:40:57 +00:00
utime.h
utmp.h Add POSIX <utmpx.h>. 2023-04-03 17:20:58 -07:00
utmpx.h Add POSIX <utmpx.h>. 2023-04-03 17:20:58 -07:00
wait.h
wchar.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
wctype.h Remove the always-true __INTRODUCED_IN() annotations. 2023-06-16 12:39:33 -07:00
xlocale.h