platform_system_core/libcutils/include/cutils
Alex Deymo 4822b01b12 Update qtaguid tag/untag documentation.
The qtaguid_tagSocket() function tags a network socket by passing a
reference to the given socket to the qtaguid kernel module. The module
will keep the socket alive even if the process calls close() on said
socket. In this scenario, the socket object would not be destroyed
even if all the file descriptor.

While this is at least a memory leak, it plays bad with epoll(7)
if you also didn't remove the socket from the epoll fd before closing
since epoll will not notice that the socket was closed and there is no
way to remove the socket from epoll after it was closed.

This patch updates the documentation to explicitly mention that the
socket must be untag before closing or bad things happen.

Bug: 36264049
Test: None.
Change-Id: I564a9b6d11d22b43a6c12312524386c0338b42ed
2017-03-17 17:48:52 +00:00
..
android_get_control_file.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
android_reboot.h libcutils: android_reboot: add thermal shutdown command 2017-03-14 17:58:25 -07:00
ashmem.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
atomic.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
bitops.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
compiler.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
config_utils.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
fs.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
hashmap.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
iosched_policy.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
jstring.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
klog.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
list.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
log.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
memory.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
misc.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
multiuser.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
native_handle.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
open_memstream.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
partition_utils.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
properties.h cutils: Add clang FORTIFY support 2017-02-09 20:18:19 +01:00
qtaguid.h Update qtaguid tag/untag documentation. 2017-03-17 17:48:52 +00:00
record_stream.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
sched_policy.h Removed cpusets/schedboost build time dependency. 2017-02-20 20:53:24 +08:00
sockets.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
str_parms.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
threads.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
trace.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00
uevent.h Revert "Revert "Exporting C headers from system/core"" 2017-01-25 12:50:29 -08:00